Skip to content
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

ci: update vale #566

Merged
merged 1 commit into from
Jan 24, 2024
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
11 changes: 4 additions & 7 deletions .github/workflows/vale.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linting
name: Vale
on:
push:
branches:
Expand All @@ -10,17 +10,14 @@ on:
- "docs/**"

jobs:
prose:
vale:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Vale
uses: errata-ai/vale-action@c4213d4de3d5f718b8497bd86161531c78992084 # v2.0.1
uses: errata-ai/vale-action@3f7188c866bcb3259339a09f517d7c4a8838303c # reviewdog
with:
files: docs/docs
env:
# Required, set by GitHub actions automatically:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
fail_on_error: true
1 change: 1 addition & 0 deletions .vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Vocab = edgeless

[*.md]
BasedOnStyles = Vale, Microsoft, Google
Vale.Terms = NO

# decrease to suggestion
Microsoft.Foreign = suggestion # conflicts with Microsoft.Contractions
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/getting-started/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ It can also be used as a root of trust for [authenticating your confidential app
:::info

By default the certificate is saved to `$XDG_CONFIG_HOME/marblerun/coordinator-cert.pem`,
or `$HOME/.config/marblerun/coordinator-cert.pem` if `$XDG_CONFIG_HOME` is not set.
or `$HOME/.config/marblerun/coordinator-cert.pem` if `$XDG_CONFIG_HOME` isn't set.
Subsequent CLI commands will try loading the certificate from that location.
Use the `--coordinator-cert` flag to choose your own location to save or load the certificate.

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/workflows/set-manifest.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This ensures you are always talking to the same instance the manifest was upload
:::info

By default the certificate is saved to `$XDG_CONFIG_HOME/marblerun/coordinator-cert.pem`,
or `$HOME/.config/marblerun/coordinator-cert.pem` if `$XDG_CONFIG_HOME` is not set.
or `$HOME/.config/marblerun/coordinator-cert.pem` if `$XDG_CONFIG_HOME` isn't set.
Subsequent CLI commands will try loading the certificate from that location.
Use the `--coordinator-cert` flag to choose your own location to save or load the certificate.

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/workflows/verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Specifically, the Coordinator exposes the `/quote` endpoint that returns a quote

## Verifying the quote and the manifest using the CLI

The `marblerun manifest verify` command uses the two endpoints described above. It first verifies the Coordinator's quote according to a given policy and then checks that the expected `manifest.json` is in effect.
The `marblerun manifest verify` command uses the two endpoints described above. It first verifies the Coordinator's quote according to a given policy and then checks that the expected `manifest.json` is in effect.

:::info

Expand All @@ -27,7 +27,7 @@ If successful, the certificates of the root CA and the intermediate CA are saved
:::info

By default, the command will save the Coordinators certificate chain to `$XDG_CONFIG_HOME/marblerun/coordinator-cert.pem`,
or `$HOME/.config/marblerun/coordinator-cert.pem` if `$XDG_CONFIG_HOME` is not set.
or `$HOME/.config/marblerun/coordinator-cert.pem` if `$XDG_CONFIG_HOME` isn't set.
Subsequent CLI commands will try loading the certificate from that location.
Use the `--coordinator-cert` flag to choose your own location to save or load the certificate.

Expand Down
12 changes: 0 additions & 12 deletions docs/styles/Google/OptionalPlurals.yml

This file was deleted.

4 changes: 3 additions & 1 deletion docs/styles/Google/Spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ ignorecase: true
level: warning
tokens:
- '(?:\w+)nised?'
- '(?:\w+)logue'
- 'colour'
- 'labour'
- 'centre'
6 changes: 3 additions & 3 deletions docs/styles/Google/Units.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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:
- \d+(?:B|kB|MB|GB|TB)
- \d+(?:ns|ms|s|min|h|d)
- \b\d+(?:B|kB|MB|GB|TB)
- \b\d+(?:ns|ms|s|min|h|d)
2 changes: 1 addition & 1 deletion docs/styles/Microsoft/Contractions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ swap:

should not: shouldn't

'that is(?!\.)': that's
"that is(?![.,])": that's
'that''s(?=\.)': that is

'they are(?!\.)': they're
Expand Down
3 changes: 2 additions & 1 deletion docs/styles/Microsoft/Foreign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ action:
swap:
'\b(?:eg|e\.g\.)[\s,]': for example
'\b(?:ie|i\.e\.)[\s,]': that is

'\b(?:viz\.)[\s,]': namely
'\b(?:ergo)[\s,]': therefore
7 changes: 7 additions & 0 deletions docs/styles/Microsoft/Plurals.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends: existence
message: "Don't add '%s' to a singular noun. Use plural instead."
ignorecase: true
level: error
link: https://learn.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/s/s-es
raw:
- '\(s\)|\(es\)'
10 changes: 4 additions & 6 deletions docs/styles/Microsoft/Terms.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
extends: substitution
message: "Prefer '%s' over '%s'."
# term preference should be based on microsoft style guide, such as
link: https://learn.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/a/adapter
level: warning
ignorecase: true
action:
Expand All @@ -24,10 +26,8 @@ swap:
anti-spyware: antispyware
anti-virus: antivirus
appendixes: appendices
artificial intelligence: artificial intelligence
assembler: assembly language
bpp: bpp
bps: bps
artificial intelligence: AI
'(?:assembler|machine language)': assembly language
caap: CaaP
conversation-as-a-platform: conversation as a platform
eb: EB
Expand All @@ -39,5 +39,3 @@ swap:
pb: PB
tb: TB
zb: ZB
viz: namely
ergo: therefore
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
aesm
AESM
Alibaba
[Aa]rgv
argv
auto-injection
[Cc]loud
cloud
collateral
config
CPU
Expand All @@ -12,33 +11,32 @@ emojivoto
Env
Equinix
glibc
[Gg]ramine
Gramine
hardcode
helloworld
hostname
IP
Istio
kubectl
Linkerd
minikube
MarbleRun
marblerun
minikube
namespace
nginx
nonce
Occlum
[Pp]remain
precheck
runtime
premain
Redis
runtime
subcommand
Tensorflow
toleration
toolchain
uncomment
updatable
vSphere
VM
vSphere
walkthrough
Xeon
XORed