Class: Syntaxer::PlainChecker
- Defined in:
- lib/syntaxer/checker.rb
Instance Attribute Summary
Attributes inherited from Checker
Instance Method Summary collapse
-
#initialize(syntaxer) ⇒ PlainChecker
constructor
A new instance of PlainChecker.
-
#process ⇒ Object
Check syntax in indicated directory.
Methods inherited from Checker
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
#process ⇒ Object
Check syntax in indicated directory
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 |