Skip to content

Commit

Permalink
chore: use clippy instead of cargo-lints, add more lints
Browse files Browse the repository at this point in the history
  • Loading branch information
open-schnick committed Sep 18, 2023
1 parent d5619de commit 9f0075b
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 39 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ jobs:
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Install cargo-lints
run: cargo install cargo-lints
- name: Linting
run: cargo lints clippy
run: cargo clippy

deny:
name: Checks
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ homepage = "https://github.com/open-schnick/DatadogFormattingLayer"
repository = "https://github.com/open-schnick/DatadogFormattingLayer"
license = "Apache-2.0"
keywords = ["tracing", "tracing-subscriber", "layer", "datadog"]
categories = ["development-tools::debugging"]
version = "1.1.0"
edition = "2021"

Expand Down
31 changes: 0 additions & 31 deletions lints.toml

This file was deleted.

36 changes: 31 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,37 @@
//! {"timestamp":"2023-06-21T10:36:50.363384118+00:00","level":"INFO","message":"Bla fasel user=Jack ola=salve value=Fasel hello=world","target":"otel","dd.trace_id":0,"dd.span_id":10201226522570980512}
//! ```
#![deny(rust_2018_idioms)]
#![deny(clippy::correctness)]
#![deny(clippy::perf)]
#![deny(clippy::all)]
#![deny(clippy::pedantic)]
#![deny(
rust_2018_idioms,
unused_must_use,
clippy::nursery,
clippy::pedantic,
clippy::perf,
clippy::cargo,
clippy::correctness,
clippy::dbg_macro,
clippy::else_if_without_else,
clippy::empty_drop,
clippy::empty_structs_with_brackets,
clippy::expect_used,
clippy::if_then_some_else_none,
clippy::indexing_slicing,
clippy::integer_division,
clippy::multiple_inherent_impl,
clippy::panic,
clippy::print_stderr,
clippy::print_stdout,
clippy::same_name_method,
clippy::string_to_string,
clippy::todo,
clippy::try_err,
clippy::unimplemented,
clippy::unnecessary_self_imports,
clippy::unreachable,
clippy::unwrap_used,
clippy::wildcard_enum_match_arm,
missing_docs
)]
#![allow(clippy::module_name_repetitions)]

mod datadog_ids;
Expand Down

0 comments on commit 9f0075b

Please sign in to comment.