rubocop: move requirement to configuration file
If you are using en external rubocop binary you will encounter the following error. .rubocop_todo.yml: RSpec/FilePath has the wrong namespace - should be Rails By moving the option to the config file an external rubocop would be treated equally to brew style without having to supply additional command line options.
This commit is contained in:
parent
bb177b3055
commit
25b9a7d35b
@ -5,7 +5,9 @@ AllCops:
|
|||||||
- '**/vendor/**/*'
|
- '**/vendor/**/*'
|
||||||
DisplayCopNames: false
|
DisplayCopNames: false
|
||||||
|
|
||||||
require: ./Homebrew/rubocops.rb
|
require:
|
||||||
|
- rubocop-rspec
|
||||||
|
- ./Homebrew/rubocops.rb
|
||||||
|
|
||||||
# enable all formulae audits
|
# enable all formulae audits
|
||||||
FormulaAudit:
|
FormulaAudit:
|
||||||
|
@ -23,7 +23,6 @@ module Homebrew
|
|||||||
require "rubocops"
|
require "rubocops"
|
||||||
|
|
||||||
args = %w[
|
args = %w[
|
||||||
--require rubocop-rspec
|
|
||||||
--force-exclusion
|
--force-exclusion
|
||||||
]
|
]
|
||||||
if fix
|
if fix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user