repo.or.cz
/
samba.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
s4:kdc: Add helper variable indicating whether we think we are performing a keytab...
[samba.git]
/
script
/
codespell.sh
blob
60e0eba27373184c39d5db7f5b4d2644a99f9c27
1
#!/bin/bash
2
#
3
# Check code spelling
4
5
if
[
$#
-lt
1
];
then
6
echo
"Usage: $(basename "
${0}
") DIR"
7
exit
1
8
fi
9
10
DIR
=
"
${1}
"
11
12
codespell
"
${DIR}
"
13
ret
=
$?
14
15
if
[
${ret}
-ne
0
];
then
16
echo
17
echo
"Fix code spelling issues. If it detected false positives"
\
18
"please update .codespellignore."
19
fi
20
21
exit
${ret}