Skip to content

Commit

Permalink
Remove clippy pedantic and nursery lints by default
Browse files Browse the repository at this point in the history
Mention how to run them in CONTRIBUTING
  • Loading branch information
willbush committed Nov 8, 2024
1 parent 7f07169 commit 44e6dc0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
11 changes: 9 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,18 @@ The most important tools and commands in this environment are:
```bash
cargo test
```
- Linting and formatting:
- Formatting:
```bash
cargo clippy --all-targets
treefmt
```
- Linting:
```bash
cargo clippy --all-targets
```
Or optionally:
```bash
cargo clippy --all-targets -- -W clippy::nursery -W clippy::pedantic
```
- Running the [main CI checks](./.github/workflows/main.yml) locally:
```bash
nix-build -A ci
Expand Down
5 changes: 0 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
#![warn(clippy::pedantic, clippy::nursery)]
// too many false-positives. discussion:
// https://github.com/NixOS/nixpkgs-vet/pull/124#pullrequestreview-2405109643
#![allow(clippy::module_name_repetitions)]

mod eval;
mod location;
mod nix_file;
Expand Down

0 comments on commit 44e6dc0

Please sign in to comment.