diff --git a/crates/rome_diagnostics/src/diagnostic.rs b/crates/rome_diagnostics/src/diagnostic.rs index 1bd13850eb7..708e91c773b 100644 --- a/crates/rome_diagnostics/src/diagnostic.rs +++ b/crates/rome_diagnostics/src/diagnostic.rs @@ -137,7 +137,7 @@ pub(super) enum DiagnosticTag { } bitflags! { - #[derive(Debug, Copy, Clone)] + #[derive(Default, Debug, Copy, Clone, Eq, PartialEq)] pub struct DiagnosticTags: u8 { /// This diagnostic has a fix suggestion. const FIXABLE = 1 << DiagnosticTag::Fixable as u8; diff --git a/justfile b/justfile index eb0e6554ec1..cf4c106445f 100644 --- a/justfile +++ b/justfile @@ -4,6 +4,7 @@ _default: alias f := format alias t := test alias r := ready +alias l := lint # Installs the tools needed to develop with Rome @@ -89,6 +90,10 @@ test-lintrule name: cargo test -p rome_js_analyze -- {{snakecase(name)}} cargo test -p rome_json_analyze -- {{snakecase(name)}} +# Alias for `cargo lint`, it runs clippy on the whole codebase +lint: + cargo lint + # When you finished coding, run this command to run the same commands in the CI. ready: git diff --exit-code --quiet