diff --git a/.github/workflows/notify-ci-failure.yml b/.github/workflows/notify-ci-failure.yml
index 89a09dd..d304c94 100644
--- a/.github/workflows/notify-ci-failure.yml
+++ b/.github/workflows/notify-ci-failure.yml
@@ -3,9 +3,9 @@ name: Notify CI Failures
on:
workflow_run:
# Match the exact `name:` of each watched workflow (ci.yml, security.yml,
- # compliance.yml, rust.yml). Renaming one silently breaks this filter —
- # keep them in sync.
- workflows: ["CI", "Security", "Compliance", "Rust"]
+ # compliance.yml, rust.yml, qodana.yml). Renaming one silently breaks
+ # this filter — keep them in sync.
+ workflows: ["CI", "Security", "Compliance", "Rust", "Qodana"]
types: [completed]
# REQUIRED: declare permissions matching the reusable workflow's needs.
diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml
new file mode 100644
index 0000000..dceacd0
--- /dev/null
+++ b/.github/workflows/qodana.yml
@@ -0,0 +1,137 @@
+name: Qodana
+
+# JetBrains Qodana static analysis, one linter per Qodana Cloud project:
+#
+# typescript - qodana-js (native mode) the repository project yt-ts-js, secret QODANA_TOKEN_TS_JS, qodana.yaml
+# rust - qodana-rust (Docker, EAP) src-tauri/ project yt-rust, secret QODANA_TOKEN_RUST, src-tauri/qodana.yaml
+#
+# Every run analyses the whole project (`pr-mode: false`), so a pull request
+# and `main` report the same way, and each qodana.yaml holds a quality gate of
+# zero problems. Results: Qodana Cloud, check annotations on the run, and the
+# qodana-report-* artifacts (SARIF and logs). Not a required check.
+#
+# Both linters need an Ultimate licence; the account runs the Qodana Ultimate
+# trial. When the licence lapses, both jobs fail at the licence check: renew
+# it, or delete this file and the two qodana.yaml files.
+#
+# PRs from forks and from Dependabot get no repository secrets: the `tokens`
+# job sees that, and the analysis is skipped there, not failed — main is
+# analysed once they merge. The token reaches the scan step only: npm
+# packages are installed in a step that never sees it.
+on:
+ push:
+ branches: [main]
+ pull_request:
+ branches: [main]
+ workflow_dispatch:
+
+permissions: {}
+
+concurrency:
+ group: qodana-${{ github.ref }}
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
+
+jobs:
+ tokens:
+ name: Qodana tokens
+ runs-on: ubuntu-latest
+ timeout-minutes: 5
+ permissions: {}
+ outputs:
+ ts-js: ${{ steps.check.outputs.ts-js }}
+ rust: ${{ steps.check.outputs.rust }}
+ steps:
+ - name: Check which Qodana tokens this run has
+ id: check
+ env:
+ HAS_TS_JS: ${{ secrets.QODANA_TOKEN_TS_JS != '' }}
+ HAS_RUST: ${{ secrets.QODANA_TOKEN_RUST != '' }}
+ run: |
+ echo "ts-js=$HAS_TS_JS" >> "$GITHUB_OUTPUT"
+ echo "rust=$HAS_RUST" >> "$GITHUB_OUTPUT"
+ if [ "$HAS_TS_JS" != true ] || [ "$HAS_RUST" != true ]; then
+ echo "::notice::No Qodana token in this run (a Dependabot or fork pull request): that analysis is skipped."
+ fi
+
+ typescript:
+ name: TypeScript / JavaScript
+ needs: tokens
+ if: needs.tokens.outputs.ts-js == 'true'
+ runs-on: ubuntu-latest
+ timeout-minutes: 40
+ permissions:
+ contents: read
+ checks: write # the action's annotations
+ steps:
+ # The pull request's own head commit, not the merge GitHub makes, so
+ # the report names a commit that exists; full history for its VCS data.
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ ref: ${{ github.event.pull_request.head.sha || github.sha }}
+ fetch-depth: 0
+ persist-credentials: false
+ - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
+ with:
+ node-version-file: .node-version
+ cache: npm
+ # The linter resolves imports and types from node_modules. No lifecycle
+ # scripts, as in every workflow (ci.yml says why).
+ - run: npm ci --ignore-scripts
+ # Native mode: the linter runs on this runner's Node 26 and node_modules
+ # instead of the older Node the Qodana image ships.
+ - name: Qodana scan
+ uses: JetBrains/qodana-action@3e8d76ff0e0241618abd808682f426afe84bab3f # v2026.2.2
+ with:
+ args: --linter qodana-js --within-docker false
+ pr-mode: false
+ post-pr-comment: false
+ upload-result: true
+ artifact-name: qodana-report-typescript
+ primary-cache-key: qodana-2026.2-js-${{ github.ref }}-${{ github.sha }}
+ # A prefix, so pull requests can restore the cache saved on main.
+ additional-cache-key: qodana-2026.2-js-
+ cache-default-branch-only: true
+ env:
+ QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_TS_JS }}
+
+ rust:
+ name: Rust (Early Access)
+ needs: tokens
+ if: needs.tokens.outputs.rust == 'true'
+ runs-on: ubuntu-latest
+ timeout-minutes: 45
+ permissions:
+ contents: read
+ checks: write # the action's annotations
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ ref: ${{ github.event.pull_request.head.sha || github.sha }}
+ fetch-depth: 0
+ persist-credentials: false
+ # tauri::generate_context!() refuses to expand without the frontend
+ # directory (frontendDist, ../dist): an empty page stands in for the web
+ # build, which the analysis does not need. The icons are committed.
+ - name: Stand-in for the web build
+ run: |
+ mkdir -p dist
+ echo '
stand-in' > dist/index.html
+ # qodana-rust ships only as a Docker image. It runs as root so that the
+ # bootstrap in src-tauri/qodana.yaml can install the C toolchain and the
+ # libraries Tauri links against — without them `cargo check` fails and
+ # the linter loads no Cargo package. The crates go to the cached Qodana
+ # directory. --repository-root keeps ../dist and the git data visible.
+ - name: Qodana scan
+ uses: JetBrains/qodana-action@3e8d76ff0e0241618abd808682f426afe84bab3f # v2026.2.2
+ with:
+ args: --project-dir src-tauri --repository-root . --linter qodana-rust -u root -e CARGO_HOME=/data/cache/cargo
+ pr-mode: false
+ post-pr-comment: false
+ upload-result: true
+ artifact-name: qodana-report-rust
+ primary-cache-key: qodana-2026.2-rust-${{ github.ref }}-${{ github.sha }}
+ # A prefix, so pull requests can restore the cache saved on main.
+ additional-cache-key: qodana-2026.2-rust-
+ cache-default-branch-only: true
+ env:
+ QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_RUST }}
diff --git a/CLAUDE.md b/CLAUDE.md
index 19065be..2481740 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -11,19 +11,19 @@
## Tech Stack
-| Layer | Technology |
-| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| UI | React 19, TypeScript 7 (strict), Radix primitives (`radix-ui`), Motion (LazyMotion), cmdk, sonner, lucide-react + simple-icons |
-| Build | Vite 8 (Rolldown); config imports need `.ts` extensions; Node 26 (`.node-version`) |
-| Type checking | TypeScript 7 `tsc` (`@typescript/native`); `typescript` is an npm alias for `@typescript/typescript6`, the 6.0 API typescript-eslint loads |
-| Styling | Tailwind CSS 4, CSS-first `@theme` tokens in `src/styles/globals.css` |
-| State | Zustand 5 + `persist` (localStorage) — the only store on every platform |
-| Routing | React Router 7 — `BrowserRouter` on the web, `HashRouter` in Tauri |
-| i18n | i18next + react-i18next, 8 locales (en, vi, ja, es, ko, zh, pt-BR, id); `en` bundled, others lazy |
-| Desktop / Android | Tauri 2 (Rust) — see `src-tauri/` |
-| Web hosting | Cloudflare Workers (`worker/`, `wrangler.jsonc`), Turnstile, Web Analytics |
-| Tests | Vitest (node environment; Worker tests included) |
-| Quality | ESLint, Prettier, knip, coverage thresholds, bundle budget, licence allow-list, copyright years, REUSE, actionlint/zizmor, cargo fmt/clippy/deny, SonarCloud (CI-based) |
+| Layer | Technology |
+| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| UI | React 19, TypeScript 7 (strict), Radix primitives (`radix-ui`), Motion (LazyMotion), cmdk, sonner, lucide-react + simple-icons |
+| Build | Vite 8 (Rolldown); config imports need `.ts` extensions; Node 26 (`.node-version`) |
+| Type checking | TypeScript 7 `tsc` (`@typescript/native`); `typescript` is an npm alias for `@typescript/typescript6`, the 6.0 API typescript-eslint loads |
+| Styling | Tailwind CSS 4, CSS-first `@theme` tokens in `src/styles/globals.css` |
+| State | Zustand 5 + `persist` (localStorage) — the only store on every platform |
+| Routing | React Router 7 — `BrowserRouter` on the web, `HashRouter` in Tauri |
+| i18n | i18next + react-i18next, 8 locales (en, vi, ja, es, ko, zh, pt-BR, id); `en` bundled, others lazy |
+| Desktop / Android | Tauri 2 (Rust) — see `src-tauri/` |
+| Web hosting | Cloudflare Workers (`worker/`, `wrangler.jsonc`), Turnstile, Web Analytics |
+| Tests | Vitest (node environment; Worker tests included) |
+| Quality | ESLint, Prettier, knip, coverage thresholds, bundle budget, licence allow-list, copyright years, REUSE, actionlint/zizmor, cargo fmt/clippy/deny, SonarCloud (CI-based), Qodana (JS + Rust) |
## Project Structure
@@ -184,5 +184,6 @@ npm run generate:brand # favicon, PWA icons, link-preview card from assets/
- UI changes follow the accessibility checklist in `ACCESSIBILITY.md` (#for-contributors): keyboard, names via `Field` / `IconButton`, announced errors, tokens only, reduced motion, 24 px targets. Generated text gets `lang` (the output language); pages name themselves with `useDocumentTitle`, which `RouteAnnouncer` reads out. Update ACCESSIBILITY.md (+ `docs/i18n/vi/`) when what it promises changes.
- Never commit `note.txt`, `warning.txt` or `__pycache__/`; never put real secrets in files (`.dev.vars` holds Cloudflare's public Turnstile test keys only).
- SonarCloud (project `poli0981_youtube-generator`) is CI-based: the `sonarcloud` job in `ci.yml` scans every PR from this repository and every push to `main`, with the coverage from `check`; settings in `sonar-project.properties`; Automatic Analysis is off. Keep it at 0 open issues and the quality gate (Sonar way: A ratings, reviewed hotspots, ≤ 3 % duplication, ≥ 80 % coverage on new code) green — the job fails with the gate. Coverage covers what `coverage.include` in `vitest.config.ts` lists (the logic layers); everything else is in `sonar.coverage.exclusions`, because a file missing from the LCOV report counts as 0 % — a new source folder goes into one list or the other. The version passed to the scanner starts each release's new-code period. Fork and Dependabot PRs skip the scan (no `SONAR_TOKEN`). Check a PR with `https://sonarcloud.io/api/issues/search?componentKeys=poli0981_youtube-generator&pullRequest=&resolved=false` and its gate with `https://sonarcloud.io/api/qualitygates/project_status?projectKey=poli0981_youtube-generator&pullRequest=`. Workflows install with `npm ci --ignore-scripts` and call local binaries (`npm run …`), never `npx` for a package that isn't installed.
+- Qodana (`.github/workflows/qodana.yml`) runs on every PR and push to `main`: job `typescript` is Qodana for JS in native mode (`qodana.yaml`, Cloud project `yt-ts-js`, secret `QODANA_TOKEN_TS_JS`), job `rust` is Qodana for Rust, Early Access, in Docker on `src-tauri/` (`src-tauri/qodana.yaml`, project `yt-rust`, secret `QODANA_TOKEN_RUST`). Both gate on zero problems: fix a finding, or exclude it in the `qodana.yaml` with a comment saying why. Both skip without their token (Dependabot and fork PRs). It needs an Ultimate licence (currently the trial): when it lapses both jobs fail at the licence check.
- TypeScript bumps may be manual: `@typescript/native` (`npm:typescript@^7`) and `typescript` (`npm:@typescript/typescript6@^6`) are npm aliases Dependabot may not follow. Stop the dev server before `npm ci` on Windows — it locks native modules (EPERM).
- The Cloudflare dashboard, publishing releases and repository settings are the maintainer's; ask before touching them.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index f4f34f9..7f08f06 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -39,7 +39,7 @@ Use the templates in `.github/ISSUE_TEMPLATE/`:
- Branch from `main` (`feat/…`, `fix/…`, `docs/…`) and open the PR against `main`. Every merge to `main` deploys the web app, so `main` stays releasable.
- Commit format and **PR title**: `type(scope): message` — e.g. `feat(engine): add Spanish template support`. Types: `feat`, `fix`, `refactor`, `docs`, `test`, `ci`, `chore`. CI checks the PR title.
-- Required checks: `check`, `dependency-review`, `workflow-lint`, `reuse`, `pr-title`. When `src-tauri/` changes, the Rust workflow's `lint-and-test` and `cargo-deny` run too, and GitHub's CodeQL code scanning runs on every PR. SonarCloud analyses PRs opened from this repository — its quality gate wants A ratings, reviewed security hotspots, at most 3 % duplication and at least 80 % test coverage on new code in the layers Vitest measures (PRs from forks get no secrets and skip it; the maintainer's merge runs it on `main`). Commits on `main` are signed.
+- Required checks: `check`, `dependency-review`, `workflow-lint`, `reuse`, `pr-title`. When `src-tauri/` changes, the Rust workflow's `lint-and-test` and `cargo-deny` run too, and GitHub's CodeQL code scanning runs on every PR. SonarCloud analyses PRs opened from this repository — its quality gate wants A ratings, reviewed security hotspots, at most 3 % duplication and at least 80 % test coverage on new code in the layers Vitest measures (PRs from forks get no secrets and skip it; the maintainer's merge runs it on `main`). JetBrains Qodana does the same for TypeScript and for the Rust shell, and fails on any problem it finds. Commits on `main` are signed.
- PR titles start with a lower-case letter after the colon (`feat(editor): add …`, not `feat(editor): Add …`).
- One logical change per PR. Don't bundle unrelated refactors.
- All locale files must stay in lock-step — see the i18n section below.
diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md
index 4b0da3e..cec3060 100644
--- a/docs/DEVELOPMENT.md
+++ b/docs/DEVELOPMENT.md
@@ -87,6 +87,7 @@ The dev server is the app alone: no Turnstile gate and no analytics. To run the
- PR titles use the commit format `type(scope): message`; CI checks them.
- Every PR runs the `check` job (below), `dependency-review`, `workflow-lint`, `reuse` and `pr-title`; the Rust jobs `lint-and-test` and `cargo-deny` run when `src-tauri/` changes.
- After `check`, the `sonarcloud` job sends the code and the coverage report to [SonarCloud](https://sonarcloud.io/project/overview?id=poli0981_youtube-generator) (settings in `sonar-project.properties`) and fails when its quality gate does: new code needs A ratings, reviewed security hotspots, at most 3 % duplication and at least 80 % coverage. PRs from forks and from Dependabot skip it — they get no `SONAR_TOKEN` — and `main` is analysed after every merge.
+- The `Qodana` workflow runs JetBrains [Qodana](https://www.jetbrains.com/qodana/) on every PR and every push to `main`: Qodana for JS on the repository (`qodana.yaml`) and Qodana for Rust on `src-tauri/` (`src-tauri/qodana.yaml`). Both fail on any problem. Like SonarCloud, it skips PRs from forks and from Dependabot, which get no Qodana token. It is not a required check.
Full rules: [CONTRIBUTING.md](../CONTRIBUTING.md).
diff --git a/docs/TECH-SPEC.md b/docs/TECH-SPEC.md
index c5d7c74..59d0829 100644
--- a/docs/TECH-SPEC.md
+++ b/docs/TECH-SPEC.md
@@ -595,6 +595,7 @@ An unknown version is read as 0: every migration step is idempotent, so running
| `security.yml` (Security) | PRs, pushes on `main`, weekly, manual | `dependency-review` (PRs: fails on a newly added high/critical advisory), `workflow-lint` (actionlint + zizmor, `.github/zizmor.yml`), `scorecard` (OpenSSF Scorecard, informational; not on PRs) |
| `compliance.yml` (Compliance) | PRs, pushes on `main` | `reuse` (REUSE licensing via `REUSE.toml`), `pr-title` (Conventional-Commit PR titles with a lower-case subject) |
| `rust.yml` (Rust) | Changes under `src-tauri/`, weekly, manual | `lint-and-test` (`cargo fmt --all -- --check`, `cargo clippy --all-targets --locked -- -D warnings`, `cargo test --locked`, after `npm run build` because `generate_context!` embeds `dist/`), `cargo-deny` (`check advisories licenses sources`, `src-tauri/deny.toml`) |
+| `qodana.yml` (Qodana) | PRs to and pushes on `main`, manual | `typescript` — Qodana for JS in native mode (`qodana.yaml`); `rust` — Qodana for Rust, Early Access, in Docker (`src-tauri/qodana.yaml`); both skip without their token (Dependabot and fork PRs) |
| `release-desktop.yml`, `release-android.yml` | `v*` tags, manual with a `tag` input | `verify`, then the builds — see [PACKAGING.md](PACKAGING.md) |
| `announce-release.yml` | Release published, manual | Links the release to an Announcements discussion and posts to Discord |
| `notify-ci-failure.yml`, `notify-release-pipeline.yml` | `workflow_run` | Discord notifications through the maintainer's shared workflows |
@@ -642,7 +643,8 @@ Then `sonarcloud` (after `check` succeeds):
- **Copyright years** (`scripts/lib/copyright.ts`, v1.1.0): NOTICE, REUSE.toml and `bundle.copyright` in `tauri.conf.json` must state `copyrightYears()` from `src/config/brand.ts` — "2026", then "2026-2027" from the first commit of 2027. The commit year rather than the clock keeps old commits green; `npm run update:copyright` rewrites the three files. The `/legal` pages' footer uses the same helper at build time.
- **Wrangler dry run** validates `wrangler.jsonc` and bundles the Worker exactly as Workers Builds will, without deploying.
- **SonarCloud** (CI-based; Automatic Analysis is off in the project's settings): `sonar-project.properties` makes the whole repository main code except the tests (`tests/**` and any `src/**/*.test.ts(x)`, analysed as tests) and the binary files (icons, the Gradle wrapper's jar), imports `coverage/lcov.info` and excludes from coverage everything Vitest does not measure (see [Testing Strategy](#6-testing-strategy)). The scan waits for the quality gate — Sonar way: A security, reliability and maintainability ratings, every security hotspot reviewed, ≤ 3 % duplication and ≥ 80 % coverage on new code — and fails the job when it fails. New code is "since the previous version": the job reads `package.json`'s version into `sonar.projectVersion`, so every release starts a new period. The scan runs in a job of its own so that `SONAR_TOKEN` never shares a job with npm packages. PRs from forks and from Dependabot get no repository secrets and skip it; the condition checks the PR author, not `github.actor` (zizmor's `bot-conditions`).
-- Every workflow declares least-privilege `permissions`, checks out with `persist-credentials: false`, and pins actions by commit SHA (Dependabot keeps the SHAs and version comments current). The exceptions are the actionlint Docker image (pinned by version tag) and the maintainer's own `poli0981/.github` reusable workflows (tracked at `main`, allowed in `.github/zizmor.yml`). CI, Security, Compliance and Rust cancel superseded runs through a `concurrency` group, except on `main`, where each commit's result is a record the release process reads back.
+- **Qodana** (v1.6.0; JetBrains, Ultimate licence — the account runs the trial): `qodana.yml` runs Qodana for JS in native mode, on the runner's Node 26 and `node_modules` (`qodana.yaml`), and Qodana for Rust (Early Access, Docker only) on `src-tauri/` (`src-tauri/qodana.yaml`: its `bootstrap` installs the packages `rust.yml` installs, and a stand-in `dist/index.html` lets `generate_context!` expand). Both use the `qodana.recommended` profile and a quality gate of zero problems; every exclusion in a `qodana.yaml` says why. Every run analyses the whole project (`pr-mode: false`). Results go to Qodana Cloud (projects `yt-ts-js` and `yt-rust`), the run's annotations and the `qodana-report-*` artifacts — no PR comment. A `tokens` job checks for `QODANA_TOKEN_TS_JS` and `QODANA_TOKEN_RUST`, which Dependabot and fork PRs don't get, so the analysis is skipped there; the token reaches only the scan step, never the `npm ci` one. Not a required check. When the licence lapses, both jobs fail at the licence check.
+- Every workflow declares least-privilege `permissions`, checks out with `persist-credentials: false`, and pins actions by commit SHA (Dependabot keeps the SHAs and version comments current). The exceptions are the actionlint Docker image (pinned by version tag) and the maintainer's own `poli0981/.github` reusable workflows (tracked at `main`, allowed in `.github/zizmor.yml`). CI, Security, Compliance, Rust and Qodana cancel superseded runs through a `concurrency` group, except on `main`, where each commit's result is a record the release process reads back.
**Web deployment is not a GitHub workflow.** Cloudflare Workers Builds builds and deploys the Worker and `dist/` on every push to `main` (preview versions for other branches). The old `deploy-web.yml` (GitHub Pages) is gone; `pages-migration.yml` only serves the moving notice, which hands visitors the data their browser saved on the old address as a `_format: 2` backup file. See [HOSTING.md](HOSTING.md).
diff --git a/docs/i18n/vi/DEVELOPMENT.md b/docs/i18n/vi/DEVELOPMENT.md
index ed87c97..4513f12 100644
--- a/docs/i18n/vi/DEVELOPMENT.md
+++ b/docs/i18n/vi/DEVELOPMENT.md
@@ -89,6 +89,7 @@ Dev server chỉ chạy riêng app: không có cổng Turnstile, không có anal
- Tiêu đề PR theo định dạng commit `type(scope): message`; CI có kiểm tra.
- Mỗi PR đều chạy job `check` (xem bên dưới), `dependency-review`, `workflow-lint`, `reuse` và `pr-title`; hai job Rust `lint-and-test` và `cargo-deny` chạy khi có thay đổi trong `src-tauri/`.
- Sau `check`, job `sonarcloud` gửi mã nguồn và báo cáo coverage lên [SonarCloud](https://sonarcloud.io/project/overview?id=poli0981_youtube-generator) (cấu hình trong `sonar-project.properties`) và fail khi quality gate fail: code mới phải đạt hạng A, mọi security hotspot đã được review, trùng lặp tối đa 3 % và coverage tối thiểu 80 %. PR từ fork và từ Dependabot bỏ qua job này — chúng không có `SONAR_TOKEN` — còn `main` được phân tích sau mỗi lần merge.
+- Workflow `Qodana` chạy JetBrains [Qodana](https://www.jetbrains.com/qodana/) trên mọi PR và mọi lần push vào `main`: Qodana for JS cho cả repo (`qodana.yaml`) và Qodana for Rust cho `src-tauri/` (`src-tauri/qodana.yaml`). Cả hai fail khi có bất kỳ lỗi nào. Giống SonarCloud, PR từ fork và từ Dependabot bỏ qua phân tích vì không có token Qodana. Đây không phải check bắt buộc.
Quy định đầy đủ: [CONTRIBUTING.md](../../../CONTRIBUTING.md).
diff --git a/qodana.yaml b/qodana.yaml
new file mode 100644
index 0000000..b60114e
--- /dev/null
+++ b/qodana.yaml
@@ -0,0 +1,24 @@
+# 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
diff --git a/src-tauri/qodana.yaml b/src-tauri/qodana.yaml
new file mode 100644
index 0000000..a4ac833
--- /dev/null
+++ b/src-tauri/qodana.yaml
@@ -0,0 +1,25 @@
+# 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