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



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

def initialize(options)
  @options = options
end

Instance Method Details

#performObject



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

def perform
  exit perform_style_guide_validation +
         perform_magick_numbers_validation +
         perform_code_duplications_validation +
         perform_code_smells_validation
end