dylint
dylint copied to clipboard
Run Rust lints from dynamic libraries
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action
`commented_code` should not flag single identifiers. This PR is just a placeholder until I produce a fix.
Make this optional: ``` $ cargo dylint upgrade --help Upgrade the library package at to the latest version of `clippy_utils` Usage: cargo-dylint dylint upgrade [OPTIONS] ^^^^^^ ``` Default to the...
`wrong_serialize_struct_arg` is here: https://github.com/trailofbits/dylint/tree/master/examples/general/wrong_serialize_struct_arg Additional methods it might handle are the following: - [ ] [serialize_struct_variant](https://docs.rs/serde/latest/serde/trait.Serializer.html#tymethod.serialize_struct_variant) - [ ] [serialize_tuple](https://docs.rs/serde/latest/serde/trait.Serializer.html#tymethod.serialize_tuple) - [ ] [serialize_tuple_struct](https://docs.rs/serde/latest/serde/trait.Serializer.html#tymethod.serialize_tuple_struct) - [ ] [serialize_tuple_variant](https://docs.rs/serde/latest/serde/trait.Serializer.html#tymethod.serialize_tuple_variant) The ones...
This is a [95% solution](https://github.com/trailofbits/dylint/issues/654#issuecomment-1849753754) to #654. The 100% solution would be a custom lint.
Do more with Rust tests and less with Yaml/Bash. The point is to make more tests [runnable via `cargo test`](https://www.reddit.com/r/rust/comments/prhz1u/comment/hdkbpjl/) (not to use Rust for Rust's sake). - [x] [Prettier](https://github.com/trailofbits/dylint/blob/178b740594bc97968adf68f0d8a139c46f807455/.github/workflows/ci.yml#L37)...
Something like: ```toml [derive_opportunity] ignore = ["clap_derive::ValueEnum", "strum_macros::Display"] ```
To refer to the manifest [`lints` section](https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-lints-section) instead of the command line: https://github.com/trailofbits/dylint/blob/1ec06fc6e7562da081c5fb25caa34c07b747e12d/examples/general/crate_wide_allow/README.md?plain=1#L17
On the commit just prior to this one https://github.com/trailofbits/cargo-unmaintained/commit/20292f88e6958aedbcf3cc20adff088418fb5b68, `suboptimal_pattern` produces a bad suggestion. I haven't figured out why.