Skip to content

Commit

Permalink
Update Vale rules (segmentio#3043)
Browse files Browse the repository at this point in the history
  • Loading branch information
markzegarelli authored Jun 15, 2022
1 parent 9133ca8 commit 28e20ee
Show file tree
Hide file tree
Showing 12 changed files with 60 additions and 8 deletions.
Empty file removed .github/Vocab/Marketing/accept.txt
Empty file.
Empty file removed .github/Vocab/Marketing/reject.txt
Empty file.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions .github/styles/segment/headings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
extends: capitalization
message: "'%s' should be in sentence case"
level: warning
scope: heading
match: $sentence
20 changes: 20 additions & 0 deletions .github/styles/segment/inclusivity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
extends: existence
message: Avoid the term '%s'
level: warning
code: false
ignorecase: true
tokens:
- appears to be
- arguably
- grandfather
- powow
- blacklist
- whitelist
- blackhat
- whitehat
- manned
- man-made
- master
- slave
- sanity check
- dummy
6 changes: 6 additions & 0 deletions .github/styles/segment/links copy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extends: existence
message: "Write meaningful link text."
level: warning
scope: link
raw:
- '\[?here\]\('
2 changes: 1 addition & 1 deletion .vale.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
StylesPath = vale-styles
StylesPath = .github/styles

Vocab = Docs

Expand Down
9 changes: 3 additions & 6 deletions src/utils/vale-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
title: Vale test
hidden: true
---
This file will test various Vale styles we have installed (e.g. this exclamation point!) Neat!
sdfsdfd

Links to docs should be relative, for example [here](https://www.segment.com/docs/connections).
Slave should flag, and so should grandfather.

For example, like [this](/docs/connections)
## Sentence Case Here

segment.com/docs

Here's an update.
![alt tag](/diagram-library/Elements.png)
5 changes: 5 additions & 0 deletions vale-styles/segment/headings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
extends: capitalization
message: "'%s' should be in sentence case"
level: warning
scope: heading
match: $sentence
20 changes: 20 additions & 0 deletions vale-styles/segment/inclusivity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
extends: existence
message: Avoid the term '%s'
level: warning
code: false
ignorecase: true
tokens:
- appears to be
- arguably
- grandfather
- powow
- blacklist
- whitelist
- blackhat
- whitehat
- manned
- man-made
- master
- slave
- sanity check
- dummy
1 change: 0 additions & 1 deletion vale-styles/segment/links.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
extends: existence
message: "Write meaningful link text."
link: https://docs.microsoft.com/en-us/style-guide/urls-web-addresses
level: warning
scope: link
raw:
Expand Down

0 comments on commit 28e20ee

Please sign in to comment.