Class: ImproveYourCode::CLI::Command::ReportCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/improve_your_code/cli/command/report_command.rb

Instance Method Summary collapse

Constructor Details

#initialize(sources:) ⇒ ReportCommand

Returns a new instance of ReportCommand.



10
11
12
# File 'lib/improve_your_code/cli/command/report_command.rb', line 10

def initialize(sources:)
  @sources = sources
end

Instance Method Details

#executeObject



14
15
16
17
# File 'lib/improve_your_code/cli/command/report_command.rb', line 14

def execute
  populate_reporter_with_smells
  reporter.show
end