From b3bb7e66a0030e542f7edd9e9eb4ab809dc6b390 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Mon, 21 Oct 2024 23:53:59 -0500 Subject: [PATCH] update lints --- libs/sqf/src/analyze/lints/s12_invalid_args.rs | 4 ++-- libs/sqf/src/analyze/lints/s13_undefined.rs | 4 ++-- libs/sqf/src/analyze/lints/s14_unused.rs | 4 ++-- libs/sqf/src/analyze/lints/s15_shadowed.rs | 4 ++-- libs/sqf/src/analyze/lints/s16_not_private.rs | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libs/sqf/src/analyze/lints/s12_invalid_args.rs b/libs/sqf/src/analyze/lints/s12_invalid_args.rs index a535a18a..af7dbb8d 100644 --- a/libs/sqf/src/analyze/lints/s12_invalid_args.rs +++ b/libs/sqf/src/analyze/lints/s12_invalid_args.rs @@ -9,7 +9,7 @@ use hemtt_workspace::{ }; use std::{ops::Range, sync::Arc}; -crate::lint!(LintS12InvalidArgs); +crate::analyze::lint!(LintS12InvalidArgs); impl Lint for LintS12InvalidArgs { fn ident(&self) -> &str { @@ -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 } } diff --git a/libs/sqf/src/analyze/lints/s13_undefined.rs b/libs/sqf/src/analyze/lints/s13_undefined.rs index 6afc46eb..65799803 100644 --- a/libs/sqf/src/analyze/lints/s13_undefined.rs +++ b/libs/sqf/src/analyze/lints/s13_undefined.rs @@ -9,7 +9,7 @@ use hemtt_workspace::{ }; use std::{ops::Range, sync::Arc}; -crate::lint!(LintS13Undefined); +crate::analyze::lint!(LintS13Undefined); impl Lint for LintS13Undefined { fn ident(&self) -> &str { @@ -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 } } diff --git a/libs/sqf/src/analyze/lints/s14_unused.rs b/libs/sqf/src/analyze/lints/s14_unused.rs index a35e3ae7..852f83e1 100644 --- a/libs/sqf/src/analyze/lints/s14_unused.rs +++ b/libs/sqf/src/analyze/lints/s14_unused.rs @@ -12,7 +12,7 @@ use hemtt_workspace::{ }; use std::{ops::Range, sync::Arc}; -crate::lint!(LintS14Unused); +crate::analyze::lint!(LintS14Unused); impl Lint for LintS14Unused { fn ident(&self) -> &str { @@ -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 } } diff --git a/libs/sqf/src/analyze/lints/s15_shadowed.rs b/libs/sqf/src/analyze/lints/s15_shadowed.rs index 38264954..9f46615e 100644 --- a/libs/sqf/src/analyze/lints/s15_shadowed.rs +++ b/libs/sqf/src/analyze/lints/s15_shadowed.rs @@ -9,7 +9,7 @@ use hemtt_workspace::{ }; use std::{ops::Range, sync::Arc}; -crate::lint!(LintS15Shadowed); +crate::analyze::lint!(LintS15Shadowed); impl Lint for LintS15Shadowed { fn ident(&self) -> &str { @@ -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 } } diff --git a/libs/sqf/src/analyze/lints/s16_not_private.rs b/libs/sqf/src/analyze/lints/s16_not_private.rs index a938b28f..fe305e9e 100644 --- a/libs/sqf/src/analyze/lints/s16_not_private.rs +++ b/libs/sqf/src/analyze/lints/s16_not_private.rs @@ -9,7 +9,7 @@ use hemtt_workspace::{ }; use std::{ops::Range, sync::Arc}; -crate::lint!(LintS16NotPrivate); +crate::analyze::lint!(LintS16NotPrivate); impl Lint for LintS16NotPrivate { fn ident(&self) -> &str { @@ -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 } }