aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-09-29 12:08:57 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-09-29 12:08:57 +0200
commit37ed3951e4ea1984d0fdc97fb34699897394fb43 (patch)
tree526af9d7ec60c2981d016ec62fc5ad275d0abf95
parent8c9071c950ed7750ab263921171287c52396378a (diff)
downloadmarkdown-rs-37ed3951e4ea1984d0fdc97fb34699897394fb43.tar.gz
markdown-rs-37ed3951e4ea1984d0fdc97fb34699897394fb43.tar.bz2
markdown-rs-37ed3951e4ea1984d0fdc97fb34699897394fb43.zip
Add inline clippy config
-rw-r--r--.github/workflows/main.yml3
-rw-r--r--readme.md3
-rw-r--r--src/lib.rs3
3 files changed, 5 insertions, 4 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 9d45ca4..a9bc7e3 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -11,8 +11,7 @@ jobs:
with:
toolchain: stable
components: rustfmt, clippy
- - run: cargo clippy --examples --tests --benches -- -D clippy::pedantic -A clippy::doc_link_with_quotes -A clippy::too_many_lines
- - run: cargo fmt --all -- --check
+ - run: cargo fmt --check && cargo clippy --examples --tests --benches
- run: cargo test
# - run: cargo install cargo-tarpaulin && cargo tarpaulin --out Xml
# - uses: codecov/codecov-action@v1
diff --git a/readme.md b/readme.md
index 24f2f02..91b7985 100644
--- a/readme.md
+++ b/readme.md
@@ -363,8 +363,7 @@ The following scripts are useful when working on this project:
```
- lint:
```sh
- cargo fmt --check &&\
- cargo clippy --examples --tests --benches -- -D clippy::pedantic -A clippy::doc_link_with_quotes -A clippy::too_many_lines
+ cargo fmt --check && cargo clippy --examples --tests --benches
```
- test:
```sh
diff --git a/src/lib.rs b/src/lib.rs
index e552327..f423b68 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -12,6 +12,9 @@
//! * [`micromark_to_mdast`][]
//! — like `micromark_with_options` but compiles to a syntax tree
#![no_std]
+#![deny(clippy::pedantic)]
+#![allow(clippy::doc_link_with_quotes)]
+#![allow(clippy::too_many_lines)]
extern crate alloc;