Skip to content

Commit

Permalink
Added new rules: AmericanSpelling, BrandName, SentenceComplexity, Sen…
Browse files Browse the repository at this point in the history
…tenceLength
  • Loading branch information
pedrosousa committed May 11, 2020
1 parent 94afa55 commit eae5333
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
15 changes: 15 additions & 0 deletions styles-vale/OutSystems/AmericanSpelling.yml
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
8 changes: 8 additions & 0 deletions styles-vale/OutSystems/BrandName.yml
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)"
7 changes: 7 additions & 0 deletions styles-vale/OutSystems/SentenceComplexity.yml
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
7 changes: 7 additions & 0 deletions styles-vale/OutSystems/SentenceLength.yml
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

0 comments on commit eae5333

Please sign in to comment.