-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle VAR syntax in variable usage rules (#1023)
- Loading branch information
Showing
16 changed files
with
118 additions
and
8 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
6 changes: 6 additions & 0 deletions
6
tests/atest/rules/misc/argument_overwritten_before_usage/expected_output_after_var.txt
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
test.robot:22:31:22:46 [W] 0921 Keyword argument '${overwritten1}' is overwritten before usage | ||
test.robot:22:50:22:65 [W] 0921 Keyword argument '${overwritten2}' is overwritten before usage | ||
test.robot:22:69:22:84 [W] 0921 Keyword argument '${overwritten3}' is overwritten before usage | ||
test.robot:39:20:39:28 [W] 0921 Keyword argument '${error}' is overwritten before usage | ||
test.robot:70:31:70:46 [W] 0921 Keyword argument '${overwritten1}' is overwritten before usage | ||
test.robot:70:50:70:65 [W] 0921 Keyword argument '${overwritten2}' is overwritten before usage |
File renamed without changes.
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
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
12 changes: 12 additions & 0 deletions
12
tests/atest/rules/misc/unused_variable/expected_output_after_var.txt
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
test.robot:14:5:14:11 [I] 0920 Variable '${var}' is assigned but not used | ||
test.robot:18:15:18:22 [I] 0920 Variable '${var2}' is assigned but not used | ||
test.robot:22:5:22:11 [I] 0920 Variable '${var}' is assigned but not used | ||
test.robot:30:5:30:14 [I] 0920 Variable '${assign}' is assigned but not used | ||
test.robot:41:12:41:18 [I] 0920 Variable '${var}' is assigned but not used | ||
test.robot:67:12:67:23 [I] 0920 Variable '${category}' is assigned but not used | ||
test.robot:115:5:115:11 [I] 0920 Variable '${var}' is assigned but not used | ||
test.robot:118:5:118:14 [I] 0920 Variable '${assign}' is assigned but not used | ||
test.robot:121:12:121:23 [I] 0920 Variable '${not_used}' is assigned but not used | ||
test.robot:122:12:122:30 [I] 0920 Variable '${not_used_global}' is assigned but not used | ||
test.robot:126:12:126:26 [I] 0920 Variable '${used_in_var}' is assigned but not used | ||
test.robot:129:12:129:23 [I] 0920 Variable '${variable}' is assigned but not used |
File renamed without changes.
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
6 changes: 6 additions & 0 deletions
6
tests/atest/rules/misc/variable_overwritten_before_usage/expected_output_after_var.txt
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
test.robot:7:5 [W] 0922 Local variable '${value}' is overwritten before usage | ||
test.robot:15:5 [W] 0922 Local variable '${val_ue}' is overwritten before usage | ||
test.robot:121:12 [W] 0922 Local variable '${variable}' is overwritten before usage | ||
test.robot:123:12 [W] 0922 Local variable '${variable2}' is overwritten before usage | ||
test.robot:127:5 [W] 0922 Local variable '${from_keyword3}' is overwritten before usage | ||
test.robot:131:12 [W] 0922 Local variable '${variable3}' is overwritten before usage |
File renamed without changes.
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
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