Skip to content

Update Vale rules #3043

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
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