-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from m4sterbunny/update-vale
Sets up Vale
- Loading branch information
Showing
96 changed files
with
4,440 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Docs GitHub actions | ||
|
||
https://github.com/Consensys/docs-gha acts as a single source of truth (sot) for actions that keep | ||
the docs sites shiny. | ||
|
||
## Work in progress | ||
|
||
### ES lint | ||
|
||
ES lint ignores .md and .mdx. Need to test whether it can lint codeblocks within those files. | ||
|
||
### Vale | ||
|
||
[Vale](https://vale.sh/docs/) is currently [WIP for use locally and as GH action](spelling/README.md). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Vale | ||
|
||
[Vale](https://vale.sh/docs/) is currently WIP for use locally and as GH action. | ||
|
||
## Get started with Vale | ||
|
||
https://passo.uno/posts/first-steps-with-the-vale-prose-linter/ provides a decent quickstart (but | ||
get [install from main docs](https://vale.sh/docs/vale-cli/installation/)). | ||
|
||
|
||
## Vale commands | ||
|
||
Grab the to-date version of a style package referenced in the vale.ini with: | ||
|
||
```bash | ||
vale sync | ||
``` | ||
|
||
> Microsoft is sourced from https://github.com/errata-ai/Microsoft | ||
To run Vale against all relevant files in repo, use: | ||
|
||
```bash | ||
vale . | ||
``` | ||
|
||
Or pass Vale the path to the file you want to lint, e.g. lint this file with: | ||
|
||
```bash | ||
vale README.md | ||
``` | ||
|
||
> For help with Regex expression building use [Regex101](https://regex101.com). | ||
Vale is currently wip. The Vale resources and project-word resources from several sites will | ||
be compiled to this one sot. | ||
|
||
## Vale and Yaml? | ||
|
||
If API specs are managed as YAML files, need to test whether Vale can handle linting YAMLs. | ||
|
||
## Testing Vale Here | ||
|
||
This heading should trigger warning for non-compliance with sentence case. Metamask should upset | ||
Vale too. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
extends: existence | ||
message: Use 'AM' or 'PM' (preceded by a space). | ||
link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/date-time-terms | ||
level: error | ||
nonword: true | ||
tokens: | ||
- '\d{1,2}[AP]M' | ||
- '\d{1,2} ?[ap]m' | ||
- '\d{1,2} ?[aApP]\.[mM]\.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
extends: existence | ||
message: "Don't use language (such as '%s') that defines people by their disability." | ||
link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/accessibility-terms | ||
level: suggestion | ||
ignorecase: true | ||
tokens: | ||
- a victim of | ||
- able-bodied | ||
- an epileptic | ||
- birth defect | ||
- crippled | ||
- differently abled | ||
- disabled | ||
- dumb | ||
- handicapped | ||
- handicaps | ||
- healthy person | ||
- hearing-impaired | ||
- lame | ||
- maimed | ||
- mentally handicapped | ||
- missing a limb | ||
- mute | ||
- non-verbal | ||
- normal person | ||
- sight-impaired | ||
- slow learner | ||
- stricken with | ||
- suffers from | ||
- vision-impaired |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
extends: conditional | ||
message: "'%s' has no definition." | ||
link: https://docs.microsoft.com/en-us/style-guide/acronyms | ||
level: suggestion | ||
ignorecase: false | ||
# Ensures that the existence of 'first' implies the existence of 'second'. | ||
first: '\b([A-Z]{3,5})\b' | ||
second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{3,5})\)' | ||
# ... with the exception of these: | ||
exceptions: | ||
- API | ||
- ASP | ||
- CLI | ||
- CPU | ||
- CSS | ||
- CSV | ||
- DEBUG | ||
- DOM | ||
- DPI | ||
- FAQ | ||
- GCC | ||
- GDB | ||
- GET | ||
- GPU | ||
- GTK | ||
- GUI | ||
- HTML | ||
- HTTP | ||
- HTTPS | ||
- IDE | ||
- JAR | ||
- JSON | ||
- JSX | ||
- LESS | ||
- LLDB | ||
- NET | ||
- NOTE | ||
- NVDA | ||
- OSS | ||
- PATH | ||
- PHP | ||
- POST | ||
- RAM | ||
- REPL | ||
- RSA | ||
- SCM | ||
- SCSS | ||
- SDK | ||
- SQL | ||
- SSH | ||
- SSL | ||
- SVG | ||
- TBD | ||
- TCP | ||
- TODO | ||
- URI | ||
- URL | ||
- USB | ||
- UTF | ||
- XML | ||
- XSS | ||
- YAML | ||
- ZIP |
Oops, something went wrong.