Class: Homebrew::DevCmd::Lgtm Private
- Inherits:
-
AbstractCommand
- Object
- AbstractCommand
- Homebrew::DevCmd::Lgtm
- Includes:
- SystemCommand::Mixin
- Defined in:
- dev-cmd/lgtm.rb,
sorbet/rbi/dsl/homebrew/dev_cmd/lgtm.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::Lgtm::Args private
- #run ⇒ void private
Methods included from SystemCommand::Mixin
#system_command, #system_command!
Methods inherited from AbstractCommand
command, command_name, dev_cmd?, #initialize, parser, ruby_cmd?
Methods included from Utils::Output::Mixin
#odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #opoo_outside_github_actions, #pretty_duration, #pretty_installed, #pretty_outdated, #pretty_uninstalled
Constructor Details
This class inherits a constructor from Homebrew::AbstractCommand
Instance Method Details
#args ⇒ Homebrew::DevCmd::Lgtm::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/lgtm.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.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'dev-cmd/lgtm.rb', line 21 def run Homebrew.install_bundler_gems!(groups: Homebrew.valid_gem_groups - ["sorbet"]) tap = Tap.from_path(Dir.pwd) typecheck_args = ["typecheck", tap&.name].compact ohai "brew #{typecheck_args.join(" ")}" safe_system HOMEBREW_BREW_FILE, *typecheck_args puts ohai "brew style --changed --fix" safe_system HOMEBREW_BREW_FILE, "style", "--changed", "--fix" puts audit_or_tests_args = ["--changed"] audit_or_tests_args << "--online" if args.online? if tap audit_or_tests_args << "--skip-style" ohai "brew audit #{audit_or_tests_args.join(" ")}" safe_system HOMEBREW_BREW_FILE, "audit", *audit_or_tests_args else ohai "brew tests #{audit_or_tests_args.join(" ")}" safe_system HOMEBREW_BREW_FILE, "tests", *audit_or_tests_args end end |