Skip to content

Commit

Permalink
sqf: invalid comparisons (#801)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson authored Oct 18, 2024
1 parent 69bf2cc commit c4d4960
Show file tree
Hide file tree
Showing 5 changed files with 490 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/sqf/src/analyze/lints/s18_in_vehicle_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl LintRunner<SqfLintData> for Runner {
return Vec::new();
};

vec![Arc::new(Code18InVehicleCheck::new(
vec![Arc::new(CodeS18InVehicleCheck::new(
target.full_span(),
processed,
config.severity(),
Expand Down Expand Up @@ -104,15 +104,15 @@ fn is_in_vehicle_check(lhs: &Expression, rhs: &Expression) -> Option<String> {
}

#[allow(clippy::module_name_repetitions)]
pub struct Code18InVehicleCheck {
pub struct CodeS18InVehicleCheck {
span: Range<usize>,
severity: Severity,
diagnostic: Option<Diagnostic>,
ident: String,
negated: bool,
}

impl Code for Code18InVehicleCheck {
impl Code for CodeS18InVehicleCheck {
fn ident(&self) -> &'static str {
"L-S18"
}
Expand Down Expand Up @@ -148,7 +148,7 @@ impl Code for Code18InVehicleCheck {
}
}

impl Code18InVehicleCheck {
impl CodeS18InVehicleCheck {
#[must_use]
pub fn new(span: Range<usize>, processed: &Processed, severity: Severity, var: String, negated: bool) -> Self {
Self {
Expand Down
Loading

0 comments on commit c4d4960

Please sign in to comment.