aboutsummaryrefslogtreecommitdiff
path: root/contrib/ci/jobs/0-codespell/job.sh
blob: 875f919abe7fd28aae0861e5e0d96a473e4d68c0 (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
#!/bin/bash
set -exuo pipefail

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

skip=$(cat <<EOF
ABOUT-NLS
*/afl-tests/*
**/auditor/*.sql
**/templating/test-specs/*
*.bbl
*.bib
*build-aux*
*.bst
*.cache/*
*/cbdc-es.tex
*/cbdc-it.tex
*.cls
configure*
config.status
config.guess
*/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
*/keys/*
*key
*.latexmkrc
*libtool*
*.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
*/debian/tmp/**
*/debian/taler-exchange/**
*/debian/.debhelper/**
*.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'/,}