Class: Homebrew::DevCmd::StyleCmd Private
- Inherits:
-
AbstractCommand
- Object
- AbstractCommand
- Homebrew::DevCmd::StyleCmd
- Defined in:
- dev-cmd/style.rb,
sorbet/rbi/dsl/homebrew/dev_cmd/style_cmd.rbi
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
Defined Under Namespace
Classes: Args
Instance Method Summary collapse
- #args ⇒ Homebrew::DevCmd::StyleCmd::Args private
- #run ⇒ void private
Methods inherited from AbstractCommand
command, command_name, dev_cmd?, #initialize, parser, ruby_cmd?
Constructor Details
This class inherits a constructor from Homebrew::AbstractCommand
Instance Method Details
#args ⇒ Homebrew::DevCmd::StyleCmd::Args
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
10 |
# File 'sorbet/rbi/dsl/homebrew/dev_cmd/style_cmd.rbi', line 10 def args; end |
#run ⇒ void
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
This method returns an undefined value.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'dev-cmd/style.rb', line 45 def run Homebrew.install_bundler_gems!(groups: ["style"]) target = if args.no_named? nil else args.named.to_paths end only_cops = args.only_cops except_cops = args.except_cops = { fix: args.fix?, reset_cache: args.reset_cache?, debug: args.debug?, verbose: args.verbose?, } if only_cops [:only_cops] = only_cops elsif except_cops [:except_cops] = except_cops else [:except_cops] = %w[FormulaAuditStrict] end Homebrew.failed = !Style.check_style_and_print(target, **) end |