Skip to content

Commit 7243722

Browse files
committed
upgrade to warning
1 parent a03cfa2 commit 7243722

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libs/sqf/src/analyze/lints/s30_configof.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The `configOf` command is specifically designed to retrieve configuration data f
4242
}
4343

4444
fn default_config(&self) -> LintConfig {
45-
LintConfig::help()
45+
LintConfig::warning()
4646
}
4747

4848
fn runners(&self) -> Vec<Box<dyn AnyLintRunner<LintData>>> {

libs/sqf/tests/snapshots/lints__simple_s30_configof.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
source: libs/sqf/tests/lints.rs
33
expression: lint(stringify! (s30_configof)).0
44
---
5-
[0m[1m[38;5;14mhelp[L-S30][0m[1m: Use configOf instead of typeOf with configFile for variable `_vehicle`[0m
5+
[0m[1m[38;5;11mwarning[L-S30][0m[1m: Use configOf instead of typeOf with configFile for variable `_vehicle`[0m
66
┌─ s30_configof.sqf:1:25
77
│
8-
[0m[36m1[0m [0m[36m│[0m private _name = getText([0m[36mconfigFile >> "CfgVehicles" >> typeOf _vehicle[0m >> "displayName");
9-
[0m[36m│[0m [0m[36m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m
8+
[0m[36m1[0m [0m[36m│[0m private _name = getText([0m[33mconfigFile >> "CfgVehicles" >> typeOf _vehicle[0m >> "displayName");
9+
[0m[36m│[0m [0m[33m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m
1010
│
1111
= try: configOf _vehicle

0 commit comments

Comments
 (0)