From e3be9c068bd2168d3bbf077a55abb15a87eaf5bd Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 24 Oct 2016 18:57:57 +0200 Subject: [PATCH] Update `.rubocop_todo.yml`. --- Library/Homebrew/.rubocop_todo.yml | 6 +++--- Library/Homebrew/dev-cmd/audit.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/.rubocop_todo.yml b/Library/Homebrew/.rubocop_todo.yml index 867a61966f..9e48c6792f 100644 --- a/Library/Homebrew/.rubocop_todo.yml +++ b/Library/Homebrew/.rubocop_todo.yml @@ -21,7 +21,7 @@ Lint/HandleExceptions: - 'extend/pathname.rb' - 'formula.rb' - 'formula_versions.rb' - - 'test/test_ENV.rb' + - 'test/ENV_test.rb' # Offense count: 3 Lint/IneffectiveAccessModifier: @@ -51,7 +51,7 @@ Lint/RescueException: - 'postinstall.rb' - 'readall.rb' - 'test.rb' - - 'test/test_ENV.rb' + - 'test/ENV_test.rb' - 'utils/fork.rb' # Offense count: 1 @@ -114,7 +114,7 @@ Style/MultilineBlockChain: - 'dev-cmd/audit.rb' - 'dev-cmd/man.rb' - 'diagnostic.rb' - - 'test/test_patching.rb' + - 'test/patching_test.rb' # Offense count: 4 # Cop supports --auto-correct. diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index c7461fc5ab..df3b5fafe7 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -761,7 +761,7 @@ class FormulaAuditor bin_names.each do |name| ["system", "shell_output", "pipe_output"].each do |cmd| if text =~ /(def test|test do).*#{cmd}[\(\s]+['"]#{Regexp.escape name}[\s'"]/m - problem %(fully scope test #{cmd} calls e.g. #{cmd} "\#{bin}/#{name}") + problem %Q(fully scope test #{cmd} calls e.g. #{cmd} "\#{bin}/#{name}") end end end