Skip to content

Commit

Permalink
Update Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Feb 19, 2024
1 parent ebf4c2c commit 5b1878d
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 29 deletions.
7 changes: 4 additions & 3 deletions Google/EmDash.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
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
- ' '
- trim
- " "
tokens:
- '\s[—–]\s'

13 changes: 0 additions & 13 deletions Google/EnDash.yml

This file was deleted.

7 changes: 5 additions & 2 deletions Google/Exclamation.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
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
action:
name: remove
name: edit
params:
- trim_right
- "!"
tokens:
- '\w+!(?:\s|$)'
6 changes: 3 additions & 3 deletions 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: warning
scope: heading
action:
name: edit
params:
- remove
- '.'
- trim_right
- "."
tokens:
- '[a-z0-9][.]\s*$'
10 changes: 5 additions & 5 deletions 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
- '-'
- ' '
- regex
- "-"
- " "
tokens:
- '\s[^\s-]+ly-'
- '\b[^\s-]+ly-\w+\b'
6 changes: 3 additions & 3 deletions 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)'
- trim_right
- "(s)"
tokens:
- '\b\w+\(s\)'

0 comments on commit 5b1878d

Please sign in to comment.