This repository was archived by the owner on Feb 14, 2025. It is now read-only.
This repository was archived by the owner on Feb 14, 2025. It is now read-only.
Add a way how to disable a rule on granular basis #15
Open
Description
It would be awesome if there was a way how to disable a rule (or multiple at the same time) on a per line, per function and per file basis. Probably something like an inline comment as is common with other tools.
For example, if I'd want to disable arithmetic checks (the arithmetic-expr_add
rule), I would put a # amarna-disable: arithmetic-expr_add
either at the top of the file (to disable this check in the whole file), as the first comment in the function body (to disable it only in that function) or somewhere inside the function (to disable it on the next line).
Are you thinking about adding something like this?
Metadata
Metadata
Assignees
Labels
No labels