Update .rubocop_todo.yml
.
This commit is contained in:
parent
6b6b27126d
commit
e3be9c068b
@ -21,7 +21,7 @@ Lint/HandleExceptions:
|
|||||||
- 'extend/pathname.rb'
|
- 'extend/pathname.rb'
|
||||||
- 'formula.rb'
|
- 'formula.rb'
|
||||||
- 'formula_versions.rb'
|
- 'formula_versions.rb'
|
||||||
- 'test/test_ENV.rb'
|
- 'test/ENV_test.rb'
|
||||||
|
|
||||||
# Offense count: 3
|
# Offense count: 3
|
||||||
Lint/IneffectiveAccessModifier:
|
Lint/IneffectiveAccessModifier:
|
||||||
@ -51,7 +51,7 @@ Lint/RescueException:
|
|||||||
- 'postinstall.rb'
|
- 'postinstall.rb'
|
||||||
- 'readall.rb'
|
- 'readall.rb'
|
||||||
- 'test.rb'
|
- 'test.rb'
|
||||||
- 'test/test_ENV.rb'
|
- 'test/ENV_test.rb'
|
||||||
- 'utils/fork.rb'
|
- 'utils/fork.rb'
|
||||||
|
|
||||||
# Offense count: 1
|
# Offense count: 1
|
||||||
@ -114,7 +114,7 @@ Style/MultilineBlockChain:
|
|||||||
- 'dev-cmd/audit.rb'
|
- 'dev-cmd/audit.rb'
|
||||||
- 'dev-cmd/man.rb'
|
- 'dev-cmd/man.rb'
|
||||||
- 'diagnostic.rb'
|
- 'diagnostic.rb'
|
||||||
- 'test/test_patching.rb'
|
- 'test/patching_test.rb'
|
||||||
|
|
||||||
# Offense count: 4
|
# Offense count: 4
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
|
@ -761,7 +761,7 @@ class FormulaAuditor
|
|||||||
bin_names.each do |name|
|
bin_names.each do |name|
|
||||||
["system", "shell_output", "pipe_output"].each do |cmd|
|
["system", "shell_output", "pipe_output"].each do |cmd|
|
||||||
if text =~ /(def test|test do).*#{cmd}[\(\s]+['"]#{Regexp.escape name}[\s'"]/m
|
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
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user