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>
61 lines
2.5 KiB
YAML
61 lines
2.5 KiB
YAML
# Qodana for JavaScript / TypeScript: the site, the admin SPA, the Worker,
|
|
# the shared modules and the build code. Run by .github/workflows/qodana.yml
|
|
# (job `typescript`), reported to https://qodana.cloud/projects/GgGyE.
|
|
version: "1.0"
|
|
linter: qodana-js
|
|
# The components are .svelte files, which the linter reads only with
|
|
# JetBrains' Svelte plugin; it is not bundled with Qodana for JS. Plugins
|
|
# install in Docker mode only (the workflow says why), so this project runs
|
|
# in the Qodana image, on the node_modules the job installed.
|
|
plugins:
|
|
- id: dev.blachut.svelte.lang
|
|
profile:
|
|
name: qodana.recommended
|
|
# The quality gate: any problem fails the job.
|
|
failureConditions:
|
|
severityThresholds:
|
|
any: 0
|
|
exclude:
|
|
- name: All
|
|
paths:
|
|
# The Tauri shell is the Rust project (src-tauri/qodana.yaml).
|
|
- src-tauri
|
|
# Build output and reports.
|
|
- dist
|
|
- .admin-build
|
|
- coverage
|
|
# Generated: by `svelte-kit sync`, by the admin build (for the Worker),
|
|
# and by `wrangler types` (then spliced by hand, CLAUDE.md). Their types
|
|
# still resolve; they are only not reported on.
|
|
- .svelte-kit
|
|
- worker/generated
|
|
- worker-configuration.d.ts
|
|
# Every icon is imported from `@lucide/svelte/icons/<name>` and used as a
|
|
# component in the markup. The Svelte plugin does not resolve that subpath
|
|
# export, so it calls every one of them unused. An unused import is an
|
|
# error in all six tsconfigs already (`noUnusedLocals`), which svelte-check
|
|
# and tsc enforce in Web CI.
|
|
- name: ES6UnusedImports
|
|
# The admin SPA reaches into the public app by relative path
|
|
# (../../src/lib/...), as admin/tsconfig.json describes; `#lib` is the
|
|
# SvelteKit app's mapping (tsconfig.json `paths`), which the admin's
|
|
# tsconfig does not have.
|
|
- name: ES6PreferShortImport
|
|
paths:
|
|
- admin
|
|
# The escapes of } stay: without them a pattern only parses in non-unicode
|
|
# (Annex B) mode.
|
|
- name: RegExpRedundantEscape
|
|
# fetchShard() and fetchRemovedText() throw PackUnavailableError to their
|
|
# own catch on purpose: that catch is the one place that falls back from
|
|
# the packed path to the plain one.
|
|
- name: ExceptionCaughtLocallyJS
|
|
paths:
|
|
- src/lib/fetcher.ts
|
|
# `keyCode === 229` is how a key that belongs to an IME composition
|
|
# (Telex, VNI) shows in browsers that report isComposing false for it.
|
|
- name: JSDeprecatedSymbols
|
|
paths:
|
|
- src/lib/common/CommandPalette.svelte
|
|
- src/lib/palette.svelte.ts
|