Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions styles/DigitalOcean/ConsiderateWriting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ swap:
insanely: incredibly
dummy: placeholder|stand-in|test
stupid: foolish|ludicrous|unintelligent
(?:fall|fell|falling) on deaf ears: missed the mark|was ignored
(?:fall|fell|falling) on deaf ears: missed the mark|was ignored|were ignored
blind spot: weakness|something we overlooked
sanity check: check
sanity check: check|verify|review
kill (?:a|the) (?:process|task|job): terminate|stop
killed (?:a|the) (?:process|task|job): terminated|stopped
killing (?:a|the) (?:process|task|job): terminating|stopping
shoot (?:an|the|a) (?:email|message): send|forward|submit
shot (?:an|the|a) (?:email|message): sent|forwarded|submitted
shooting (?:an|the|a) (?:email|message): sending|forwarding|submitting
tribal knowledge: existing knowledge|internal documentation
low-hanging fruit: early opportunity|simple task
white knight: system recovery
4 changes: 4 additions & 0 deletions styles/DigitalOcean/DigitalOceanTerms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ swap:
'Digitalocean': DigitalOcean
'digitalocean^(?:.com)': DigitalOcean
droplet[s]?: Droplet(s)
\bspace[s]?(?! bucket| for| between| after| before| around| in): Space(s)
the Gradient AI Platform: Gradient AI Platform
model [Pp]layground: Model Playground
agent [Pp]layground: Agent Playground
12 changes: 12 additions & 0 deletions styles/DigitalOcean/Ellipses.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
extends: existence
message: "Use ellipses only to represent truncated output or omitted quoted text, not for tone or style: '%s'."
link: https://docs.digitalocean.com/style/digitalocean/grammar/punctuation
level: warning
scope: sentence
nonword: true
# This rule flags ellipses in narrative text (not code blocks)
# It will produce some false positives in legitimate technical uses
# Use Vale comments to ignore specific instances if needed
tokens:
- '\.\.\.'
- '…' # Unicode ellipsis character
8 changes: 8 additions & 0 deletions styles/DigitalOcean/EmDashes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extends: existence
message: "Do not use en dashes (–) or em dashes (—). Use hyphens (-) for ranges and compound modifiers."
link: https://docs.digitalocean.com/style/digitalocean/grammar/punctuation
level: error
nonword: true
tokens:
- '–' # en dash (U+2013)
- '—' # em dash (U+2014)
8 changes: 8 additions & 0 deletions styles/DigitalOcean/ExclamationMarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extends: existence
message: "Avoid exclamation marks in technical documentation. Rewrite for clarity instead of relying on punctuation for emphasis."
link: https://docs.digitalocean.com/style/digitalocean/grammar/punctuation
level: warning
nonword: true
scope: sentence
tokens:
- '!'
2 changes: 2 additions & 0 deletions styles/DigitalOcean/GenderBias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ swap:
sales(?:m[ae]n|wom[ae]n): salesperson or sales people
work(?:m[ae]n|wom[ae]n): worker(s)
manhours: workhours
man-hours: work-hours
manpower: staff
work(?:m[ae]n|wom[ae]n): worker(s)
7 changes: 7 additions & 0 deletions styles/DigitalOcean/LeadingZero.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends: existence
message: "Include a leading zero for decimals less than one: '%s'."
link: https://docs.digitalocean.com/style/digitalocean/grammar/numbers
level: error
nonword: true
tokens:
- '(?:^|\s)\.(\d+)' # Decimal without leading zero like " .5"
16 changes: 16 additions & 0 deletions styles/DigitalOcean/ModalAuxiliaries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
extends: existence
message: "Avoid modal auxiliaries like '%s', which can confuse non-native speakers. Use direct, present-tense verbs instead."
link: https://docs.digitalocean.com/style/digitalocean/language/verbs
level: warning
ignorecase: true
tokens:
- '\bshould\b'
- '\bcould\b'
- '\bmay\b'
- '\bmight\b'
- '\bshould not\b'
- '\bcould not\b'
- '\bmay not\b'
- '\bmight not\b'
- '\bshouldn''t\b'
- '\bcouldn''t\b'
9 changes: 9 additions & 0 deletions styles/DigitalOcean/RangeSpacing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extends: existence
message: "Do not add spaces around hyphens in ranges: '%s'."
link: https://docs.digitalocean.com/style/digitalocean/grammar/hyphens
level: error
nonword: true
tokens:
- '\d+\s+-\s+\d+' # numeric ranges like "10 - 20"
- '\d+\s+-\d+' # "10 -20"
- '\d+-\s+\d+' # "10- 20"
16 changes: 16 additions & 0 deletions styles/DigitalOcean/VagueLinkText.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
extends: existence
message: "Use descriptive link text. Avoid vague phrases like '%s'."
link: https://docs.digitalocean.com/style/digitalocean/language/links-and-link-text
level: error
ignorecase: true
tokens:
- 'click here'
- 'learn more'
- 'read more'
- 'more info'
- 'more information'
- 'this page'
- 'this link'
- 'here'
- 'click this link'
- 'follow this link'
11 changes: 11 additions & 0 deletions styles/DigitalOcean/WordChoicePhrasalVerbs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
extends: substitution
message: "Use '%s' instead of '%s'."
link: https://docs.digitalocean.com/style/digitalocean/language/word-choice
ignorecase: true
level: error
action:
name: replace
swap:
log into: log in to
logged into: logged in to
logging into: logging in to