blob: 89db6ba3cf2c4ca8c9cf220be307039a7ae64519 (
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
|
#!/bin/bash
function lint {
echo "######################################################"
echo "## Running Linters ##"
echo "######################################################"
local status=0
echo "========================="
echo " flake8 "
echo "========================="
find . -name "*.py" -print0 | xargs -0 flake8
(( status = status + "$?" ))
echo ""
echo "========================="
echo " yamllint "
echo "========================="
find . -name "*.yaml" -print0 | xargs -0 yamllint
(( status = status + "$?" ))
echo ""
echo "========================="
echo " shellcheck "
echo "========================="
find . -name "*.sh" -print0 | xargs -0 shellcheck
(( status = status + "$?" ))
exit "$status"
}
lint
|