Update .rubocop_todo.yml.

This commit is contained in:
Markus Reiter 2016-10-24 18:57:57 +02:00
parent 6b6b27126d
commit e3be9c068b
2 changed files with 4 additions and 4 deletions

View File

@ -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.

View File

@ -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