Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add rust_lint_group and cargo_lints rule to define lint groups #2993

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Commits on Nov 9, 2024

  1. start, add new rust_lint_group rule

    * allows defining rustc, rustc check-cfg, clippy, and rustdoc lints
    * add a 'lints' attribute to the common rust attributes
    * rust_doc and rust_clippy rules use the lints from the crate they target
    ParkMyCar committed Nov 9, 2024
    Configuration menu
    Copy the full SHA
    ba085d7 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2024

  1. add cargo_lints rule which can read lints from Cargo.toml

    * adds a new Rust binary cargo_toml_info which can parse a Cargo.toml and inherit from the workspace
    * adds a new cargo_lints rule which invokes the cargo_toml_info binary to get lints
    * update the LintsInfo provider to include CLI args via files
    ParkMyCar committed Nov 10, 2024
    Configuration menu
    Copy the full SHA
    b2387d2 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2024

  1. responding to GitHub feedback

    * rename fields on the LintsInfo provider
    * rename some methods
    * add comments linking to cargo_toml issues
    * move the cargo_toml_info binary into private
    ParkMyCar committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    1a1703b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dc2b46a View commit details
    Browse the repository at this point in the history