Class: Circlemator::CodeAnalyser

Inherits:
Object
  • Object
show all
Defined in:
lib/circlemator/code_analyser.rb

Instance Method Summary collapse

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_coverageObject



15
16
17
18
# File 'lib/circlemator/code_analyser.rb', line 15

def check_coverage
  require 'pronto/undercover'
  run_pronto
end

#check_securityObject



25
26
27
28
# File 'lib/circlemator/code_analyser.rb', line 25

def check_security
  require 'pronto/brakeman'
  run_pronto
end

#check_styleObject



20
21
22
23
# File 'lib/circlemator/code_analyser.rb', line 20

def check_style
  require 'pronto/rubocop'
  run_pronto
end