Add lint to schema
Metadata
Current evaluation
Lint support was added to snapcraft.yaml schemas, fixing editor errors and missing autocomplete via merged PR #5730 (commit 7cfb25977).
Resolution: closed resolved
Reason: PR #5730 was merged as commit 7cfb25977 and added inheritance-based validation and schema generation, resolving the missing lint schema support. The maintainer comment explicitly identifies #5730 as the fix.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### What needs to get done
Add `lint:` section and subsections to the schema for a `snapcraft.yaml` file.
### Why it needs to get done
Editors, such as Visual Studio Code, show an error message and don't auto-complete the `lint` section.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Lint support was added to snapcraft.yaml schemas, fixing editor errors and missing autocomplete via merged PR #5730 (commit 7cfb25977). | |
| stealth/space-bunny-alpha | — | closed resolved | Added lint support to snapcraft.yaml schemas, resolving editor errors and missing autocomplete; fixed in merged PR #5730 (commit 7cfb25977). | |
| qwen/qwen3.6-35b-a3b | — | — | The lint schema section for snapcraft.yaml was implemented to fix editor autocomplete errors. The enhancement was resolved and closed after the fix was merged in pull request 5730. | |
| qwen/qwen3.6-35b-a3b | — | — | Added the lint section to the snapcraft.yaml schema to fix editor autocomplete errors. The enhancement was resolved and merged via pull request #5730. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Added the lint section to the snapcraft.yaml schema for editor validation and auto-completion. Resolved and merged via pull request #5730. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/snapcraft#5730
(confidence 100%)
Merged PR that added the schema and validation support requested by the issue.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1397 style(ci): fix actionlint findings in schema and snap workflows | rockcraft | merged | Fixed actionlint findings in schema.yaml and snap.yaml workflows via merged PR #1397 by removing a dangling cache-suffix, quoting variables, and replacing echo|sed with bash parameter expansion. | |
| #1815062 Export the schema to json to allow for easier IDE linting | snapcraft (launchpad) | closed | Exported the Snapcraft schema as JSON for IDE and jsonschema linting via canonical/snapcraft#2448, merged in commit 2a2f798d0. | |
| #419 Properly validate the schema | snapcraft | merged | Merged PR #419 in commit 116352b7d, refactoring schema validation to remove duplicated logic from snapcraft.yaml and fixing autopackage tests. | |
| #2446 Update schema/snapcraft.yaml | snapcraft | closed | PR #2446 edited schema/snapcraft.yaml to aid yaml-to-json converters but was closed unmerged in favour of #2448, which replaced the YAML schema with snapcraft.json (commit 2a2f798d0). |