Skip to content

Commit

Permalink
change from error to suggestion level
Browse files Browse the repository at this point in the history
  • Loading branch information
ngken0995 committed Oct 4, 2023
1 parent c1da5f8 commit 623c019
Show file tree
Hide file tree
Showing 23 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion styles/Microsoft/AMPM.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extends: existence
message: Use 'AM' or 'PM' (preceded by a space).
link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/date-time-terms
level: error
level: suggestion
nonword: true
tokens:
- '\d{1,2}[AP]M'
Expand Down
2 changes: 1 addition & 1 deletion styles/Microsoft/Auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ extends: existence
message: "In general, don't hyphenate '%s'."
link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/a/auto
ignorecase: true
level: error
level: suggestion
action:
name: convert
params:
Expand Down
2 changes: 1 addition & 1 deletion styles/Microsoft/Avoid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ message: "Don't use '%s'. See the A-Z word list for details."
# See the A-Z word list
link: https://docs.microsoft.com/en-us/style-guide
ignorecase: true
level: error
level: suggestion
tokens:
- abortion
- and so on
Expand Down
2 changes: 1 addition & 1 deletion styles/Microsoft/Contractions.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extends: substitution
message: "Use '%s' instead of '%s'."
link: https://docs.microsoft.com/en-us/style-guide/word-choice/use-contractions
level: error
level: suggestion
ignorecase: true
action:
name: replace
Expand Down
2 changes: 1 addition & 1 deletion styles/Microsoft/Dashes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ message: "Remove the spaces around '%s'."
link: https://docs.microsoft.com/en-us/style-guide/punctuation/dashes-hyphens/emes
ignorecase: true
nonword: true
level: error
level: suggestion
action:
name: edit
params:
Expand Down
2 changes: 1 addition & 1 deletion styles/Microsoft/DateFormat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ extends: existence
message: Use 'July 31, 2016' format, not '%s'.
link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/date-time-terms
ignorecase: true
level: error
level: suggestion
nonword: true
tokens:
- '\d{1,2} (?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)|May|Jun(?:e)|Jul(?:y)|Aug(?:ust)|Sep(?:tember)?|Oct(?:ober)|Nov(?:ember)?|Dec(?:ember)?) \d{4}'
2 changes: 1 addition & 1 deletion styles/Microsoft/DateNumbers.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extends: existence
message: "Don't use ordinal numbers for dates."
link: https://docs.microsoft.com/en-us/style-guide/numbers#numbers-in-dates
level: error
level: suggestion
nonword: true
ignorecase: true
raw:
Expand Down
2 changes: 1 addition & 1 deletion styles/Microsoft/DateOrder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ extends: existence
message: "Always spell out the name of the month."
link: https://docs.microsoft.com/en-us/style-guide/numbers#numbers-in-dates
ignorecase: true
level: error
level: suggestion
nonword: true
tokens:
- '\b\d{1,2}/\d{1,2}/(?:\d{4}|\d{2})\b'
2 changes: 1 addition & 1 deletion styles/Microsoft/Foreign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ extends: substitution
message: "Use '%s' instead of '%s'."
link: https://docs.microsoft.com/en-us/style-guide/word-choice/use-us-spelling-avoid-non-english-words
ignorecase: true
level: error
level: suggestion
nonword: true
action:
name: replace
Expand Down
2 changes: 1 addition & 1 deletion styles/Microsoft/Gender.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extends: existence
message: "Don't use '%s'."
link: https://github.com/MicrosoftDocs/microsoft-style-guide/blob/master/styleguide/grammar/nouns-pronouns.md#pronouns-and-gender
level: error
level: suggestion
ignorecase: true
tokens:
- he/she
Expand Down
2 changes: 1 addition & 1 deletion styles/Microsoft/GenderBias.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extends: substitution
message: "Consider using '%s' instead of '%s'."
ignorecase: true
level: error
level: suggestion
swap:
(?:alumna|alumnus): graduate
(?:alumnae|alumni): graduates
Expand Down
2 changes: 1 addition & 1 deletion styles/Microsoft/HeadingColons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ extends: existence
message: "Capitalize '%s'."
link: https://docs.microsoft.com/en-us/style-guide/punctuation/colons
nonword: true
level: error
level: suggestion
scope: heading
tokens:
- ':\s[a-z]'
2 changes: 1 addition & 1 deletion styles/Microsoft/Negative.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ extends: existence
message: "Form a negative number with an en dash, not a hyphen."
link: https://docs.microsoft.com/en-us/style-guide/numbers
nonword: true
level: error
level: suggestion
action:
name: edit
params:
Expand Down
2 changes: 1 addition & 1 deletion styles/Microsoft/Ordinal.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extends: existence
message: "Don't add -ly to an ordinal number."
link: https://docs.microsoft.com/en-us/style-guide/numbers
level: error
level: suggestion
action:
name: edit
params:
Expand Down
2 changes: 1 addition & 1 deletion styles/Microsoft/Percentages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ extends: existence
message: "Use a numeral plus the units."
link: https://docs.microsoft.com/en-us/style-guide/numbers
nonword: true
level: error
level: suggestion
tokens:
- '\b[a-zA-z]+\spercent\b'
2 changes: 1 addition & 1 deletion styles/Microsoft/Quotes.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extends: existence
message: "Punctuation should be inside the quotes."
link: https://docs.microsoft.com/en-us/style-guide/punctuation/quotation-marks
level: error
level: suggestion
nonword: true
tokens:
- '["“][^"”“]+["”][.,]'
2 changes: 1 addition & 1 deletion styles/Microsoft/RangeFormat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ extends: existence
message: "Use an en dash in a range of numbers."
link: https://docs.microsoft.com/en-us/style-guide/numbers
nonword: true
level: error
level: suggestion
action:
name: edit
params:
Expand Down
2 changes: 1 addition & 1 deletion styles/Microsoft/RangeTime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ extends: existence
message: "Use 'to' instead of a dash in '%s'."
link: https://docs.microsoft.com/en-us/style-guide/numbers
nonword: true
level: error
level: suggestion
action:
name: edit
params:
Expand Down
2 changes: 1 addition & 1 deletion styles/Microsoft/Spacing.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extends: existence
message: "'%s' should have one space."
link: https://docs.microsoft.com/en-us/style-guide/punctuation/periods
level: error
level: suggestion
nonword: true
tokens:
- "[a-z][.?!] {2,}[A-Z]"
Expand Down
2 changes: 1 addition & 1 deletion styles/Microsoft/URLFormat.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extends: substitution
message: "Use '%s' instead of '%s'."
ignorecase: true
level: error
level: suggestion
action:
name: replace
swap:
Expand Down
2 changes: 1 addition & 1 deletion styles/Microsoft/Units.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extends: existence
message: "Don't spell out the number in '%s'."
link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/units-of-measure-terms
level: error
level: suggestion
raw:
- '[a-zA-Z]+\s'
tokens:
Expand Down
2 changes: 1 addition & 1 deletion styles/write-good/So.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
extends: existence
message: "Don't start a sentence with '%s'."
level: error
level: suggestion
raw:
- '(?:[;-]\s)so[\s,]|\bSo[\s,]'
2 changes: 1 addition & 1 deletion styles/write-good/ThereIs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends: existence
message: "Don't start a sentence with '%s'."
ignorecase: false
level: error
level: suggestion
raw:
- '(?:[;-]\s)There\s(is|are)|\bThere\s(is|are)\b'

0 comments on commit 623c019

Please sign in to comment.