diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-09-29 12:08:57 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-09-29 12:08:57 +0200 |
commit | 37ed3951e4ea1984d0fdc97fb34699897394fb43 (patch) | |
tree | 526af9d7ec60c2981d016ec62fc5ad275d0abf95 | |
parent | 8c9071c950ed7750ab263921171287c52396378a (diff) | |
download | markdown-rs-37ed3951e4ea1984d0fdc97fb34699897394fb43.tar.gz markdown-rs-37ed3951e4ea1984d0fdc97fb34699897394fb43.tar.bz2 markdown-rs-37ed3951e4ea1984d0fdc97fb34699897394fb43.zip |
Add inline clippy config
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/main.yml | 3 | ||||
-rw-r--r-- | readme.md | 3 | ||||
-rw-r--r-- | src/lib.rs | 3 |
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 @@ -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 @@ -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; |