src/noqa.bend fails
raw source on the hub · import 0xde9bb08f7de298b03207fb5797ede9a5/src/noqa.bend as Noqa
src/noqa: # noqa: CODE comments, and the filter they make, after ruff.
A comment token (the lexer's, so never a string's contents) whose text is
#, any spaces, then noqa is a mark. A : right after noqa opens
its codes: runs of ASCII letters and digits, split by commas with spaces
around them allowed, the list ending at anything else, so free text may
follow (# noqa: L001 IO entry point). noqa at the comment's end, or
followed by a space, names no code: a bare mark. Codes are case-sensitive
and are src/codes.bend's (L001, U002). A finding is silenced when a
mark of its own file, on its own line, names its code.
No rule reads this: the planner (lint/plan.bend) and the language server
run keep over the graded findings once every rule has run, the project
rules included, and then noqa (rules/style/noqa.bend) over what the
marks silenced. Pure (GPU-safe).
6 imports
import Base import ./lazy/lazy.bend as Lazy import ./syntax/lex.bend as Lex import ./finding.bend as F import ./codes.bend as Codes import ./src.bend as Src
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}