The first Qodana run found 74 problems in TypeScript / JavaScript and 12 in Rust. Fixed: - React 19.3 deprecates `FormEvent`: the three save forms take the `SubmitEvent` their `onSubmit` hands them. - The URL patterns read `\S` instead of `[^\s]` (18 patterns in platforms.ts and playtest-platforms.ts, same characters). - public/theme-init.js declares its browser globals and drops an unused catch binding. - The two private `stable()` JSON helpers (restore.ts, library-apply.ts) become one `stableJson()` in src/utils/stable-json.ts, with a test. - vitest.config.ts reuses vite.config.ts's alias map instead of a copy. - Accordion destructures `icon` as `Icon` instead of copying it, a JSDoc link points at nothing any more, and i18next's `init()` promise is `void`ed on purpose. - Rust: the three "show the main window" blocks become `show_main_window`. Excluded in qodana.yaml, each with its reason: the Discord webhook secret reference (HardcodedPasswords), escaped `]` / `}` in regexes, the `@i18n/index` imports tsconfig needs, the three react-hooks warnings eslint.config.js documents, the legacy `@deprecated` draft fields in the files that migrate them; in src-tauri/qodana.yaml the module paths `generate_handler!` needs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
60 lines
2.4 KiB
YAML
60 lines
2.4 KiB
YAML
# Qodana for JavaScript / TypeScript: the web app (src/), the Worker, the
|
|
# build plugins, scripts, tests and workflows. Run by
|
|
# .github/workflows/qodana.yml (job `typescript`, native mode), reported to
|
|
# the Qodana Cloud project yt-ts-js (secret QODANA_TOKEN_TS_JS).
|
|
version: "1.0"
|
|
linter: qodana-js
|
|
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, caches and reports.
|
|
- dist
|
|
- coverage
|
|
- node_modules
|
|
- .wrangler
|
|
# The GitHub Pages moving notice, removed on 2026-11-29 (issue #177).
|
|
- migration-page
|
|
# `${{ secrets.DISCORD_RELEASE_PIPELINE_WEBHOOK }}` is a reference to a
|
|
# repository secret, not a secret: the "discord-client-secret" rule only
|
|
# sees the word.
|
|
- name: HardcodedPasswords
|
|
paths:
|
|
- .github/workflows/notify-release-pipeline.yml
|
|
# `\]` and `\}` outside a character class stay escaped: they read as the
|
|
# literal brackets they are, and the patterns stay valid if they ever get
|
|
# the `u` or `v` flag, where a lone `]` or `}` is a syntax error. ESLint's
|
|
# no-useless-escape accepts them too.
|
|
- name: RegExpRedundantEscape
|
|
# `@i18n/index` is the form tsconfig.json's `@i18n/*` path resolves. The
|
|
# bare `@i18n` this suggests resolves only through Vite's alias, so tsc
|
|
# would no longer find the module.
|
|
- name: ES6PreferShortImport
|
|
# The three react-hooks warnings eslint.config.js documents (state synced
|
|
# from i18next, from a store number, and a useMemo the React Compiler
|
|
# can't keep): each needs a restructure, and the config keeps them as
|
|
# warnings on purpose. ESLint runs in CI's `check` job as well.
|
|
- name: Eslint
|
|
paths:
|
|
- src/hooks/use-languages-ready.ts
|
|
- src/components/editor/PlaytestEditor.tsx
|
|
- src/components/editor/StoreLinkEditor.tsx
|
|
# The legacy draft fields `spoilerWarning`, `matureWarning` and
|
|
# `endingsShown` are `@deprecated` so new code doesn't use them; these
|
|
# files carry them on purpose, to read and migrate drafts, presets and
|
|
# templates saved by older versions.
|
|
- name: JSDeprecatedSymbols
|
|
paths:
|
|
- src/config/defaults.ts
|
|
- src/store/editor-store.ts
|
|
- src/hooks/use-current-generator-input.ts
|
|
- src/engine/description-builder.ts
|
|
- src/utils/library-apply.ts
|