Class: Fasterer::Github::Scanner

Inherits:
Object
  • Object
show all
Defined in:
lib/fasterer/github/scanner.rb

Constant Summary collapse

CONFIG_FILE_NAME =
'.fasterer.yml'
SPEEDUPS_KEY =
'speedups'
EXCLUDE_PATHS_KEY =
'exclude_paths'

Instance Method Summary collapse

Constructor Details

#initialize(owner, repo, path) ⇒ Scanner

Returns a new instance of Scanner.



13
14
15
16
17
# File 'lib/fasterer/github/scanner.rb', line 13

def initialize(owner, repo, path)
  @owner = owner
  @repo = repo
  @path = path
end

Instance Method Details

#resultsObject



24
25
26
# File 'lib/fasterer/github/scanner.rb', line 24

def results
  output_composer.result
end

#runObject



19
20
21
22
# File 'lib/fasterer/github/scanner.rb', line 19

def run
  data = traverse_and_collect_data
  data.each { |d| analyze_code(d) }
end