Example Dylint libraries
Each subdirectory besides src
contains an example Dylint library.
The current examples are:
allow_clippy
: A tongue-in-cheek example of a Dylint libraryclippy
: All of the Clippy lints as a Dylint libraryenv_literal
: A lint to check for environment variables referred to with string literalspath_separator_in_string_literal
: A lint to check for path separators in string literalsquestion_mark_in_expression
: A lint to check for the?
operator in expressions
Notes
- Each example is in its own workspace so that it can have its own
rust-toolchain
. - Each example is configured to use the installed copy of
dylint-link
. To use the copy within this repository, change the example's.cargo/config.toml
file as follows:[] = "../../target/debug/dylint-link"