Merge pull request #8940 from issyl0/fix-vale
docs/vale-styles: Bump all style violations to "error" level so they fail CI
This commit is contained in:
commit
5efa3d6c07
@ -1,4 +1,4 @@
|
|||||||
# Type Checking with Sorbet
|
# Type Checking With Sorbet
|
||||||
|
|
||||||
The majority of the code in Homebrew is written in Ruby which is a dynamic
|
The majority of the code in Homebrew is written in Ruby which is a dynamic
|
||||||
language. To avail the benefits of static type checking, we have set up Sorbet in
|
language. To avail the benefits of static type checking, we have set up Sorbet in
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
extends: substitution
|
extends: substitution
|
||||||
message: Use '%s'
|
message: Use '%s'
|
||||||
ignorecase: false
|
ignorecase: false
|
||||||
link: 'https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#style-and-usage'
|
link: "https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#style-and-usage"
|
||||||
level: error
|
level: error
|
||||||
nonword: true
|
nonword: true
|
||||||
swap:
|
swap:
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
extends: existence
|
extends: existence
|
||||||
message: 'No Oxford commas!'
|
message: "No Oxford commas!"
|
||||||
link: 'https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#typographical-conventions'
|
link: "https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#typographical-conventions"
|
||||||
scope: sentence
|
scope: sentence
|
||||||
level: warning
|
level: error
|
||||||
tokens:
|
tokens:
|
||||||
- '(?:[^,]+,){1,}\s\w+,\sand'
|
- '(?:[^,]+,){1,}\s\w+,\sand'
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
extends: existence
|
extends: existence
|
||||||
message: Avoid gender-specific language when not necessary.
|
message: Avoid gender-specific language when not necessary.
|
||||||
link: 'https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#personal-pronouns'
|
link: "https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#personal-pronouns"
|
||||||
level: warning
|
level: error
|
||||||
ignorecase: true
|
ignorecase: true
|
||||||
tokens:
|
tokens:
|
||||||
- him
|
- him
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
---
|
---
|
||||||
extends: existence
|
extends: existence
|
||||||
message: "'%s' should have one space."
|
message: "'%s' should have one space."
|
||||||
link: 'https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#typographical-conventions'
|
link: "https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#typographical-conventions"
|
||||||
level: error
|
level: error
|
||||||
nonword: true
|
nonword: true
|
||||||
tokens:
|
tokens:
|
||||||
- '[a-z][.?!][A-Z]'
|
- "[a-z][.?!][A-Z]"
|
||||||
- '[.?!] {2,}[A-Z]'
|
- "[.?!] {2,}[A-Z]"
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
extends: substitution
|
extends: substitution
|
||||||
message: Use '%s' instead of '%s'.
|
message: Use '%s' instead of '%s'.
|
||||||
link: 'https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#terminology-words-and-word-styling'
|
link: "https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#terminology-words-and-word-styling"
|
||||||
level: error
|
level: error
|
||||||
scope: $paragraph
|
scope: $paragraph
|
||||||
swap:
|
swap:
|
||||||
|
|||||||
@ -1,10 +1,11 @@
|
|||||||
extends: capitalization
|
extends: capitalization
|
||||||
message: "'%s' should be in title case"
|
message: "'%s' should be in title case"
|
||||||
level: warning
|
level: error
|
||||||
scope: heading.h1
|
scope: heading.h1
|
||||||
match: $title
|
match: $title
|
||||||
style: AP
|
style: AP
|
||||||
exceptions:
|
exceptions:
|
||||||
- brew(1)
|
- brew(1)
|
||||||
|
- macOS
|
||||||
- Homebrew/homebrew-core
|
- Homebrew/homebrew-core
|
||||||
- Homebrew/linuxbrew-core
|
- Homebrew/linuxbrew-core
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
extends: existence
|
extends: existence
|
||||||
message: 'No "TM", ™, SM, ©, ®, or other explicit indicators of rights ownership or trademarks'
|
message: 'No "TM", ™, SM, ©, ®, or other explicit indicators of rights ownership or trademarks'
|
||||||
link: 'https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#typographical-conventions'
|
link: "https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#typographical-conventions"
|
||||||
level: error
|
level: error
|
||||||
nonword: true
|
nonword: true
|
||||||
tokens:
|
tokens:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user