Skip to content

Commit 7c7bd55

Browse files
Ravleneread
andcommitted
Merge branch 'eread/update-linting-configuration-from-gitlab-project-docs' into 'main'
Update linting configuration from GitLab project See merge request https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/6352 Merged-by: Marcel Amirault <mamirault@gitlab.com> Approved-by: Marcel Amirault <mamirault@gitlab.com> Co-authored-by: Evan Read <eread@gitlab.com>
2 parents d68a190 + 485dcfa commit 7c7bd55

15 files changed

Lines changed: 172 additions & 47 deletions

.markdownlint-cli2.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ config:
7171
"Git",
7272
"Gitaly",
7373
"GitHub",
74+
"gitlab-duo",
7475
"gitlab.vim",
76+
"GitLab chart",
7577
"GitLab Geo",
7678
"GitLab Monitor",
7779
"GitLab Operator",
@@ -149,6 +151,7 @@ config:
149151
"SpotBugs",
150152
"SSH",
151153
"Tiller",
154+
"Tiptap",
152155
"TOML",
153156
"Trello",
154157
"Trello Power-Ups",

docs/.vale/gitlab_base/British.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ swap:
3737
civilise: civilize
3838
colour: color
3939
cosy: cozy
40+
customise: customize
41+
customised: customized
42+
customising: customizing
4043
cypher: cipher
4144
dependant: dependent
4245
defence: defense
@@ -61,6 +64,9 @@ swap:
6164
honour: honor
6265
initialled: initialed
6366
initialling: initialing
67+
initialise: initialize
68+
initialised: initialized
69+
initialising: initializing
6470
instil: instill
6571
jewellery: jewelry
6672
labelling: labeling

docs/.vale/gitlab_base/ListIndentation.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: gitlab_base.ListIndentation
33
description: |
44
Ensures content nested in lists is spaced correctly.
55
extends: existence
6-
message: "Items nested under an ordered list must be indented three spaces. Items nested under an unordered list must be indented two spaces."
6+
message: "Text or new list items nested under an ordered list must be indented three spaces, and indented two spaces for an unordered list."
77
link: https://docs.gitlab.com/development/documentation/styleguide/#nesting-inside-a-list-item
88
vocab: false
99
level: error
@@ -13,6 +13,7 @@ scope: raw
1313
tokens:
1414
- '^1\. [^\n]*\n\n?( | | )[`\w-]'
1515
- '^- [^\n]*\n\n?( | | )[`\w-]'
16+
- '^1\..*\n[a-zA-Z\[]'
1617

1718
# Regex guide:
1819
#

docs/.vale/gitlab_base/PossessiveProperNouns.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ tokens:
2323
- Google Cloud's
2424
- Google's
2525
- Microsoft's
26-
- Nvidia's
26+
- NVIDIA's
2727
- Oracle's
2828
- Red Hat's
2929
- RSpec's

docs/.vale/gitlab_base/SubstitutionWarning.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: gitlab_base.SubstitutionWarning
33
description: |
44
Checks for misused terms or common shorthand that should not be used at GitLab, but can't be flagged as errors. Substitutions.yml also exists.
55
extends: substitution
6-
message: "Use '%s' instead of '%s' when possible."
6+
message: "Use '%s' instead of '%s'."
77
link: https://docs.gitlab.com/development/documentation/styleguide/word_list/
88
vocab: false
99
level: warning
@@ -34,6 +34,8 @@ swap:
3434
dialog box: "dialog"
3535
distro: "distribution"
3636
docs: "documentation"
37+
(?<!GitLab )(?<!Cisco )(?<!Fix (pipeline )?with )(?<!Generate MR with )Duo: "GitLab Duo"
38+
DAP: "GitLab Duo Agent Platform"
3739
e-mail: "email"
3840
emojis: "emoji"
3941
ex: "for example"

docs/.vale/gitlab_base/spelling-exceptions.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ accessor
22
accessors
33
ACLs
44
Adafruit
5+
agentic
56
Agentic
67
Airbnb
78
Airtable
@@ -105,6 +106,7 @@ Bootsnap
105106
bot
106107
bot's
107108
Bottlerocket
109+
Brevo
108110
browsable
109111
bugfix
110112
bugfixed
@@ -137,6 +139,7 @@ captcha
137139
CAPTCHAs
138140
Capybara
139141
Casdoor
142+
Ccache
140143
CDNs
141144
CE
142145
CentOS
@@ -174,12 +177,15 @@ CMKs
174177
CNAs
175178
CNs
176179
Cobertura
180+
CocoaPods
177181
Codeberg
178182
Codeception
179183
Codecov
184+
codemods
180185
codenames
181186
Codepen
182187
CodeSandbox
188+
Codestral
183189
Codey
184190
Cognito
185191
Coinbase
@@ -198,6 +204,7 @@ Conda
198204
config
199205
Configs
200206
Consul
207+
containerd
201208
Contentful
202209
Corosync
203210
corpuses
@@ -417,6 +424,7 @@ gitlabsos
417424
Gitleaks
418425
Gitpod
419426
Gitter
427+
glab
420428
GLab
421429
globals
422430
globbing
@@ -437,6 +445,7 @@ Gradle
437445
Grafana
438446
Grafonnet
439447
gravatar
448+
Grayson
440449
Grype
441450
GUIs
442451
Gzip
@@ -449,6 +458,7 @@ hardcoded
449458
hardcodes
450459
HashiCorp
451460
Haswell
461+
Heartbleed
452462
heatmap
453463
heatmaps
454464
Helm
@@ -475,6 +485,7 @@ iCalendar
475485
iCloud
476486
IDE's
477487
idempotence
488+
idempotency
478489
IDEs
479490
idmapper
480491
Iglu
@@ -507,6 +518,7 @@ Javafuzz
507518
JavaScript
508519
Jenkins
509520
Jenkinsfile
521+
JFrog
510522
Jira
511523
Jitsu
512524
jq
@@ -548,6 +560,7 @@ Kroki
548560
kubeconfig
549561
Kubecost
550562
kubectl
563+
Kubelet
551564
Kubernetes
552565
Kubesec
553566
Kucoin
@@ -563,6 +576,7 @@ ldapsearch
563576
Lefthook
564577
Leiningen
565578
Lemmy
579+
Libbehave
566580
libFuzzer
567581
Libgcrypt
568582
Libravatar
@@ -638,6 +652,7 @@ mitmproxy
638652
mixin
639653
mixins
640654
MLflow
655+
MLOps
641656
Mmap
642657
mockup
643658
mockups
@@ -677,6 +692,7 @@ NuGet
677692
nullability
678693
nullable
679694
Nurtch
695+
NVIDIA
680696
NVMe
681697
nyc
682698
OAuth
@@ -691,6 +707,7 @@ Okta
691707
Ollama
692708
OLM
693709
OmniAuth
710+
Ona
694711
onboarding
695712
OpenID
696713
OpenShift
@@ -739,6 +756,7 @@ Pipfile
739756
Pipfiles
740757
Piwik
741758
plaintext
759+
pnpm
742760
podman
743761
Poedit
744762
polyfill
@@ -774,6 +792,7 @@ prepopulate
774792
prepopulated
775793
presentationals
776794
Prettifier
795+
Prioritizer
777796
Pritaly
778797
Priyanka
779798
profiler
@@ -787,11 +806,13 @@ proxyable
787806
proxying
788807
pseudocode
789808
pseudonymization
809+
pseudonymize
790810
pseudonymized
791811
pseudonymizer
792812
Pulumi
793813
Puma
794814
Pumble
815+
Pydantic
795816
Pylint
796817
PyPI
797818
pytest
@@ -935,6 +956,7 @@ SFCs
935956
sharded
936957
sharding
937958
SHAs
959+
Shellshock
938960
shfmt
939961
Shippo
940962
Shopify
@@ -1052,11 +1074,13 @@ syslog
10521074
systemd
10531075
tablespace
10541076
tablespaces
1077+
Tailscale
10551078
Tamland
10561079
tanuki
10571080
taskscaler
10581081
tcpdump
10591082
teardown
1083+
Telesign
10601084
templated
10611085
Thanos
10621086
thoughtbot
@@ -1082,6 +1106,7 @@ toolkits
10821106
toolset
10831107
tooltip
10841108
tooltips
1109+
Traefik
10851110
transactionally
10861111
transpile
10871112
transpiled
@@ -1209,6 +1234,7 @@ untarred
12091234
untrack
12101235
untracked
12111236
untrusted
1237+
unvalidated
12121238
unverified
12131239
unverifies
12141240
unverify

docs/.vale/gitlab_docs/AlertBoxStyle.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: gitlab_docs.HTMLShortcodes
3+
description: |
4+
If HTML code is immediately followed by Hugo shortcodes, add a newline between them.
5+
extends: existence
6+
message: "If HTML code is immediately followed by Hugo shortcodes, add a newline between them."
7+
link: https://docs.gitlab.com/development/documentation/styleguide/#shortcodes
8+
vocab: false
9+
ignorecase: true
10+
level: error
11+
nonword: true
12+
scope: raw
13+
tokens:
14+
- '>\n\{\{<'

docs/.vale/gitlab_docs/HistoryItems.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ nonword: true
1111
scope: raw
1212
tokens:
1313
- '\{\{< history >\}\}\n\n[^-]'
14-
- '(^#+[^\n]*|\{\{< /details >\}\})\n\n>'
1514
- '^##.*?\n\n- \[?(Introduced|Changed|Renamed|Updated|Improved|Generally)'

docs/.vale/gitlab_docs/NonStandardListDashes.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)