-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from AdmiringWorm/issue38
(#38) Add rule for validating ID length
- Loading branch information
Showing
6 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
...dFlagIdentifier_id=IAmALongeAlpha.CharacterThatMatches_Multiple_Rules.config.verified.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,32 @@ | ||
[ | ||
{ | ||
HelpUrl: https://ch0.co/rules/cpmr0024, | ||
Id: CPMR0024, | ||
Message: Package ID includes a prerelease version name., | ||
Severity: Error | ||
}, | ||
{ | ||
HelpUrl: https://ch0.co/rules/cpmr0029, | ||
Id: CPMR0029, | ||
Message: Package ID ends with the reserved suffix `.config`., | ||
Severity: Error | ||
}, | ||
{ | ||
HelpUrl: https://ch0.co/rules/cpmr0070, | ||
Id: CPMR0070, | ||
Message: Package ID contains underscores (_). Normally a Package ID is separated by dashes (-)., | ||
Severity: Note | ||
}, | ||
{ | ||
HelpUrl: https://ch0.co/rules/cpmr0061, | ||
Id: CPMR0061, | ||
Message: Package ID contains dots (.), that is not part of the accepted suffixes., | ||
Severity: Note | ||
}, | ||
{ | ||
HelpUrl: https://ch0.co/rules/cpmr0069, | ||
Id: CPMR0069, | ||
Message: Package ID contains 50 characters without being separated by a dash (-)., | ||
Severity: Note | ||
} | ||
] |
8 changes: 8 additions & 0 deletions
8
...sTests.ShouldFlagIdentifier_id=i-haveasectionlongerthan20-characters.install.verified.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,8 @@ | ||
[ | ||
{ | ||
HelpUrl: https://ch0.co/rules/cpmr0069, | ||
Id: CPMR0069, | ||
Message: Package ID contains 37 characters with one or more parts being more than 20 characters., | ||
Severity: Note | ||
} | ||
] |
8 changes: 8 additions & 0 deletions
8
...sts.ShouldFlagIdentifier_id=iamaverylongidentifierthatismorethan20characters.verified.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,8 @@ | ||
[ | ||
{ | ||
HelpUrl: https://ch0.co/rules/cpmr0069, | ||
Id: CPMR0069, | ||
Message: Package ID contains 48 characters without being separated by a dash (-)., | ||
Severity: Note | ||
} | ||
] |
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