Class: Linty

Inherits:
Object
  • Object
show all
Defined in:
lib/linty.rb,
lib/linty/analyzer.rb

Defined Under Namespace

Classes: Analyzer

Class Method Summary collapse

Class Method Details

.analyze(path) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/linty.rb', line 6

def self.analyze(path)
  offenses = []
  analyzer = Analyzer.new
  analyzer.analyze(path) do |offense|
    offenses.push(offense)
  end
  return offenses
end