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
7 changes: 4 additions & 3 deletions styles/Krystal/Acronyms.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
extends: conditional
message: "'%s' has no definition."
link:
link:
level: suggestion
ignorecase: false
# Ensures that the existence of 'first' implies the existence of 'second'.
first: '\b([A-Z]{2,5}[s]?)\b'
second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{2,5}[s]?)\)'
first: '\b[A-Z]{2,5}(?=s?\b)'
# Match the definition, allowing the acronym inside the parens to be singular or plural
second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{2,5}s?)\)'
# ... with the exception of these:
exceptions:
- API
Expand Down
3 changes: 3 additions & 0 deletions styles/Krystal/Spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@ level: error
dictionaries:
- en_GB
dicpath: config/dictionaries/
filters:
# This rule allows for 2-5 character all uppercase acronyms:
- '\b[A-Z]{2,5}s?\b'
ignore:
- ignore/spelling-ignorelist.txt
2 changes: 1 addition & 1 deletion styles/alex/Suicide.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
extends: substitution
message: When referring to a person, consider using '%s' instead of '%s'.
message: Consider using '%s' instead of '%s' (which may be insensitive).
ignorecase: true
level: warning
action:
Expand Down