class Syntaxer::PlainChecker
Public Class Methods
new(syntaxer)
click to toggle source
Calls superclass method
Syntaxer::Checker::new
# File lib/syntaxer/checker.rb, line 116 def initialize syntaxer super syntaxer, syntaxer.reader.files_count(syntaxer) end
Public Instance Methods
process()
click to toggle source
Check syntax in indicated directory
@see Checker#process
# File lib/syntaxer/checker.rb, line 124 def process @deferred_process = [] @reader.rules.each do |rule| if rule.deferred @deferred_process << rule else rule.files_list(@syntaxer.root_path).each do |file| check(rule, file) end end end @deferred_process.each do |rule| rule.exec_rule.run(@syntaxer.root_path, rule.files_list(@syntaxer.root_path)) end self end