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

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>

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.

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.