Skip to content
Snippets Groups Projects
Commit 04508b0c authored by Baptiste Fontaine's avatar Baptiste Fontaine Committed by Mike McQuaid
Browse files

brew style: --fix to auto-correct issues.


Closes Homebrew/homebrew#37670.

Signed-off-by: default avatarMike McQuaid <mike@mikemcquaid.com>
parent 6dc9506e
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,16 @@ module Homebrew
Homebrew.install_gem_setup_path! "rubocop"
system "rubocop", "--format", "simple", "--config",
"#{HOMEBREW_LIBRARY}/.rubocop.yml", *target
args = [
"--format", "simple", "--config",
"#{HOMEBREW_LIBRARY}/.rubocop.yml"
]
args << "--auto-correct" if ARGV.homebrew_developer? && ARGV.flag?("--fix")
args += target
system "rubocop", *args
Homebrew.failed = !$?.success?
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment