What the first runs showed, and the changes:
- Python: SDKs.json was empty - native mode finds no interpreter by
itself, and without one every `dict[int, str]` and `X | None` was an
"invalid type hint" (11 of the 50 problems). The job now builds .venv
from the hashed requirements and passes QODANA_PYTHON_PATH.
- Rust: "Analysis scope: 0 packages" and a Critical "Cargo project
loading" sanity problem: the image has no C linker and none of
Tauri's libraries, and runs as the runner's user, who can neither
apt-get install nor write the image's CARGO_HOME. Now `-u root`,
CARGO_HOME in the cached Qodana cache dir, and a bootstrap that
installs the build packages.
- JS/TS: installing the Svelte plugin fails in native mode with every
released CLI up to 2026.2.3 ("qodana.build.date system property must
be set"; fixed upstream as QD-16701 on 2026-11-05, unreleased), so
this project runs in the Qodana image, on the node_modules and
generated files the job prepared.
One workflow (qodana.yml) with a job per project, as in
free-games-itchio-list: the token check covers all three, triggers skip
data and Markdown-only commits, no PR comment (annotations, Qodana
Cloud and the report artifact carry the results), --repository-root .
for the subdirectory projects, and each job keeps its own cache keys.
The qodana.yaml files use `exclude` and name their Qodana Cloud project.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
888 B
YAML
21 lines
888 B
YAML
# Qodana for Rust (Early Access): the Tauri 2 shell of the desktop and
|
|
# Android apps. Run by .github/workflows/qodana.yml (job `rust`), reported to
|
|
# https://qodana.cloud/projects/40daO.
|
|
version: "1.0"
|
|
linter: qodana-rust
|
|
profile:
|
|
name: qodana.recommended
|
|
# The linter evaluates build scripts and expands macros with `cargo check`,
|
|
# and its image has neither a C linker nor the libraries Tauri links against.
|
|
# 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 libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev libssl-dev libxdo-dev
|
|
exclude:
|
|
- name: All
|
|
paths:
|
|
# Cargo's build output, and the Android project `tauri android init`
|
|
# generates (Kotlin and Gradle, not Rust).
|
|
- target
|
|
- gen
|