Skip to content

Commit 321b353

Browse files
committed
align cspell config between all bash projects
- align cspell config between all bash projects - generate pre-commit for github on pipeline side - removed plantuml generated images
1 parent acf6dda commit 321b353

21 files changed

Lines changed: 175 additions & 403 deletions

.cspell/bash.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ lastpipe
1313
ldflags
1414
mktemp
1515
noargs
16-
noninteractive
1716
NONINTERACTIVE
17+
noninteractive
1818
nullglob
1919
Pathchk
2020
pipefail
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Aftertabs
22
allowInts
33
allowStrs
4+
CPES
45
cpes
56
crashlytics
67
distro
@@ -15,6 +16,7 @@ golangci
1516
GRYPE
1617
gtpl
1718
ignoreFuncs
19+
Lastmod
1820
logrus
1921
pageinfo
2022
Println
@@ -25,5 +27,5 @@ shellcheckrc
2527
structslop
2628
tabwidth
2729
tagname
28-
unindexed
2930
UNINDEXED
31+
unindexed

.cspell/githubWorkflow.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ goimports
77
GOTOOLCHAIN
88
gpgsign
99
precommit
10-
Sarif
1110
SARIF
11+
Sarif
1212
sarif
13-
Semgrep
1413
SEMGREP
14+
Semgrep
1515
semgrep
1616
shellcheckrc
1717
signingkey

.cspell/golangYml.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ GOARCH
1616
gochecknoglobals
1717
goconst
1818
gocritic
19-
gocritic
2019
gocyclo
2120
goerr
2221
gofumpt

.cspell/lintersConfig.txt

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Bazyli
2+
bbwe
3+
Brzóska
4+
Chastanet
5+
Checkstyle
6+
codesniffer
7+
containerd
8+
DISTRO
9+
distro
10+
DOCKERHUB
11+
fasd
12+
fchastanet
13+
fchastanetl
14+
frontmatter
15+
GRYPE
16+
hjson
17+
inet
18+
JSONLINT
19+
kics
20+
mbstring
21+
megalinter
22+
meslo
23+
nameserver
24+
nodoc
25+
oxsecurity
26+
Parens
27+
pipefail
28+
plantuml
29+
powerlevel
30+
precommit
31+
RUBOCOP
32+
shellcheck
33+
shellcheckrc
34+
shfmt
35+
sudoer
36+
tabwidth
37+
tagname
38+
TRIVY
39+
TRUFFLEHOG
40+
undelete
41+
usermod
42+
venv
43+
wekyb

.cspell/markdown.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ cuelang
44
distroless
55
DOCKERHUB
66
inlines
7+
lastmod
78
Michał
89
noarchive
910
nocache

.cspell/softwares.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ fchastanet
1717
François
1818
github
1919
gitleaks
20-
gofmt
2120
Gofmt
21+
gofmt
2222
golint
2323
goplantuml
2424
gtpl
@@ -37,8 +37,8 @@ pipx
3737
plantuml
3838
podman
3939
promlinter
40-
shellcheck
4140
SHELLCHECK
41+
shellcheck
4242
shellcheckrc
4343
shfmt
4444
structslop

.github/preCommitGeneration.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ awk \
1313
sed -i -E \
1414
-e '0,/fail_fast: true/s//fail_fast: false/' \
1515
-e 's/stages: \[\] # GITHUB/stages: \[manual\] # GITHUB/' \
16+
-e 's/shellcheckLint/shellcheckLintGithub/' \
1617
.pre-commit-config-github.yaml

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ jobs:
197197
198198
- uses: fchastanet/github-action-setup-shfmt@v4.0.0
199199

200+
- name: Transform pre-commit config for GitHub
201+
if: ${{ success() }}
202+
run: .github/preCommitGeneration.sh
203+
200204
- name: Run pre-commit
201205
uses: pre-commit/action@v3.0.1
202206
id: preCommit

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,6 @@ node_modules/
8383

8484
examples/generated
8585
megalinter-reports/
86+
87+
.cspell/forbidden.txt
88+
.pre-commit-config-github.yaml

0 commit comments

Comments
 (0)