Added a linter to verify that the metadata is ok (CRAFT-322).
Metadata
Current evaluation
Merged PR #449 (commit ccc10f3e), adding a linter to validate charm metadata; packing-time enforcement was intentionally deferred.
Resolution: closed resolved
Reason: PR #449 was approved and merged as commit ccc10f3e, adding the requested metadata linter. Enforcement during packing was explicitly left for follow-up work.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Note that linters are still NOT enforced when packing (will do that in the next branch when I add the --force option to pack anyway).
Also note that this PR depends on the "analint 06" one.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #449 (commit ccc10f3e), adding a linter to validate charm metadata; packing-time enforcement was intentionally deferred. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged Charmcraft PR #449, adding metadata validation through a linter. Packing-time enforcement was deferred. Merge commit: ccc10f3e. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged after approval, adding a linter to verify metadata. The change depends on a separate analint PR and introduces validation checks, though enforcement during packing is deferred to a future release. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a metadata validation linter. The change depends on a separate PR and defers enforcement during packing. The implementation was later incorporated into a broader effort tracked in issue #27. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/charmcraft#27
(confidence 95%)
A maintainer noted that the metadata-linter work partially addressed item #27.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #492 Add linter to verify that the charm's metadata is v2 | charmcraft | closed | Closed as obsolete because Charmcraft now generates charm metadata automatically, making the proposed v2 metadata linter unnecessary. | |
| #607 Add linter to check charm's categories | charmcraft | closed | Category validation was abandoned after metadata tags and categories were deprecated; Charmcraft would not inspect Juju YAML without official schemas. |