src/rules/style/noqa.bend fails
raw source on the hub · import 0xde9bb08f7de298b03207fb5797ede9a5/src/rules/style/noqa.bend as Noqa
rule noqa: a noqa comment (src/noqa.bend) that silences nothing, as ruff's RUF100. A bare one names no code, so it silences nothing; a code it names silences nothing when no graded finding of the file, on the mark's line, has that code, and a code that is no rule's never does. One finding for a bare mark, and one for each such code, at the comment.
It reads the graded findings of the whole run, so it is no per-file rule:
the planner runs it after every other rule and after the filter, and
what it reports no noqa comment silences. A project rule's code
(coverage, unsafe, trace) is judged only when the run is the whole
tree (whole): over files named, and in the editor, those rules see only
part of the laws, so their silence proves nothing.
5 imports
import Base import ../../lazy/lazy.bend as Lazy import ../../finding.bend as F import ../../codes.bend as Codes import ../../noqa.bend as Noqa
The reader could not load this file (at 0xde9bb08f7de298b03207fb5797ede9a5/src/config.bend:32). What bend.ts says:
Error:
- expected : a fresh name (duplicate declaration: Set)
- observed : 'Set'
Location:
31 | # a name (a group's or a rule's) at a level
32>| type Set is Data:
| ^^^
33 | Set{name: String, level: Level}