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>
33 lines
1.4 KiB
YAML
33 lines
1.4 KiB
YAML
# Qodana for Rust (Early Access): the Tauri 2 shell of the desktop and
|
|
# Android apps. Run by .github/workflows/qodana.yml (job `rust`, Docker),
|
|
# reported to the Qodana Cloud project yt-rust (secret QODANA_TOKEN_RUST).
|
|
version: "1.0"
|
|
linter: qodana-rust
|
|
profile:
|
|
name: qodana.recommended
|
|
# The quality gate: any problem fails the job.
|
|
failureConditions:
|
|
severityThresholds:
|
|
any: 0
|
|
# The linter evaluates build scripts and expands macros with `cargo check`,
|
|
# and its image has neither a C toolchain nor the libraries Tauri links
|
|
# against (the same packages rust.yml installs). Needs root in the container:
|
|
# the workflow passes `-u root`.
|
|
bootstrap: |
|
|
apt-get update -qq
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends build-essential pkg-config libssl-dev libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
|
|
exclude:
|
|
- name: All
|
|
paths:
|
|
# Cargo's build output, and the Android project `tauri android init`
|
|
# generated (Kotlin and Gradle, not Rust).
|
|
- target
|
|
- gen
|
|
# tauri::generate_handler! needs each command's module path
|
|
# (`storage::backup_list`): the #[tauri::command] macro puts a hidden
|
|
# helper next to the function, and the handler finds it through that
|
|
# path. Without the prefix the crate no longer compiles.
|
|
- name: RsUnnecessaryQualifications
|
|
paths:
|
|
- src/lib.rs
|