module HamlLint::Reporter::Hooks
A collection of hook methods for incremental processing.
Public Instance Methods
added_lint(_lint, _report)
click to toggle source
A hook that is called for each lint as it is detected.
@param _lint [HamlLint::Lint] the lint added to the report @param _report [HamlLint::Report] the report that contains the lint @return [void]
# File lib/haml_lint/reporter/hooks.rb, line 11 def added_lint(_lint, _report); end
finished_file(_file, _lints)
click to toggle source
A hook that is called for each file as it is finished processing.
@param _file [String] the name of the file that just finished @param _lints [Array<HamlLint::Lint>] the lints added to the report @return [void]
# File lib/haml_lint/reporter/hooks.rb, line 18 def finished_file(_file, _lints); end
start(_files)
click to toggle source
A hook that is called when the processing starts.
@param _files [Array<String>] the names of the files to be processed @return [void]
# File lib/haml_lint/reporter/hooks.rb, line 24 def start(_files); end