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/cmd | |
| parent | 7a0e5d123c42e2fb907c0ad80cfe17125d8c9d56 (diff) | |
| download | brew-a4568a8697e9ff4a3d8f62e37ee929e22f10d07d.tar.bz2 | |
Let cops run without --strict flag
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/style.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/style.rb b/Library/Homebrew/cmd/style.rb index 2a7f37031..d89c9b72f 100644 --- a/Library/Homebrew/cmd/style.rb +++ b/Library/Homebrew/cmd/style.rb @@ -15,6 +15,8 @@ require "utils" require "json" +require "rubocop" +require_relative "../rubocops" module Homebrew module_function @@ -54,6 +56,10 @@ module Homebrew ] args << "--auto-correct" if fix + if options[:only] + args << "--only" << RuboCop::Cop::Cop.registry.with_department(options[:only]).names.join(" ") + end + if files.nil? args << "--config" << HOMEBREW_LIBRARY_PATH/".rubocop.yml" args += [HOMEBREW_LIBRARY_PATH] |
