-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new rules: AmericanSpelling, BrandName, SentenceComplexity, Sen…
…tenceLength
- Loading branch information
1 parent
94afa55
commit eae5333
Showing
4 changed files
with
37 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,15 @@ | ||
extends: substitution | ||
message: Use the American spelling '%s' instead of '%s'. | ||
level: error | ||
ignorecase: true | ||
swap: | ||
colour: color | ||
behaviour: behavior | ||
analise: analyze | ||
analised: analyzed | ||
analising: analyzing | ||
centre: center | ||
travelling: traveling | ||
organise: organize | ||
organizing: organizing | ||
fortnight: two weeks |
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 @@ | ||
extends: existence | ||
message: Do not write '%s' | ||
scope: sentence | ||
level: warning | ||
code: false | ||
ignorecase: false | ||
raw: | ||
- "(?:OutSystems'|OutSystems Platform)" |
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,7 @@ | ||
extends: readability | ||
message: "Readability score (grade level %s) might be too high." | ||
level: suggestion | ||
grade: 13 | ||
metrics: | ||
- Flesch-Kincaid | ||
# - Gunning Fog |
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,7 @@ | ||
# Based on OpenStack.SentenceLength | ||
message: "Write short sentences (less than 40 words)." | ||
extends: occurrence | ||
scope: sentence | ||
level: suggestion | ||
max: 40 | ||
token: \b(\w+)\b |