Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
paddyroddy committed Oct 27, 2023
1 parent 07127db commit ad76e28
Show file tree
Hide file tree
Showing 71 changed files with 459 additions and 459 deletions.
2 changes: 1 addition & 1 deletion .github/styles/18F/Ages.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
extends: existence
message: 'Avoid hyphens in ages unless it clarifies the text.'
message: "Avoid hyphens in ages unless it clarifies the text."
level: error
tokens:
- '\d{1,3}-year-old'
2 changes: 1 addition & 1 deletion .github/styles/18F/Clarity.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
extends: substitution
message: '%s'
message: "%s"
level: error
ignorecase: true
swap:
Expand Down
4 changes: 2 additions & 2 deletions .github/styles/18F/OxfordComma.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
extends: existence
message: 'Use the Oxford comma in a list of three or more items.'
link: 'https://contribute.jquery.org/style-guide/prose/#grammar'
message: "Use the Oxford comma in a list of three or more items."
link: "https://contribute.jquery.org/style-guide/prose/#grammar"
scope: sentence
level: error
tokens:
Expand Down
2 changes: 1 addition & 1 deletion .github/styles/18F/Quotes.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
extends: existence
message: 'Punctuation should be inside the quotes.'
message: "Punctuation should be inside the quotes."
level: error
nonword: true
tokens:
Expand Down
2 changes: 1 addition & 1 deletion .github/styles/18F/Spacing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ extends: existence
message: "'%s' should have one space."
level: error
tokens:
- '[.?!] {2,}[A-Z]'
- "[.?!] {2,}[A-Z]"
2 changes: 1 addition & 1 deletion .github/styles/Google/AMPM.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends: existence
message: "Use 'AM' or 'PM' (preceded by a space)."
link: 'https://developers.google.com/style/word-list'
link: "https://developers.google.com/style/word-list"
level: error
nonword: true
tokens:
Expand Down
2 changes: 1 addition & 1 deletion .github/styles/Google/Acronyms.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends: conditional
message: "Spell out '%s', if it's unfamiliar to the audience."
link: 'https://developers.google.com/style/abbreviations'
link: "https://developers.google.com/style/abbreviations"
level: error
ignorecase: false
# Ensures that the existence of 'first' implies the existence of 'second'.
Expand Down
2 changes: 1 addition & 1 deletion .github/styles/Google/Colons.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends: existence
message: "'%s' should be in lowercase."
link: 'https://developers.google.com/style/colons'
link: "https://developers.google.com/style/colons"
nonword: true
level: error
scope: sentence
Expand Down
2 changes: 1 addition & 1 deletion .github/styles/Google/DateFormat.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends: existence
message: "Use 'July 31, 2016' format, not '%s'."
link: 'https://developers.google.com/style/dates-times'
link: "https://developers.google.com/style/dates-times"
ignorecase: true
level: error
nonword: true
Expand Down
2 changes: 1 addition & 1 deletion .github/styles/Google/Ellipses.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends: existence
message: "In general, don't use an ellipsis."
link: 'https://developers.google.com/style/ellipses'
link: "https://developers.google.com/style/ellipses"
nonword: true
level: error
action:
Expand Down
4 changes: 2 additions & 2 deletions .github/styles/Google/EmDash.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
extends: existence
message: "Don't put a space before or after a dash."
link: 'https://developers.google.com/style/dashes'
link: "https://developers.google.com/style/dashes"
nonword: true
level: error
action:
name: edit
params:
- remove
- ' '
- " "
tokens:
- '\s[—–]\s'
8 changes: 4 additions & 4 deletions .github/styles/Google/EnDash.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
extends: existence
message: "Use an em dash ('—') instead of '–'."
link: 'https://developers.google.com/style/dashes'
link: "https://developers.google.com/style/dashes"
nonword: true
level: error
action:
name: edit
params:
- replace
- '-'
- ''
- "-"
- ""
tokens:
- ''
- ""
2 changes: 1 addition & 1 deletion .github/styles/Google/Exclamation.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends: existence
message: "Don't use exclamation points in text."
link: 'https://developers.google.com/style/exclamation-points'
link: "https://developers.google.com/style/exclamation-points"
nonword: true
level: error
tokens:
Expand Down
2 changes: 1 addition & 1 deletion .github/styles/Google/FirstPerson.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends: existence
message: "Avoid first-person pronouns such as '%s'."
link: 'https://developers.google.com/style/pronouns#personal-pronouns'
link: "https://developers.google.com/style/pronouns#personal-pronouns"
ignorecase: true
level: error
nonword: true
Expand Down
2 changes: 1 addition & 1 deletion .github/styles/Google/Gender.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends: existence
message: "Don't use '%s' as a gender-neutral pronoun."
link: 'https://developers.google.com/style/pronouns#gender-neutral-pronouns'
link: "https://developers.google.com/style/pronouns#gender-neutral-pronouns"
level: error
ignorecase: true
tokens:
Expand Down
78 changes: 39 additions & 39 deletions .github/styles/Google/GenderBias.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
extends: substitution
message: "Consider using '%s' instead of '%s'."
link: 'https://developers.google.com/style/inclusive-documentation'
link: "https://developers.google.com/style/inclusive-documentation"
ignorecase: true
level: error
swap:
(?:alumna|alumnus): graduate
(?:alumnae|alumni): graduates
air(?:m[ae]n|wom[ae]n): pilot(s)
anchor(?:m[ae]n|wom[ae]n): anchor(s)
authoress: author
camera(?:m[ae]n|wom[ae]n): camera operator(s)
chair(?:m[ae]n|wom[ae]n): chair(s)
(?:alumna|alumnus): graduate
(?:alumnae|alumni): graduates
air(?:m[ae]n|wom[ae]n): pilot(s)
anchor(?:m[ae]n|wom[ae]n): anchor(s)
authoress: author
camera(?:m[ae]n|wom[ae]n): camera operator(s)
chair(?:m[ae]n|wom[ae]n): chair(s)
congress(?:m[ae]n|wom[ae]n): member(s) of congress
door(?:m[ae]|wom[ae]n): concierge(s)
draft(?:m[ae]n|wom[ae]n): drafter(s)
fire(?:m[ae]n|wom[ae]n): firefighter(s)
fisher(?:m[ae]n|wom[ae]n): fisher(s)
fresh(?:m[ae]n|wom[ae]n): first-year student(s)
garbage(?:m[ae]n|wom[ae]n): waste collector(s)
lady lawyer: lawyer
ladylike: courteous
landlord: building manager
mail(?:m[ae]n|wom[ae]n): mail carriers
man and wife: husband and wife
man enough: strong enough
mankind: human kind
manmade: manufactured
manpower: personnel
men and girls: men and women
middle(?:m[ae]n|wom[ae]n): intermediary
news(?:m[ae]n|wom[ae]n): journalist(s)
ombuds(?:man|woman): ombuds
oneupmanship: upstaging
poetess: poet
police(?:m[ae]n|wom[ae]n): police officer(s)
repair(?:m[ae]n|wom[ae]n): technician(s)
sales(?:m[ae]n|wom[ae]n): salesperson or sales people
service(?:m[ae]n|wom[ae]n): soldier(s)
steward(?:ess)?: flight attendant
tribes(?:m[ae]n|wom[ae]n): tribe member(s)
waitress: waiter
woman doctor: doctor
woman scientist[s]?: scientist(s)
work(?:m[ae]n|wom[ae]n): worker(s)
door(?:m[ae]|wom[ae]n): concierge(s)
draft(?:m[ae]n|wom[ae]n): drafter(s)
fire(?:m[ae]n|wom[ae]n): firefighter(s)
fisher(?:m[ae]n|wom[ae]n): fisher(s)
fresh(?:m[ae]n|wom[ae]n): first-year student(s)
garbage(?:m[ae]n|wom[ae]n): waste collector(s)
lady lawyer: lawyer
ladylike: courteous
landlord: building manager
mail(?:m[ae]n|wom[ae]n): mail carriers
man and wife: husband and wife
man enough: strong enough
mankind: human kind
manmade: manufactured
manpower: personnel
men and girls: men and women
middle(?:m[ae]n|wom[ae]n): intermediary
news(?:m[ae]n|wom[ae]n): journalist(s)
ombuds(?:man|woman): ombuds
oneupmanship: upstaging
poetess: poet
police(?:m[ae]n|wom[ae]n): police officer(s)
repair(?:m[ae]n|wom[ae]n): technician(s)
sales(?:m[ae]n|wom[ae]n): salesperson or sales people
service(?:m[ae]n|wom[ae]n): soldier(s)
steward(?:ess)?: flight attendant
tribes(?:m[ae]n|wom[ae]n): tribe member(s)
waitress: waiter
woman doctor: doctor
woman scientist[s]?: scientist(s)
work(?:m[ae]n|wom[ae]n): worker(s)
4 changes: 2 additions & 2 deletions .github/styles/Google/HeadingPunctuation.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
extends: existence
message: "Don't put a period at the end of a heading."
link: 'https://developers.google.com/style/capitalization#capitalization-in-titles-and-headings'
link: "https://developers.google.com/style/capitalization#capitalization-in-titles-and-headings"
nonword: true
level: error
scope: heading
action:
name: edit
params:
- remove
- '.'
- "."
tokens:
- '[a-z0-9][.]\s*$'
4 changes: 2 additions & 2 deletions .github/styles/Google/Headings.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
extends: capitalization
message: "'%s' should use sentence-style capitalization."
link: 'https://developers.google.com/style/capitalization#capitalization-in-titles-and-headings'
link: "https://developers.google.com/style/capitalization#capitalization-in-titles-and-headings"
level: error
scope: heading
match: $sentence
indicators:
- ':'
- ":"
exceptions:
- Azure
- CLI
Expand Down
2 changes: 1 addition & 1 deletion .github/styles/Google/Latin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends: substitution
message: "Use '%s' instead of '%s'."
link: 'https://developers.google.com/style/abbreviations'
link: "https://developers.google.com/style/abbreviations"
ignorecase: true
level: error
nonword: true
Expand Down
6 changes: 3 additions & 3 deletions .github/styles/Google/LyHyphens.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
extends: existence
message: "'%s' doesn't need a hyphen."
link: 'https://developers.google.com/style/hyphens'
link: "https://developers.google.com/style/hyphens"
level: error
ignorecase: false
nonword: true
action:
name: edit
params:
- replace
- '-'
- ' '
- "-"
- " "
tokens:
- '\s[^\s-]+ly-'
4 changes: 2 additions & 2 deletions .github/styles/Google/OptionalPlurals.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
extends: existence
message: "Don't use plurals in parentheses such as in '%s'."
link: 'https://developers.google.com/style/plurals-parentheses'
link: "https://developers.google.com/style/plurals-parentheses"
level: error
nonword: true
action:
name: edit
params:
- remove
- '(s)'
- "(s)"
tokens:
- '\b\w+\(s\)'
2 changes: 1 addition & 1 deletion .github/styles/Google/Ordinal.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends: existence
message: "Spell out all ordinal numbers ('%s') in text."
link: 'https://developers.google.com/style/numbers'
link: "https://developers.google.com/style/numbers"
level: error
nonword: true
tokens:
Expand Down
2 changes: 1 addition & 1 deletion .github/styles/Google/OxfordComma.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends: existence
message: "Use the Oxford comma in '%s'."
link: 'https://developers.google.com/style/commas'
link: "https://developers.google.com/style/commas"
scope: sentence
level: error
tokens:
Expand Down
2 changes: 1 addition & 1 deletion .github/styles/Google/Parens.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends: existence
message: "Use parentheses judiciously."
link: 'https://developers.google.com/style/parentheses'
link: "https://developers.google.com/style/parentheses"
nonword: true
level: error
tokens:
Expand Down
2 changes: 1 addition & 1 deletion .github/styles/Google/Passive.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
extends: existence
link: 'https://developers.google.com/style/voice'
link: "https://developers.google.com/style/voice"
message: "In general, use active voice instead of passive voice ('%s')."
ignorecase: true
level: error
Expand Down
2 changes: 1 addition & 1 deletion .github/styles/Google/Periods.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends: existence
message: "Don't use periods with acronyms or initialisms such as '%s'."
link: 'https://developers.google.com/style/abbreviations'
link: "https://developers.google.com/style/abbreviations"
level: error
nonword: true
tokens:
Expand Down
2 changes: 1 addition & 1 deletion .github/styles/Google/Quotes.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends: existence
message: "Commas and periods go inside quotation marks."
link: 'https://developers.google.com/style/quotation-marks'
link: "https://developers.google.com/style/quotation-marks"
level: error
nonword: true
tokens:
Expand Down
2 changes: 1 addition & 1 deletion .github/styles/Google/Ranges.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends: existence
message: "Don't add words such as 'from' or 'between' to describe a range of numbers."
link: 'https://developers.google.com/style/hyphens'
link: "https://developers.google.com/style/hyphens"
nonword: true
level: error
tokens:
Expand Down
4 changes: 2 additions & 2 deletions .github/styles/Google/Semicolons.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
extends: existence
message: "Use semicolons judiciously."
link: 'https://developers.google.com/style/semicolons'
link: "https://developers.google.com/style/semicolons"
nonword: true
scope: sentence
level: error
tokens:
- ';'
- ";"
4 changes: 2 additions & 2 deletions .github/styles/Google/Slang.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
extends: existence
message: "Don't use internet slang abbreviations such as '%s'."
link: 'https://developers.google.com/style/abbreviations'
link: "https://developers.google.com/style/abbreviations"
ignorecase: true
level: error
tokens:
- 'tl;dr'
- "tl;dr"
- ymmv
- rtfm
- imo
Expand Down
6 changes: 3 additions & 3 deletions .github/styles/Google/Spacing.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
extends: existence
message: "'%s' should have one space."
link: 'https://developers.google.com/style/sentence-spacing'
link: "https://developers.google.com/style/sentence-spacing"
level: error
nonword: true
tokens:
- '[a-z][.?!] {2,}[A-Z]'
- '[a-z][.?!][A-Z]'
- "[a-z][.?!] {2,}[A-Z]"
- "[a-z][.?!][A-Z]"
2 changes: 1 addition & 1 deletion .github/styles/Google/Spelling.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends: existence
message: "In general, use American spelling instead of '%s'."
link: 'https://developers.google.com/style/spelling'
link: "https://developers.google.com/style/spelling"
ignorecase: true
level: error
tokens:
Expand Down
2 changes: 1 addition & 1 deletion .github/styles/Google/Units.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends: existence
message: "Put a nonbreaking space between the number and the unit in '%s'."
link: 'https://developers.google.com/style/units-of-measure'
link: "https://developers.google.com/style/units-of-measure"
nonword: true
level: error
tokens:
Expand Down
Loading

0 comments on commit ad76e28

Please sign in to comment.