Skip to content

Commit

Permalink
nexlint: introduce project linting
Browse files Browse the repository at this point in the history
This introduces custom project linting using the nexlint linting
framework. As a start this patch enables the following lints via `cargo
xlint`:

* detection of duplicate versions of direct dependencies
* detection of irrelevant build dependencies
* checking of license headers on various file types
* ensuring the root Cargo.toml file is canonical
  • Loading branch information
bmwill committed May 2, 2022
1 parent 58d7900 commit 30f7c0e
Show file tree
Hide file tree
Showing 16 changed files with 371 additions and 168 deletions.
1 change: 1 addition & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ xclippy = [
"-Wclippy::all",
"-Wclippy::disallowed_methods",
]
xlint = "run --package x --bin x -- lint"
3 changes: 3 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ jobs:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths
- run: scripts/license_check.sh
- run: cargo xlint

test:
needs: diff
Expand Down
Loading

0 comments on commit 30f7c0e

Please sign in to comment.