From fc0f0f9f15574b4f80bda8249c0763d5865cb8b2 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 16 Aug 2022 17:09:55 +0200 Subject: Add cargo clippy rules --- .github/workflows/main.yml | 2 +- readme.md | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e400250..979962d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: with: toolchain: stable components: rustfmt, clippy - - run: cargo clippy -- -W clippy::pedantic -A clippy::doc_link_with_quotes + - run: cargo clippy -- -D clippy::pedantic -D clippy::cargo -A clippy::doc_link_with_quotes - run: cargo fmt --all -- --check - run: cargo test # - run: cargo install cargo-tarpaulin && cargo tarpaulin --out Xml diff --git a/readme.md b/readme.md index 24e6a72..caf447d 100644 --- a/readme.md +++ b/readme.md @@ -32,7 +32,6 @@ Crate docs are currently at and fix stuff I’m doing manually now - [ ] (5) Do some research on rust best practices for APIs, e.g., what to accept, how to integrate with streams or so? -- [ ] (1) Go through clippy rules, and such, to add strict code styles - [ ] (3) Write comparison to other parsers - [ ] (3) Add node/etc bindings? - [ ] (3) Bunch of docs @@ -90,7 +89,7 @@ cargo fmt --all Lint: ```sh -cargo fmt --all -- --check && cargo clippy -- -W clippy::pedantic -A clippy::doc_link_with_quotes +cargo fmt --all -- --check && cargo clippy -- -D clippy::pedantic -D clippy::cargo -A clippy::doc_link_with_quotes ``` Tests: -- cgit