Class: Vivlio::Starter::CLI::SamovarCommands::LintCommand
- Inherits:
-
Samovar::Command
- Object
- Samovar::Command
- Vivlio::Starter::CLI::SamovarCommands::LintCommand
- Defined in:
- lib/vivlio/starter/cli/samovar/lint_command.rb
Overview
lint コマンドの Samovar 実装
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/vivlio/starter/cli/samovar/lint_command.rb', line 38 def call return print_help if [:help] targets = files || [] LintCommands.execute_lint(targets, ) rescue SystemExit => e e.status rescue StandardError => e Common.log_error("lint 実行中にエラー: #{e.}") Common.log_error(e.backtrace.first(5).join("\n")) if ENV['VERBOSE'] 1 end |