Skip to content

Warning for disable directives that do nothing. #645

@BobCga

Description

@BobCga

It should be possible to detect and report when a disable directive is doing nothing. There are at least two ways to approach this:

  1. When a shellcheck disable directive is present, but the disabled check isn't raised by the following line (or in the file when the directive is at the top), then emit a warning something like:

    "Line nn: 'SCnnnn' disabled but not raised. This shellcheck directive should be removed."

  2. Provide a shellcheck option to ignore or validate disable directives.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions