Lines Matching +full:code +full:- +full:format
4 # SPDX-License-Identifier: Apache-2.0
12 # ruff check --output-format=json | ./scripts/ruff/gen_lint_exclude.py >> .ruff-excludes.toml
16 def __init__(self, code: str, url: str) -> None:
17 self.code = code
20 def __eq__(self, other: object) -> bool:
23 return self.code.__eq__(other.code)
25 def __hash__(self) -> int:
26 return self.code.__hash__()
31 sys.stdout.write("[lint.per-file-ignores]\n")
35 rules.setdefault(v["filename"], set()).add(RuffRule(v["code"], v["url"]))
40 for r in sorted(rs, key=lambda x: x.code):
41 sys.stdout.write(f' "{r.code}",\t# {r.url}\n'.expandtabs())