Skip to content

Bug 2053531 - Add nimbus-fml lint - #7563

Merged
freshstrangemusic merged 3 commits into
mainfrom
Bug2053531
Sep 18, 2026
Merged

freshstrangemusic merged 3 commits into
mainfrom
Bug2053531

Conversation

@travis79

Copy link
Copy Markdown
Member

Adds a lint command covering feature metadata, descriptions, naming and feature design, and a no-lint field to silence lints per feature or per file. validate no longer reports feature metadata warnings; that's the lint command's job now.

Pull Request checklist

  • Breaking changes: This PR follows our breaking change policy
    • This PR follows the breaking change policy:
      • This PR has no breaking API changes, or
      • There are corresponding PRs for our consumer applications that resolve the breaking changes and have been approved
  • Quality: This PR builds and tests run cleanly
    • Note:
      • For changes that need extra cross-platform testing, consider adding [ci full] to the PR title.
      • If this pull request includes a breaking change, consider cutting a new release after merging.
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry in CHANGELOG.md or an explanation of why it does not need one
    • Any breaking changes to Swift or Kotlin binding APIs are noted explicitly
  • Dependencies: This PR follows our dependency management guidelines
    • Any new dependencies are accompanied by a summary of the due diligence applied in selecting them.

Comment thread components/support/nimbus-fml/src/lints/mod.rs Outdated

@freshstrangemusic freshstrangemusic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with charlie about using a trait for lints and then we can have a Vec<Box<&dyn Linter>> or smth and call the lints from each member.

Comment thread components/support/nimbus-fml/src/command_line/workflows.rs Outdated
Comment thread components/support/nimbus-fml/src/command_line/workflows.rs Outdated
Comment thread components/support/nimbus-fml/src/lints/mod.rs Outdated
Comment thread CHANGELOG.md Outdated
Adds a lint command covering feature metadata, descriptions, naming and
feature design, and a `no-lint` field to silence lints per feature or per
file. `validate` no longer reports feature metadata warnings; that's the
lint command's job now.
The per-module check calls in `lint_module` were a list a new module of
lints could be left out of. `define_categories!` now declares each category
with the linter that owns it, so registration is a compile error instead of
a silent no-op.

Also from review: `subject` -> `group` in `output_findings`, reworded the
invalid manifest error, s/when/if in a doc comment, changelog under `Nimbus`.
Dedupes `is_boolean` and the lint name width, drops the `no_lint` alias, and
trims comments that restated the code. Adds coverage for object fields, enum
variants, the summary counts, `--list`, an invalid manifest, and that every
lint is tripped by a fixture.
@freshstrangemusic
freshstrangemusic added this pull request to the merge queue Sep 18, 2026
Merged via the queue into main with commit 1555096 Sep 18, 2026
14 checks passed
@freshstrangemusic
freshstrangemusic deleted the Bug2053531 branch September 18, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants