Class: Circlemator::CodeAnalyser
- Inherits:
-
Object
- Object
- Circlemator::CodeAnalyser
- Defined in:
- lib/circlemator/code_analyser.rb
Instance Method Summary collapse
- #check_coverage ⇒ Object
- #check_security ⇒ Object
- #check_style ⇒ Object
-
#initialize(opts) ⇒ CodeAnalyser
constructor
A new instance of CodeAnalyser.
Constructor Details
#initialize(opts) ⇒ CodeAnalyser
Returns a new instance of CodeAnalyser.
10 11 12 13 |
# File 'lib/circlemator/code_analyser.rb', line 10 def initialize(opts) @opts = opts @base_branch = opts.fetch(:base_branch) end |
Instance Method Details
#check_coverage ⇒ Object
15 16 17 18 |
# File 'lib/circlemator/code_analyser.rb', line 15 def check_coverage require 'pronto/undercover' run_pronto end |
#check_security ⇒ Object
25 26 27 28 |
# File 'lib/circlemator/code_analyser.rb', line 25 def check_security require 'pronto/brakeman' run_pronto end |
#check_style ⇒ Object
20 21 22 23 |
# File 'lib/circlemator/code_analyser.rb', line 20 def check_style require 'pronto/rubocop' run_pronto end |