Skip to content

Commit

Permalink
make label_message lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Dec 18, 2024
1 parent ccbad06 commit cca5851
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions libs/sqf/src/analyze/lints/s19_extra_not.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ use crate::{analyze::SqfLintData, Expression, UnaryCommand};
crate::analyze::lint!(LintS19ExtraNot);

impl Lint<SqfLintData> for LintS19ExtraNot {
fn ident(&self) -> &str {
fn ident(&self) -> &'static str {
"extra_not"
}

fn sort(&self) -> u32 {
190
}

fn description(&self) -> &str {
fn description(&self) -> &'static str {
"Checks for extra not before a comparison"
}

fn documentation(&self) -> &str {
fn documentation(&self) -> &'static str {
r"### Example
**Incorrect**
Expand Down Expand Up @@ -109,9 +109,9 @@ impl Code for Code19ExtraNot {
fn message(&self) -> String {
"Unneeded Not".to_string()
}
// fn label_message(&self) -> String {
// "".to_string()
// }
fn label_message(&self) -> String {
"unneeded not".to_string()
}
fn diagnostic(&self) -> Option<Diagnostic> {
self.diagnostic.clone()
}
Expand Down
2 changes: 1 addition & 1 deletion libs/sqf/tests/snapshots/lints__simple_s19_extra_not.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ expression: lint(stringify! (s19_extra_not))
┌─ s19_extra_not.sqf:1:1
│
1 │ ! (5 isEqualTo 6)
[0m[36m│[0m [0m[36m^[0m [0m[36mUnneeded Not[0m
[0m[36m│[0m [0m[36m^[0m [0m[36munneeded not[0m

0 comments on commit cca5851

Please sign in to comment.