ci: update vale

This commit is contained in:
Thomas Tendyck 2024-01-23 17:19:53 +01:00 committed by Thomas Tendyck
parent 6ae59bb986
commit ad5ff6e1bb
11 changed files with 59 additions and 59 deletions

View File

@ -12,7 +12,7 @@ on:
- "docs/**" - "docs/**"
jobs: jobs:
prose: vale:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- name: Checkout - name: Checkout
@ -21,11 +21,7 @@ jobs:
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
- name: Vale - name: Vale
uses: errata-ai/vale-action@c4213d4de3d5f718b8497bd86161531c78992084 # tag=v2.0.1 uses: errata-ai/vale-action@3f7188c866bcb3259339a09f517d7c4a8838303c # tag=reviewdog
with: with:
version: 2.17.0
files: docs/docs files: docs/docs
env: fail_on_error: true
# 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}}

View File

@ -1,13 +1,9 @@
StylesPath = docs/styles StylesPath = docs/styles
Vocab = constellation Vocab = edgeless
# IgnoredScopes specifies inline-level HTML tags to ignore.
# These tags may occur in an active scope (unlike SkippedScopes, skipped entirely) but their content still will not raise any alerts.
# Default: ignore `code` and `tt`.
IgnoredScopes = code, tt, img
[*.md] [*.md]
BasedOnStyles = Vale, Microsoft, Google BasedOnStyles = Vale, Microsoft, Google
Vale.Terms = NO
# decrease to suggestion # decrease to suggestion
Microsoft.Foreign = suggestion # conflicts with Microsoft.Contractions Microsoft.Foreign = suggestion # conflicts with Microsoft.Contractions

View File

@ -46,20 +46,20 @@ Constellation supports the following VM types:
<tabs groupId="csp"> <tabs groupId="csp">
<tabItem value="azure" label="Azure"> <tabItem value="azure" label="Azure">
By default, Constellation uses `Standard_DC4as_v5` CVMs (4 vCPUs, 16 GB RAM) to create your cluster. Optionally, you can switch to a different VM type by modifying **instanceType** in the configuration file. For CVMs, any VM type with a minimum of 4 vCPUs from the [DCasv5 & DCadsv5](https://docs.microsoft.com/en-us/azure/virtual-machines/dcasv5-dcadsv5-series) or [ECasv5 & ECadsv5](https://docs.microsoft.com/en-us/azure/virtual-machines/ecasv5-ecadsv5-series) families is supported. By default, Constellation uses `Standard_DC4as_v5` CVMs (4 vCPUs, 16 GB RAM) to create your cluster. Optionally, you can switch to a different VM type by modifying `instanceType` in the configuration file. For CVMs, any VM type with a minimum of 4 vCPUs from the [DCasv5 & DCadsv5](https://docs.microsoft.com/en-us/azure/virtual-machines/dcasv5-dcadsv5-series) or [ECasv5 & ECadsv5](https://docs.microsoft.com/en-us/azure/virtual-machines/ecasv5-ecadsv5-series) families is supported.
You can also run `constellation config instance-types` to get the list of all supported options. You can also run `constellation config instance-types` to get the list of all supported options.
</tabItem> </tabItem>
<tabItem value="gcp" label="GCP"> <tabItem value="gcp" label="GCP">
By default, Constellation uses `n2d-standard-4` VMs (4 vCPUs, 16 GB RAM) to create your cluster. Optionally, you can switch to a different VM type by modifying **instanceType** in the configuration file. Supported are all machines with a minimum of 4 vCPUs from the [C2D](https://cloud.google.com/compute/docs/compute-optimized-machines#c2d_machine_types) or [N2D](https://cloud.google.com/compute/docs/general-purpose-machines#n2d_machines) family. You can run `constellation config instance-types` to get the list of all supported options. By default, Constellation uses `n2d-standard-4` VMs (4 vCPUs, 16 GB RAM) to create your cluster. Optionally, you can switch to a different VM type by modifying `instanceType` in the configuration file. Supported are all machines with a minimum of 4 vCPUs from the [C2D](https://cloud.google.com/compute/docs/compute-optimized-machines#c2d_machine_types) or [N2D](https://cloud.google.com/compute/docs/general-purpose-machines#n2d_machines) family. You can run `constellation config instance-types` to get the list of all supported options.
</tabItem> </tabItem>
<tabItem value="aws" label="AWS"> <tabItem value="aws" label="AWS">
By default, Constellation uses `m6a.xlarge` VMs (4 vCPUs, 16 GB RAM) to create your cluster. By default, Constellation uses `m6a.xlarge` VMs (4 vCPUs, 16 GB RAM) to create your cluster.
Optionally, you can switch to a different VM type by modifying **instanceType** in the configuration file. Optionally, you can switch to a different VM type by modifying `instanceType` in the configuration file.
If you are using the default attestation variant `awsSEVSNP`, you can use the instance types described in [AWS's AMD SEV-SNP docs](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snp-requirements.html). If you are using the default attestation variant `awsSEVSNP`, you can use the instance types described in [AWS's AMD SEV-SNP docs](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snp-requirements.html).
Please mind the region restrictions mentioned in the [Getting started](../getting-started/first-steps.md#create-a-cluster) section. Please mind the region restrictions mentioned in the [Getting started](../getting-started/first-steps.md#create-a-cluster) section.
@ -70,7 +70,7 @@ The Constellation CLI can also print the supported instance types with: `constel
</tabItem> </tabItem>
</tabs> </tabs>
Fill the desired VM type into the **instanceType** fields in the `constellation-conf.yml` file. Fill the desired VM type into the `instanceType` fields in the `constellation-conf.yml` file.
## Creating additional node groups ## Creating additional node groups

View File

@ -1,12 +0,0 @@
extends: existence
message: "Don't use plurals in parentheses such as in '%s'."
link: 'https://developers.google.com/style/plurals-parentheses'
level: error
nonword: true
action:
name: edit
params:
- remove
- '(s)'
tokens:
- '\b\w+\(s\)'

View File

@ -5,4 +5,6 @@ ignorecase: true
level: warning level: warning
tokens: tokens:
- '(?:\w+)nised?' - '(?:\w+)nised?'
- '(?:\w+)logue' - 'colour'
- 'labour'
- 'centre'

View File

@ -1,8 +1,8 @@
extends: existence extends: existence
message: "Put a nonbreaking space between the number and the unit in '%s'." 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 nonword: true
level: error level: error
tokens: tokens:
- \d+(?:B|kB|MB|GB|TB) - \b\d+(?:B|kB|MB|GB|TB)
- \d+(?:ns|ms|s|min|h|d) - \b\d+(?:ns|ms|s|min|h|d)

View File

@ -22,7 +22,7 @@ swap:
should not: shouldn't should not: shouldn't
'that is(?!\.)': that's "that is(?![.,])": that's
'that''s(?=\.)': that is 'that''s(?=\.)': that is
'they are(?!\.)': they're 'they are(?!\.)': they're

View File

@ -9,4 +9,5 @@ action:
swap: swap:
'\b(?:eg|e\.g\.)[\s,]': for example '\b(?:eg|e\.g\.)[\s,]': for example
'\b(?:ie|i\.e\.)[\s,]': that is '\b(?:ie|i\.e\.)[\s,]': that is
'\b(?:viz\.)[\s,]': namely
'\b(?:ergo)[\s,]': therefore

View File

@ -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\)'

View File

@ -1,5 +1,7 @@
extends: substitution extends: substitution
message: "Prefer '%s' over '%s'." 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 level: warning
ignorecase: true ignorecase: true
action: action:
@ -24,10 +26,8 @@ swap:
anti-spyware: antispyware anti-spyware: antispyware
anti-virus: antivirus anti-virus: antivirus
appendixes: appendices appendixes: appendices
artificial intelligence: artificial intelligence artificial intelligence: AI
assembler: assembly language '(?:assembler|machine language)': assembly language
bpp: bpp
bps: bps
caap: CaaP caap: CaaP
conversation-as-a-platform: conversation as a platform conversation-as-a-platform: conversation as a platform
eb: EB eb: EB
@ -39,5 +39,3 @@ swap:
pb: PB pb: PB
tb: TB tb: TB
zb: ZB zb: ZB
viz: namely
ergo: therefore

View File

@ -2,69 +2,81 @@ Affero
agent agent
Ansys Ansys
Asciinema Asciinema
ASG
auditable auditable
autoscaler autoscaler
[Aa]utoscaling autoscaling
AWS AWS
aws
backend backend
Bazel Bazel
benchmarked bootloader
[Bb]ootloader
Bootstrapper Bootstrapper
[Cc]loud cloud
config config
CPU
CRD
CSP
cyber cyber
datacenter datacenter
Datadog Datadog
deallocate deallocate
DEK
Dockerfile Dockerfile
Dynatrace Dynatrace
[Ee]mojivoto Emojivoto
etcd etcd
Filebeat Filebeat
Filestash Filestash
Filestore Filestore
filesystem
Fluentd Fluentd
frontend
Fulcio Fulcio
Mbps
Gbps Gbps
GCP GCP
gcp
Grype Grype
iam
IAM IAM
iodepth
initramfs initramfs
iodepth
IPSec
journald journald
[Kk]3s
Kata Kata
KEK
KMS
kubeadm kubeadm
kubectl kubectl
kubelet kubelet
libcryptsetup libcryptsetup
Logstash Logstash
Mbps
MicroK8s MicroK8s
[Mm]inikube
namespace namespace
Nginx Nginx
[Pp]laintext PCR
plaintext
proxied
QEMU
Rekor Rekor
resizable resizable
resourceGroup
rollout rollout
SBOM
sigstore sigstore
[Ss]uperset SSD
superset
Syft Syft
systemd systemd
Terraform
Tink Tink
[Uu]nencrypted TPM
unencrypted
unspoofable unspoofable
updatable updatable
UUID UUID
proxied vCPU
QEMU
virsh virsh
[Ww]alkthrough VM
walkthrough
whitepaper whitepaper
WireGuard WireGuard
Xeon Xeon