-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedContributions especially welcomeContributions especially welcome
Description
Description
i assume this is an unintentional bug in the logic that allows you to add additional information to noqa comments:
# noqa: D103 this function is self-documentingbut ruff should enforce a space between the code and any additional comments. currently it doesn't seem to do so. it also seems to allow certain completely invalid codes:
# no error even though these aren't valid codes:
def foo(): ... # noqa: D103a
# noqa: Zinterestingly, these are treated as two separate codes:
def foo(): ... # noqa: D103F811i think it should instead be an error and force the user to separate them with a comma like this:
def foo(): ... # noqa: D103,F811Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedContributions especially welcomeContributions especially welcome