-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #57 Change 'allowed-tags' rule parameter from a comma-separated l…
…ist to a regular expression
- Loading branch information
Showing
10 changed files
with
101 additions
and
26 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
17 changes: 17 additions & 0 deletions
17
gherkin-checks/src/test/resources/checks/allowed-tags/allowed-tags-composite.feature
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,17 @@ | ||
# Noncompliant [[sc=1;ec=8]] {{Remove this tag that does not match the regular expression: "us:\d+|uid:[a-zA-Z''-'\s]{1,40}"}} | ||
@us:abc | ||
Feature: My feature allowed tags composite... | ||
Blabla... | ||
|
||
# Noncompliant [[sc=3;ec=11]] {{Remove this tag that does not match the regular expression: "us:\d+|uid:[a-zA-Z''-'\s]{1,40}"}} | ||
@uid:A_B | ||
Scenario: Scenario 1 allowed tags composite | ||
Given Blabla given... | ||
When Blabla when... | ||
Then Blabla then... | ||
|
||
@us:123 @uid:UniqueID | ||
Scenario: Scenario 2 allowed tags composite | ||
Given Blabla given... | ||
When Blabla when... | ||
Then Blabla then... |
4 changes: 2 additions & 2 deletions
4
gherkin-checks/src/test/resources/checks/allowed-tags/allowed-tags-custom.feature
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
gherkin-checks/src/test/resources/checks/allowed-tags/allowed-tags-default.feature
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
17 changes: 17 additions & 0 deletions
17
its/ruling/projects/custom/allowed-tags/allowed-tags-composite.feature
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,17 @@ | ||
# Noncompliant [[sc=1;ec=8]] {{Remove this tag that does not match the regular expression: "us:\d+|uid:[a-zA-Z''-'\s]{1,40}"}} | ||
@us:abc | ||
Feature: My feature allowed tags composite... | ||
Blabla... | ||
|
||
# Noncompliant [[sc=3;ec=11]] {{Remove this tag that does not match the regular expression: "us:\d+|uid:[a-zA-Z''-'\s]{1,40}"}} | ||
@uid:A_B | ||
Scenario: Scenario 1 allowed tags composite | ||
Given Blabla given... | ||
When Blabla when... | ||
Then Blabla then... | ||
|
||
@us:123 @uid:UniqueID | ||
Scenario: Scenario 2 allowed tags composite | ||
Given Blabla given... | ||
When Blabla when... | ||
Then Blabla then... |
4 changes: 2 additions & 2 deletions
4
its/ruling/projects/custom/allowed-tags/allowed-tags-custom.feature
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
its/ruling/projects/custom/allowed-tags/allowed-tags-default.feature
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
its/ruling/tests/src/test/expected/gherkin-tag-naming-convention.json
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