Skip to content

starlite-project/star-lints

Repository files navigation

Template Dylint library

Dylint is a tool for running Rust lints from dynamic libraries. This repository is a "blank slate" Dylint library.

After forking this repository, run the following command, where NEW_LINT_NAME is your new lint's name:

./start_new_lint.sh NEW_LINT_NAME

Alternatively, you can try the experimental start_from_clippy_lint.sh script described below.

Experimental

Choose a Clippy lint and run the following two commands:

./start_from_clippy_lint.sh CLIPPY_LINT_NAME NEW_LINT_NAME
cargo build

If the first command fails: sorry. Perhaps try another Clippy lint.

If the first command succeeds, but the second fails: you are probably halfway to having a functional Dylint library.

If both commands succeed: hooray! You might then try the following:

DYLINT_LIBRARY_PATH=$PWD/target/debug cargo dylint NEW_LINT_NAME -- --manifest-path=PATH_TO_OTHER_PACKAGES_MANIFEST

About

Lints for the starlite-project crates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors