Class: Syntaxer::PlainChecker

Inherits:
Checker
  • Object
show all
Defined in:
lib/syntaxer/checker.rb

Instance Attribute Summary

Attributes inherited from Checker

#reader, #syntaxer

Instance Method Summary collapse

Methods inherited from Checker

process

Constructor Details

#initialize(syntaxer) ⇒ PlainChecker

Returns a new instance of PlainChecker.



110
111
112
# File 'lib/syntaxer/checker.rb', line 110

def initialize syntaxer
  super syntaxer, syntaxer.reader.files_count(syntaxer)
end

Instance Method Details

#processObject

Check syntax in indicated directory

See Also:



118
119
120
121
122
123
124
125
126
127
# File 'lib/syntaxer/checker.rb', line 118

def process
  @reader.rules.each do |rule|
    # check if executor exists
    rule.files_list(@syntaxer.root_path).each do |file|
      check(rule, file)
    end
  end
  
  self
end