Class: Warder::CLI
- Inherits:
-
Object
- Object
- Warder::CLI
- Defined in:
- lib/warder/cli.rb
Overview
responsible for executing warder tools
Instance Method Summary collapse
-
#initialize(options) ⇒ CLI
constructor
A new instance of CLI.
- #perform ⇒ Object
Constructor Details
#initialize(options) ⇒ CLI
Returns a new instance of CLI.
4 5 6 7 |
# File 'lib/warder/cli.rb', line 4 def initialize() [:files] = '.' if [:files].empty? @options = OpenStruct.new() end |
Instance Method Details
#perform ⇒ Object
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 |