-
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.
Count VAR as keyword call in length rules (#1022)
- Loading branch information
Showing
13 changed files
with
92 additions
and
44 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
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
4 changes: 2 additions & 2 deletions
4
tests/atest/rules/lengths/too_few_calls_in_keyword/expected_output.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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
test.robot:25:1 [W] 0502 Keyword 'Empty Keyword' has too few keywords inside (0/1) | ||
test.robot:27:1 [W] 0502 Keyword 'Keyword' has too few keywords inside (0/1) | ||
test.robot:30:1 [W] 0502 Keyword 'Empty Keyword' has too few keywords inside (0/1) | ||
test.robot:32:1 [W] 0502 Keyword 'Keyword' has too few keywords inside (0/1) |
6 changes: 3 additions & 3 deletions
6
tests/atest/rules/lengths/too_few_calls_in_keyword/expected_output_severity.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
test.robot:22:1 [W] 0502 Keyword 'Short Keyword' has too few keywords inside (1/1) | ||
test.robot:25:1 [E] 0502 Keyword 'Empty Keyword' has too few keywords inside (0/0) | ||
test.robot:27:1 [E] 0502 Keyword 'Keyword' has too few keywords inside (0/0) | ||
test.robot:27:1 [W] 0502 Keyword 'Short Keyword' has too few keywords inside (1/1) | ||
test.robot:30:1 [E] 0502 Keyword 'Empty Keyword' has too few keywords inside (0/0) | ||
test.robot:32:1 [E] 0502 Keyword 'Keyword' has too few keywords inside (0/0) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
test.robot:15:1 [W] 0501 Keyword 'Some Keyword' is too long (45/40) | ||
test.robot:15:1 [W] 0501 Keyword 'Some Keyword' is too long (46/40) |
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 |
---|---|---|
|
@@ -58,6 +58,7 @@ Some Keyword | |
... ${var} | ||
... ${var} | ||
... ${var} | ||
VAR ${variable} | ||
|
||
|
||
Keyword with comments at the end | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ Test | |
Keyword | ||
Keyword | ||
Keyword | ||
Keyword | ||
VAR ${variable} value scope=GLOBAL | ||
One More | ||
|
||
|
||
|