Class: Warder::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/warder/cli.rb

Overview

responsible for executing warder tools

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ CLI

Returns a new instance of CLI.



4
5
6
7
# File 'lib/warder/cli.rb', line 4

def initialize(options)
  options[:files] = '.' if options[:files].empty?
  @options = OpenStruct.new(options)
end

Instance Method Details

#performObject



9
10
11
12
13
14
15
# File 'lib/warder/cli.rb', line 9

def perform
  exit perform_style_guide_validation +
         perform_magick_numbers_validation +
         perform_code_duplication_validation +
         perform_code_smells_validation +
         perform_code_complexity_validation
end