-
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.
Browse files
Browse the repository at this point in the history
(cherry picked from commit 1e5843c) Co-authored-by: Adelina Simion <[email protected]>
- Loading branch information
1 parent
b33ea17
commit 53af6b0
Showing
1 changed file
with
54 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,54 @@ | ||
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 surrounded by brackets | ||
# to detect an acronym definition. | ||
first: '[(][A-Z]{2,5}[)]' | ||
# Match two to five capitalised words separated by any number of dashes | ||
# or whitespaces before the acronym definition. | ||
second: '(\b(([A-Z][a-z]+)[\-\s ]{1,}){2,5})([(][A-Z]{2,5}[)])' | ||
exceptions: | ||
- (API) | ||
- (AWS) | ||
- (BYOOS) | ||
- (CAPI) | ||
- (CLI) | ||
- (CPU) | ||
- (CSS) | ||
- (CSV) | ||
- (FAQ) | ||
- (GCP) | ||
- (GET) | ||
- (GPU) | ||
- (HTML) | ||
- (HTTP) | ||
- (HTTPS) | ||
- (IDE) | ||
- (IP) | ||
- (ISO) | ||
- (JPEG) | ||
- (JPG) | ||
- (JSON) | ||
- (OS) | ||
- (OSS) | ||
- (PDF) | ||
- (PNG) | ||
- (POST) | ||
- (RAM) | ||
- (SDK) | ||
- (SQL) | ||
- (SSH) | ||
- (SSL) | ||
- (SVG) | ||
- (TCP) | ||
- (URI) | ||
- (URL) | ||
- (USB) | ||
- (VIP) | ||
- (YAML) | ||
- (YML) | ||
- (XML) | ||
- (ZIP) |