From 37ed3951e4ea1984d0fdc97fb34699897394fb43 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 29 Sep 2022 12:08:57 +0200 Subject: Add inline clippy config --- .github/workflows/main.yml | 3 +-- readme.md | 3 +-- 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 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; -- cgit