Skip to content

Commit

Permalink
Updates for the new version of the ruleset
Browse files Browse the repository at this point in the history
Merge pull request #5 from rmlos/update-vale-rules
  • Loading branch information
rmlos committed Sep 3, 2021
2 parents 256febd + 38973f2 commit d39436b
Show file tree
Hide file tree
Showing 9 changed files with 54 additions and 11 deletions.
16 changes: 12 additions & 4 deletions styles-vale/OutSystems/Acronyms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,26 @@ first: '\b([A-Z]{3,5})\b'
second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{3,5})\)'
# ... with the exception of these:
exceptions:
- AAB
- API
- APK
- ASP
- CPU
- CSS
- CSV
- CRUD
- DEV
- DOM
- FAQ
- GDB
- GET
- GUI
- GPS
- GUI
- HTML
- HTTP
- HTTPS
- IDE
- IPA
- JSON
- LDAP
- LESS
Expand All @@ -36,6 +41,8 @@ exceptions:
- PDF
- PHP
- POST
- PP
- PROD
- PWA
- RAM
- REST
Expand All @@ -49,6 +56,7 @@ exceptions:
- SSL
- SVG
- TCP
- TEST
- TLS
- URI
- URL
Expand All @@ -59,6 +67,6 @@ exceptions:
- XSS
- YAML
- ZIP
- DEV
- PP
- PROD
- VPN
- IIS

1 change: 1 addition & 0 deletions styles-vale/OutSystems/BrandTerms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ swap:
apis: APIs
urls: URLs
javascript: JavaScript
SS: Service Studio

6 changes: 6 additions & 0 deletions styles-vale/OutSystems/ImageAltSpacesOnly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extends: existence
message: "Alt value wrong. Describe the image properly."
level: warning
scope: raw
raw:
- '\!\[\s+\]'
6 changes: 6 additions & 0 deletions styles-vale/OutSystems/ImageNoAlt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extends: existence
message: "Consider adding alt description for non-decorative images."
level: suggestion
scope: raw
raw:
- '\!\[\]'
6 changes: 6 additions & 0 deletions styles-vale/OutSystems/ImageWidthDeprecated.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extends: existence
message: "Width tag is deprecated. Edit the image and use the full width instead."
level: suggestion
scope: raw
raw:
- '\?width\='
8 changes: 8 additions & 0 deletions styles-vale/OutSystems/NeedsMoreContent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extends: occurrence
message: "Content too short. Provide at least 400 characters."
level: warning
scope: raw
min: 400
max: 1000000
raw:
- '[\w-]+'
4 changes: 2 additions & 2 deletions styles-vale/OutSystems/SentenceLength.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Based on OpenStack.SentenceLength
message: "Write short sentences (less than 40 words)."
message: "Write sentences shorter than 30 words."
extends: occurrence
scope: sentence
level: suggestion
max: 40
max: 30
token: \b(\w+)\b
7 changes: 7 additions & 0 deletions styles-vale/OutSystems/SummaryEmpty.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends: existence
message: "Consider adding content for summary."
level: warning
scope: raw
raw:
- '^summary:$'

11 changes: 6 additions & 5 deletions styles-vale/vocab.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
Android
Ctrl
Excel
MABS
MindTouch
boolean
chatbot
Ctrl
datacenter
Excel
enum
denormalization
denormalize
keystore
enum
iOS
MindTouch
keystore
reinstall
reinstallation
scrollable
Expand Down

0 comments on commit d39436b

Please sign in to comment.