style: don't require HOMEBREW_DEVELOPER to fix.
This commit is contained in:
parent
e79f62b2ea
commit
3686243e5a
@ -5,8 +5,8 @@
|
|||||||
#: style checks on the whole Homebrew `Library`, including core code and all
|
#: style checks on the whole Homebrew `Library`, including core code and all
|
||||||
#: formulae.
|
#: formulae.
|
||||||
#:
|
#:
|
||||||
#: If `--fix` is passed and `HOMEBREW_DEVELOPER` is set, style violations
|
#: If `--fix` is passed, style violations will be automatically fixed using
|
||||||
#: will be automatically fixed using RuboCop's `--auto-correct` feature.
|
#: RuboCop's `--auto-correct` feature.
|
||||||
#:
|
#:
|
||||||
#: If `--display-cop-names` is passed, the RuboCop cop name for each violation
|
#: If `--display-cop-names` is passed, the RuboCop cop name for each violation
|
||||||
#: is included in the output.
|
#: is included in the output.
|
||||||
@ -51,7 +51,7 @@ module Homebrew
|
|||||||
--force-exclusion
|
--force-exclusion
|
||||||
--config #{HOMEBREW_LIBRARY}/.rubocop.yml
|
--config #{HOMEBREW_LIBRARY}/.rubocop.yml
|
||||||
]
|
]
|
||||||
args << "--auto-correct" if ARGV.homebrew_developer? && fix
|
args << "--auto-correct" if fix
|
||||||
args += files
|
args += files
|
||||||
|
|
||||||
case output_type
|
case output_type
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user