aboutsummaryrefslogtreecommitdiff
path: root/contrib/ci/jobs/0-codespell/job.sh
blob: 28f432399408984a516e8acbc41080f8f6b7ec11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/bin/bash
set -exuo pipefail

job_dir=$(dirname "${BASH_SOURCE[0]}")

skip=$(cat <<EOF
ABOUT-NLS
*/afl-tests/*
**/auditor/*.sql
*/debian/tmp/**
*.bbl
*.bib
*build-aux*
*.bst
*.cache/*
*/cbdc-es.tex
*/cbdc-it.tex
ChangeLog
*.cls
configure*
config.status
config.guess
depcomp
*/contrib/*
*/contrib/hellos/**
*.dat
*.deflate
*.doc
*/doc/*
**/doc/flows/main.de.tex
*/doc/texinfo.tex
*.docx
*.ecc
*.eot
*.epgz
*.eps
*.epub
**/ExchangeSelection/example.ts
*.fee
*.fees
*.file
**/fonts/**
*.gif
*/.git/**
*.gz
*/i18n/strings.ts
*.info
*.jpeg
*.jpg
*.??.json
*.json
*.json-*
*/keys/*
*key
*.latexmkrc
*libtool*
ltmain.sh
*.log
*/m4/*
*.m4
**/*.map
*.min.js
*.mp4
*.odg
*.ods
*.odt
*.pack.js
*.pdf
*.png
*.PNG
**/pnpm-lock.yaml
*.po
*.pptx
*.priv
**/rfc.bib
*.rpath
**/signing-key.asc
*.sqlite
*/src/anastasis-data.ts
**/*.svg
*.svg
*.tag
**/templating/mustach**
*/templating/test?/**
*/testcurl/test_tricky.c
*.tgz
*.ttf
*.ttf
**/valgrind.h
*/vpn/tests/**
*.wav
*.woff
*.woff2
*.xcf
*.xlsx
*.zkey
EOF
);

echo Current directory: `pwd`

codespell -I "${job_dir}"/dictionary.txt -S ${skip//$'\n'/,}