Skip to content

Commit

Permalink
Merge pull request #1612 from themr0c/vale-styles
Browse files Browse the repository at this point in the history
Reorganize styles into CheDocs,IBM
  • Loading branch information
Yana Hontyk committed Sep 24, 2020
2 parents 7e8afcf + edc8de4 commit 1ae69ee
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ SkippedScopes = script, style, pre, figure
# Styles to load
# --------------
# What styles, located in the StylesPath folder, should Vale load?
BasedOnStyles = CheDocs,PlainLanguage,Vale,proselint,write-good,Microsoft,IBM
BasedOnStyles = CheDocs,IBM,Vale


# Enabling or disabling specific rules in a style
Expand All @@ -37,18 +37,18 @@ BasedOnStyles = CheDocs,PlainLanguage,Vale,proselint,write-good,Microsoft,IBM
# CheDocs.CommonTerms = NO
# CheDocs.Links-che6 = NO
# CheDocs.Links = NO
# Microsoft.Foreign = NO
# Microsoft.HeadingPunctuation = NO
# Microsoft.Spacing = NO
# PlainLanguage.PassiveVoice = NO
# PlainLanguage.SentenceLength = NO
# PlainLanguage.Slash = NO
# PlainLanguage.Wordiness = NO
# PlainLanguage.Words = NO
# proselint.Annotations = NO
# proselint.Spelling = NO
# proselint.Very = NO
# write-good.ThereIs = NO
# CheDocs.SentenceLength = NO
# IBM.Foreign = NO
# IBM.HeadingPunctuation = NO
# IBM.Spacing = NO
# IBM.PassiveVoice = NO
# IBM.Slash = NO
# IBM.Wordiness = NO
# IBM.Words = NO
# IBM.Annotations = NO
# IBM.Spelling = NO
# IBM.Very = NO
# IBM.ThereIs = NO
# IBM.terms = NO
# IBM.Usage = NO
Vale.Spelling = YES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ extends: occurrence
message: 'Keep sentences short and to the point'
description: 'A good rule-of-thumb is to break up any sentence longer than 21 words into two or more separate thoughts.'
scope: sentence
source: PLainLanguage
level: warning
max: 21
token: '\b(\w+)\b'
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ extends: existence
message: "'%s' left in text."
ignorecase: false
level: error
source: proselint
tokens:
- XXX
- FIXME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ level: error
nonword: true
action:
name: replace
source: Microsoft
swap:
'\b(?:eg|e\.g\.)[\s,]': for example
'\b(?:ie|i\.e\.)[\s,]': that is
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ link: https://docs.microsoft.com/en-us/style-guide/punctuation/periods
nonword: true
level: warning
scope: heading
source: Microsoft
action:
name: edit
params:
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ extends: existence
message: "Use either 'or' or 'and' in '%s'"
ignorecase: true
level: error
source: PlainLanguage
tokens:
- '\w+/\w+'
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ message: "'%s' should have one space."
link: https://docs.microsoft.com/en-us/style-guide/punctuation/periods
level: error
nonword: true
source: Microsoft
tokens:
- '[a-z][.?!] {2,}[A-Z]'
- '[a-z][.?!][A-Z]'
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ extends: consistency
message: "Use General American spelling of '%s'."
level: error
ignorecase: true
source: proselint
either:
advisor: adviser
analyse: analyze
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ extends: existence
message: "Don't start a sentence with '%s'"
ignorecase: true
level: error
source: write-good
raw:
- '(?:^[^\w]*|[;-]\s)There\b\s(is|are)\b'
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ extends: existence
message: "Remove '%s'."
ignorecase: true
level: error
source: proselint
tokens:
- very
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ extends: substitution
message: Consider using '%s' instead of '%s'
ignorecase: true
level: warning
source: PlainLanguage
swap:
(?:give|gave) rise to: lead to
(?:previous|prior) to: before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ extends: substitution
message: Use '%s' instead of '%s.'
level: error
ignorecase: true
source: PlainLanguage
swap:
shall: must

0 comments on commit 1ae69ee

Please sign in to comment.