Skip to content

Commit

Permalink
update lints
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Oct 22, 2024
1 parent 2009006 commit b3bb7e6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions libs/sqf/src/analyze/lints/s12_invalid_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use hemtt_workspace::{
};
use std::{ops::Range, sync::Arc};

crate::lint!(LintS12InvalidArgs);
crate::analyze::lint!(LintS12InvalidArgs);

impl Lint<SqfLintData> for LintS12InvalidArgs {
fn ident(&self) -> &str {
Expand Down Expand Up @@ -129,7 +129,7 @@ impl CodeS12InvalidArgs {
.generate_processed(processed)
}
fn generate_processed(mut self, processed: &Processed) -> Self {
self.diagnostic = Diagnostic::new_for_processed(&self, self.span.clone(), processed);
self.diagnostic = Diagnostic::from_code_processed(&self, self.span.clone(), processed);
self
}
}
4 changes: 2 additions & 2 deletions libs/sqf/src/analyze/lints/s13_undefined.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use hemtt_workspace::{
};
use std::{ops::Range, sync::Arc};

crate::lint!(LintS13Undefined);
crate::analyze::lint!(LintS13Undefined);

impl Lint<SqfLintData> for LintS13Undefined {
fn ident(&self) -> &str {
Expand Down Expand Up @@ -143,7 +143,7 @@ impl CodeS13Undefined {
.generate_processed(processed)
}
fn generate_processed(mut self, processed: &Processed) -> Self {
self.diagnostic = Diagnostic::new_for_processed(&self, self.span.clone(), processed);
self.diagnostic = Diagnostic::from_code_processed(&self, self.span.clone(), processed);
self
}
}
4 changes: 2 additions & 2 deletions libs/sqf/src/analyze/lints/s14_unused.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use hemtt_workspace::{
};
use std::{ops::Range, sync::Arc};

crate::lint!(LintS14Unused);
crate::analyze::lint!(LintS14Unused);

impl Lint<SqfLintData> for LintS14Unused {
fn ident(&self) -> &str {
Expand Down Expand Up @@ -149,7 +149,7 @@ impl CodeS14Unused {
.generate_processed(processed)
}
fn generate_processed(mut self, processed: &Processed) -> Self {
self.diagnostic = Diagnostic::new_for_processed(&self, self.span.clone(), processed);
self.diagnostic = Diagnostic::from_code_processed(&self, self.span.clone(), processed);
self
}
}
4 changes: 2 additions & 2 deletions libs/sqf/src/analyze/lints/s15_shadowed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use hemtt_workspace::{
};
use std::{ops::Range, sync::Arc};

crate::lint!(LintS15Shadowed);
crate::analyze::lint!(LintS15Shadowed);

impl Lint<SqfLintData> for LintS15Shadowed {
fn ident(&self) -> &str {
Expand Down Expand Up @@ -130,7 +130,7 @@ impl CodeS15Shadowed {
.generate_processed(processed)
}
fn generate_processed(mut self, processed: &Processed) -> Self {
self.diagnostic = Diagnostic::new_for_processed(&self, self.span.clone(), processed);
self.diagnostic = Diagnostic::from_code_processed(&self, self.span.clone(), processed);
self
}
}
4 changes: 2 additions & 2 deletions libs/sqf/src/analyze/lints/s16_not_private.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use hemtt_workspace::{
};
use std::{ops::Range, sync::Arc};

crate::lint!(LintS16NotPrivate);
crate::analyze::lint!(LintS16NotPrivate);

impl Lint<SqfLintData> for LintS16NotPrivate {
fn ident(&self) -> &str {
Expand Down Expand Up @@ -129,7 +129,7 @@ impl CodeS16NotPrivate {
.generate_processed(processed)
}
fn generate_processed(mut self, processed: &Processed) -> Self {
self.diagnostic = Diagnostic::new_for_processed(&self, self.span.clone(), processed);
self.diagnostic = Diagnostic::from_code_processed(&self, self.span.clone(), processed);
self
}
}

0 comments on commit b3bb7e6

Please sign in to comment.