diff options
| author | Gautham Goli | 2017-03-29 02:07:53 +0530 |
|---|---|---|
| committer | Gautham Goli | 2017-05-02 23:14:44 +0530 |
| commit | a4568a8697e9ff4a3d8f62e37ee929e22f10d07d (patch) | |
| tree | 2fdfada0389095a09c6f166dd91b2dc89ff476db /Library/Homebrew/dev-cmd | |
| parent | 7a0e5d123c42e2fb907c0ad80cfe17125d8c9d56 (diff) | |
| download | brew-a4568a8697e9ff4a3d8f62e37ee929e22f10d07d.tar.bz2 | |
Let cops run without --strict flag
Diffstat (limited to 'Library/Homebrew/dev-cmd')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index be53e1d6f..2f4b37096 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -75,9 +75,14 @@ module Homebrew style_results = check_style_json(files, options) end + if !strict + options = { fix: ARGV.flag?("--fix"), realpath: true, only: :Homebrew } + style_results = check_style_json(files, options) + end + ff.each do |f| options = { new_formula: new_formula, strict: strict, online: online } - options[:style_offenses] = style_results.file_offenses(f.path) if strict + options[:style_offenses] = style_results.file_offenses(f.path) fa = FormulaAuditor.new(f, options) fa.audit |
