Module: HamlLint::Reporter::Hooks

Included in:
HamlLint::Reporter
Defined in:
lib/haml_lint/reporter/hooks.rb

Overview

A collection of hook methods for incremental processing.

Instance Method Summary collapse

Instance Method Details

#added_lint(_lint, _report) ⇒ void

This method returns an undefined value.

A hook that is called for each lint as it is detected.

Parameters:



12
# File 'lib/haml_lint/reporter/hooks.rb', line 12

def added_lint(_lint, _report); end

#finished_file(_file, _lints) ⇒ void

This method returns an undefined value.

A hook that is called for each file as it is finished processing.

Parameters:

  • _file (String)

    the name of the file that just finished

  • _lints (Array<HamlLint::Lint>)

    the lints added to the report



19
# File 'lib/haml_lint/reporter/hooks.rb', line 19

def finished_file(_file, _lints); end

#start(_files) ⇒ void

This method returns an undefined value.

A hook that is called when the processing starts.

Parameters:

  • _files (Array<String>)

    the names of the files to be processed



25
# File 'lib/haml_lint/reporter/hooks.rb', line 25

def start(_files); end