View Source Credo.Check.ConfigComment (Credo v1.6.3)

ConfigComment structs represent comments which follow control Credo's behaviour.

The following comments are supported:

# credo:disable-for-this-file
# credo:disable-for-next-line
# credo:disable-for-previous-line
# credo:disable-for-lines:<number>

Link to this section Summary

Functions

Returns true if the given issue should be ignored based on the given config_comment

Returns a ConfigComment struct based on the given parameters.

Link to this section Functions

Link to this function

ignores_issue?(config_comment, issue)

View Source

Returns true if the given issue should be ignored based on the given config_comment

Link to this function

new(instruction, param_string, line_no)

View Source

Returns a ConfigComment struct based on the given parameters.