Skip to content

--add-noqa is unintuitive #2187

@not-my-profile

Description

@not-my-profile

I would expect --add-noqa to only add the directive to violations that ruff cannot fix but it in fact adds it everywhere.

Even worse the following just ignores the --fix option and does not fix anything but adds noqa everywhere:

ruff foo.py --add-noqa --fix

I think at least the former should be clearly explained in the option description in --help and the latter should result in an error until that is supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliRelated to the command-line interface

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions