Skip to content

Commit

Permalink
cleanup merge
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Dec 19, 2024
1 parent 5004b90 commit 894ac8a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
10 changes: 5 additions & 5 deletions libs/sqf/src/analyze/lints/s12_invalid_args.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{
analyze::{inspector::Issue, SqfLintData},
analyze::{inspector::Issue, LintData},
Statements,
};
use hemtt_common::config::LintConfig;
Expand All @@ -11,7 +11,7 @@ use std::{ops::Range, sync::Arc};

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

impl Lint<SqfLintData> for LintS12InvalidArgs {
impl Lint<LintData> for LintS12InvalidArgs {
fn ident(&self) -> &'static str {
"invalid_args"
}
Expand All @@ -36,21 +36,21 @@ Checks correct syntax usage."
fn default_config(&self) -> LintConfig {
LintConfig::help()
}
fn runners(&self) -> Vec<Box<dyn AnyLintRunner<SqfLintData>>> {
fn runners(&self) -> Vec<Box<dyn AnyLintRunner<LintData>>> {
vec![Box::new(Runner)]
}
}

pub struct Runner;
impl LintRunner<SqfLintData> for Runner {
impl LintRunner<LintData> for Runner {
type Target = Statements;
fn run(
&self,
_project: Option<&hemtt_common::config::ProjectConfig>,
config: &hemtt_common::config::LintConfig,
processed: Option<&hemtt_workspace::reporting::Processed>,
target: &Statements,
_data: &SqfLintData,
_data: &LintData,
) -> hemtt_workspace::reporting::Codes {
if target.issues().is_empty() {
return Vec::new();
Expand Down
10 changes: 5 additions & 5 deletions libs/sqf/src/analyze/lints/s13_undefined.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{
analyze::{inspector::Issue, SqfLintData},
analyze::{inspector::Issue, LintData},
Statements,
};
use hemtt_common::config::LintConfig;
Expand All @@ -11,7 +11,7 @@ use std::{ops::Range, sync::Arc};

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

impl Lint<SqfLintData> for LintS13Undefined {
impl Lint<LintData> for LintS13Undefined {
fn ident(&self) -> &'static str {
"undefined"
}
Expand All @@ -36,21 +36,21 @@ Checks correct syntax usage."
fn default_config(&self) -> LintConfig {
LintConfig::help()
}
fn runners(&self) -> Vec<Box<dyn AnyLintRunner<SqfLintData>>> {
fn runners(&self) -> Vec<Box<dyn AnyLintRunner<LintData>>> {
vec![Box::new(Runner)]
}
}

pub struct Runner;
impl LintRunner<SqfLintData> for Runner {
impl LintRunner<LintData> for Runner {
type Target = Statements;
fn run(
&self,
_project: Option<&hemtt_common::config::ProjectConfig>,
config: &hemtt_common::config::LintConfig,
processed: Option<&hemtt_workspace::reporting::Processed>,
target: &Statements,
_data: &SqfLintData,
_data: &LintData,
) -> hemtt_workspace::reporting::Codes {
if target.issues().is_empty() {
return Vec::new();
Expand Down
10 changes: 5 additions & 5 deletions libs/sqf/src/analyze/lints/s14_unused.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::{
analyze::{
inspector::{Issue, VarSource},
SqfLintData,
LintData,
},
Statements,
};
Expand All @@ -14,7 +14,7 @@ use std::{ops::Range, sync::Arc};

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

impl Lint<SqfLintData> for LintS14Unused {
impl Lint<LintData> for LintS14Unused {
fn ident(&self) -> &'static str {
"unused"
}
Expand All @@ -39,21 +39,21 @@ Checks for vars that are never used."
fn default_config(&self) -> LintConfig {
LintConfig::help().with_enabled(false)
}
fn runners(&self) -> Vec<Box<dyn AnyLintRunner<SqfLintData>>> {
fn runners(&self) -> Vec<Box<dyn AnyLintRunner<LintData>>> {
vec![Box::new(Runner)]
}
}

pub struct Runner;
impl LintRunner<SqfLintData> for Runner {
impl LintRunner<LintData> for Runner {
type Target = Statements;
fn run(
&self,
_project: Option<&hemtt_common::config::ProjectConfig>,
config: &hemtt_common::config::LintConfig,
processed: Option<&hemtt_workspace::reporting::Processed>,
target: &Statements,
_data: &SqfLintData,
_data: &LintData,
) -> hemtt_workspace::reporting::Codes {
if target.issues().is_empty() {
return Vec::new();
Expand Down
10 changes: 5 additions & 5 deletions libs/sqf/src/analyze/lints/s15_shadowed.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{
analyze::{inspector::Issue, SqfLintData},
analyze::{inspector::Issue, LintData},
Statements,
};
use hemtt_common::config::LintConfig;
Expand All @@ -11,7 +11,7 @@ use std::{ops::Range, sync::Arc};

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

impl Lint<SqfLintData> for LintS15Shadowed {
impl Lint<LintData> for LintS15Shadowed {
fn ident(&self) -> &'static str {
"shadowed"
}
Expand All @@ -37,21 +37,21 @@ Checks for variables being shadowed."
fn default_config(&self) -> LintConfig {
LintConfig::help().with_enabled(false)
}
fn runners(&self) -> Vec<Box<dyn AnyLintRunner<SqfLintData>>> {
fn runners(&self) -> Vec<Box<dyn AnyLintRunner<LintData>>> {
vec![Box::new(Runner)]
}
}

pub struct Runner;
impl LintRunner<SqfLintData> for Runner {
impl LintRunner<LintData> for Runner {
type Target = Statements;
fn run(
&self,
_project: Option<&hemtt_common::config::ProjectConfig>,
config: &hemtt_common::config::LintConfig,
processed: Option<&hemtt_workspace::reporting::Processed>,
target: &Statements,
_data: &SqfLintData,
_data: &LintData,
) -> hemtt_workspace::reporting::Codes {
if target.issues().is_empty() {
return Vec::new();
Expand Down
10 changes: 5 additions & 5 deletions libs/sqf/src/analyze/lints/s16_not_private.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{
analyze::{inspector::Issue, SqfLintData},
analyze::{inspector::Issue, LintData},
Statements,
};
use hemtt_common::config::LintConfig;
Expand All @@ -11,7 +11,7 @@ use std::{ops::Range, sync::Arc};

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

impl Lint<SqfLintData> for LintS16NotPrivate {
impl Lint<LintData> for LintS16NotPrivate {
fn ident(&self) -> &'static str {
"not_private"
}
Expand All @@ -36,21 +36,21 @@ Checks local variables that are not private."
fn default_config(&self) -> LintConfig {
LintConfig::help().with_enabled(false)
}
fn runners(&self) -> Vec<Box<dyn AnyLintRunner<SqfLintData>>> {
fn runners(&self) -> Vec<Box<dyn AnyLintRunner<LintData>>> {
vec![Box::new(Runner)]
}
}

pub struct Runner;
impl LintRunner<SqfLintData> for Runner {
impl LintRunner<LintData> for Runner {
type Target = Statements;
fn run(
&self,
_project: Option<&hemtt_common::config::ProjectConfig>,
config: &hemtt_common::config::LintConfig,
processed: Option<&hemtt_workspace::reporting::Processed>,
target: &Statements,
_data: &SqfLintData,
_data: &LintData,
) -> hemtt_workspace::reporting::Codes {
if target.issues().is_empty() {
return Vec::new();
Expand Down

0 comments on commit 894ac8a

Please sign in to comment.