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) ⇒ void

This method returns an undefined value.

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

Parameters:



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

def added_lint(_lint); 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



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

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



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

def start(_files); end