aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-16 17:09:55 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-16 17:09:55 +0200
commitfc0f0f9f15574b4f80bda8249c0763d5865cb8b2 (patch)
tree433f1185697aef430fb5795d886985662b872c40
parent6ee90b34c87354baf8e03d5469a92cf5dd17a82b (diff)
downloadmarkdown-rs-fc0f0f9f15574b4f80bda8249c0763d5865cb8b2.tar.gz
markdown-rs-fc0f0f9f15574b4f80bda8249c0763d5865cb8b2.tar.bz2
markdown-rs-fc0f0f9f15574b4f80bda8249c0763d5865cb8b2.zip
Add cargo clippy rules
-rw-r--r--.github/workflows/main.yml2
-rw-r--r--readme.md3
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: