-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1878680
commit 8161ba6
Showing
12 changed files
with
31 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 5 additions & 2 deletions
7
.../tests/lints/s12_invalid_args/stdout.ansi → ...shots/lints__simple_s12_invalid_args.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
--- | ||
source: libs/sqf/tests/lints.rs | ||
expression: "lint(stringify! (s12_invalid_args), false)" | ||
--- | ||
[0m[1m[38;5;14mhelp[L-S12][0m[1m: Invalid Args - [B:setFuel][0m | ||
[0m[36m┌─[0m source.sqf:3:18 | ||
[0m[36m┌─[0m s12_invalid_args.sqf:3:18 | ||
[0m[36m│[0m | ||
[0m[36m3[0m [0m[36m│[0m (vehicle player) [0m[36msetFuel[0m true; // bad args: takes number 0-1 | ||
[0m[36m│[0m [0m[36m^^^^^^^[0m | ||
|
7 changes: 5 additions & 2 deletions
7
...sqf/tests/lints/s13_undefined/stdout.ansi → ...napshots/lints__simple_s13_undefined.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
--- | ||
source: libs/sqf/tests/lints.rs | ||
expression: "lint(stringify! (s13_undefined), false)" | ||
--- | ||
[0m[1m[38;5;14mhelp[L-S13][0m[1m: Undefined Var - _neverDefined[0m | ||
[0m[36m┌─[0m source.sqf:1:17 | ||
[0m[36m┌─[0m s13_undefined.sqf:1:17 | ||
[0m[36m│[0m | ||
[0m[36m1[0m [0m[36m│[0m x = {systemChat [0m[36m_neverDefined[0m;}; | ||
[0m[36m│[0m [0m[36m^^^^^^^^^^^^^[0m | ||
[0m[36m│[0m | ||
[0m[36m=[0m [36mnote[0m: From Orphan Code - may not be a problem | ||
|
7 changes: 5 additions & 2 deletions
7
libs/sqf/tests/lints/s14_unused/stdout.ansi → ...s/snapshots/lints__simple_s14_unused.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
--- | ||
source: libs/sqf/tests/lints.rs | ||
expression: "lint(stringify! (s14_unused), false)" | ||
--- | ||
[0m[1m[38;5;14mhelp[L-S14][0m[1m: Unused Var - _z[0m | ||
[0m[36m┌─[0m source.sqf:1:1 | ||
[0m[36m┌─[0m s14_unused.sqf:1:1 | ||
[0m[36m│[0m | ||
[0m[36m1[0m [0m[36m│[0m [0m[36mprivate _z = 5[0m; // and never used | ||
[0m[36m│[0m [0m[36m^^^^^^^^^^^^^^[0m | ||
|
7 changes: 5 additions & 2 deletions
7
.../sqf/tests/lints/s15_shadowed/stdout.ansi → ...snapshots/lints__simple_s15_shadowed.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
--- | ||
source: libs/sqf/tests/lints.rs | ||
expression: "lint(stringify! (s15_shadowed), false)" | ||
--- | ||
[0m[1m[38;5;14mhelp[L-S15][0m[1m: Shadowed Var - _z[0m | ||
[0m[36m┌─[0m source.sqf:2:1 | ||
[0m[36m┌─[0m s15_shadowed.sqf:2:1 | ||
[0m[36m│[0m | ||
[0m[36m2[0m [0m[36m│[0m [0m[36mprivate _z = 5[0m; | ||
[0m[36m│[0m [0m[36m^^^^^^^^^^^^^^[0m | ||
|
7 changes: 5 additions & 2 deletions
7
...f/tests/lints/s16_not_private/stdout.ansi → ...pshots/lints__simple_s16_not_private.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
--- | ||
source: libs/sqf/tests/lints.rs | ||
expression: "lint(stringify! (s16_not_private), false)" | ||
--- | ||
[0m[1m[38;5;14mhelp[L-S16][0m[1m: Not Private - _z[0m | ||
[0m[36m┌─[0m source.sqf:1:1 | ||
[0m[36m┌─[0m s16_not_private.sqf:1:1 | ||
[0m[36m│[0m | ||
[0m[36m1[0m [0m[36m│[0m [0m[36m_z = 6[0m; | ||
[0m[36m│[0m [0m[36m^^^^^^[0m | ||
|