-
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.
chore: add acronym rule to vale DOC-940 (#2273)
* chore: add acronym rule to vale DOC-940 * chore: add more ignore extensions
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
extends: conditional | ||
message: "Use title case to define the acronym '%s'." | ||
link: 'https://spectrocloud.atlassian.net/wiki/spaces/DE/pages/1765933057/Spectro+Cloud+Internal+Style+Guide#Acronyms' | ||
level: error | ||
ignorecase: false | ||
scope: text | ||
# Match two to five capital letters to detect an acronym | ||
first: '([A-Z]{2,5})' | ||
# Match two to five capitalised words before the acronym definition | ||
second: '(?:\b[A-Z][a-z]+ ){2,5}\(([A-Z]{2,5})\)' | ||
exceptions: | ||
- API | ||
- AWS | ||
- BYOOS | ||
- CLI | ||
- CPU | ||
- CSS | ||
- CSV | ||
- FAQ | ||
- GCP | ||
- GET | ||
- GPU | ||
- HTML | ||
- HTTP | ||
- HTTPS | ||
- IDE | ||
- ISO | ||
- JPEG | ||
- JPG | ||
- JSON | ||
- OS | ||
- OSS | ||
- PNG | ||
- POST | ||
- RAM | ||
- SDK | ||
- SQL | ||
- SSH | ||
- SSL | ||
- SVG | ||
- TCP | ||
- URI | ||
- URL | ||
- USB | ||
- YAML | ||
- YML | ||
- XML | ||
- ZIP |