Each qodana.yaml now fails its job on any problem (failureConditions, any: 0), as in free-games-itchio-list, and names what it leaves out and why: - Python: DuplicatedCode in the two discovery and two leaderboard scripts (sharing them is a refactor); broad excepts where a failed request is "no answer" by design (steam_client, the Access diagnosis); PyCharm's sorted() typing in edit_game.py; the escaped bracket pair in normalize.py's `\[hover-add\]`. - JS/TS: ES6UnusedImports (the Svelte plugin cannot resolve `@lucide/svelte/icons/*` and calls all 122 icon imports unused; every tsconfig has noUnusedLocals, enforced by svelte-check and tsc), the admin's relative imports of the public app, `}` escapes kept for unicode-mode parsing, fetcher.ts's throw-to-own-catch fallback, and keyCode 229 for IME composition. - Rust: CargoUnusedDependency, which cannot see the ::serde_json paths generate_context!() expands to. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
59 lines
2.3 KiB
YAML
59 lines
2.3 KiB
YAML
# Qodana for Python: the data pipeline and its tests. Run by
|
|
# .github/workflows/qodana.yml (job `python`), reported to
|
|
# https://qodana.cloud/projects/P2R5k. The web app and the Tauri shell have
|
|
# their own projects: web/qodana.yaml and web/src-tauri/qodana.yaml.
|
|
#
|
|
# This directory is the project, not the repository root: every script and
|
|
# the tests put scripts/ on sys.path and import `core`, which resolves only
|
|
# when scripts/ is the content root.
|
|
version: "1.0"
|
|
linter: qodana-python
|
|
# Native mode: the runner's Python 3.15, with requirements.txt and
|
|
# requirements-test.txt in the virtual environment the job passes as
|
|
# QODANA_PYTHON_PATH.
|
|
withinDocker: false
|
|
profile:
|
|
name: qodana.recommended
|
|
# The quality gate: any problem fails the job.
|
|
failureConditions:
|
|
severityThresholds:
|
|
any: 0
|
|
exclude:
|
|
- name: All
|
|
paths:
|
|
# Data the jobs commit here, not code.
|
|
- removed_games.jsonl
|
|
- temp_info.jsonl
|
|
- dead_games.log
|
|
# The byte-exact blocklist golden file the tests compare against.
|
|
- tests/fixtures
|
|
# The two discovery scripts and the two leaderboard scripts each stand
|
|
# alone and repeat a few lines of their sibling (argument and environment
|
|
# handling; the tier, trend and star helpers). Sharing them would be a
|
|
# refactor, which maintenance mode does not take (CLAUDE.md).
|
|
- name: DuplicatedCode
|
|
paths:
|
|
- backfill_discover.py
|
|
- discover_new.py
|
|
- top_offline.py
|
|
- top_online.py
|
|
# A request that fails in any way is "no answer" there, by design: the
|
|
# caller retries, skips or reports it, and a job of hours never dies on an
|
|
# exception nobody listed (core/steam_client.py). The Access diagnosis in
|
|
# discover_new.py is best effort on top of an error already being raised.
|
|
- name: PyBroadExceptionInspection
|
|
paths:
|
|
- core/steam_client.py
|
|
- discover_new.py
|
|
# PyCharm types sorted(MANUAL_FIELDS), a frozenset of str, as its
|
|
# comparison protocol instead of str, and then refuses `{f:<16}`.
|
|
- name: PyStringFormatInspection
|
|
paths:
|
|
- edit_game.py
|
|
# `\[hover-add\]` keeps both brackets escaped: the pattern removes that
|
|
# literal text, and the pair reads as one. The rules in this file must stay
|
|
# byte-stable (CLAUDE.md, save_main()).
|
|
- name: RegExpRedundantEscape
|
|
paths:
|
|
- core/normalize.py
|