gitlab-ci: check all .yml files with yamllint
fdroidserver!721
This commit is contained in:
parent
e3a48e6dfd
commit
2346b1565b
@ -7,7 +7,7 @@ lint:
|
|||||||
- schedules
|
- schedules
|
||||||
- pipelines
|
- pipelines
|
||||||
before_script:
|
before_script:
|
||||||
- printf "Package\x3a androguard fdroidserver python3-asn1crypto python3-ruamel.yaml\nPin\x3a release a=stretch-backports\nPin-Priority\x3a 500\n" > /etc/apt/preferences.d/debian-stretch-backports.pref
|
- printf "Package\x3a androguard fdroidserver python3-asn1crypto python3-ruamel.yaml yamllint\nPin\x3a release a=stretch-backports\nPin-Priority\x3a 500\n" > /etc/apt/preferences.d/debian-stretch-backports.pref
|
||||||
- echo "deb http://deb.debian.org/debian/ stretch-backports main" > /etc/apt/sources.list.d/backports.list
|
- echo "deb http://deb.debian.org/debian/ stretch-backports main" > /etc/apt/sources.list.d/backports.list
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get -qy dist-upgrade
|
- apt-get -qy dist-upgrade
|
||||||
@ -33,7 +33,8 @@ lint:
|
|||||||
fi;
|
fi;
|
||||||
done;
|
done;
|
||||||
set -x;
|
set -x;
|
||||||
apt-get install python3-colorama;
|
apt-get install python3-colorama yamllint;
|
||||||
|
for f in $files; do [[ $f == *'.yml' ]] && yamllint "$f"; done;
|
||||||
./tools/check-git-repo-availability.py $files;
|
./tools/check-git-repo-availability.py $files;
|
||||||
./tools/audit-gradle.py $CHANGED;
|
./tools/audit-gradle.py $CHANGED;
|
||||||
set +x;
|
set +x;
|
||||||
|
28
.yamllint
Normal file
28
.yamllint
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
extends: default
|
||||||
|
|
||||||
|
rules:
|
||||||
|
braces:
|
||||||
|
level: warning
|
||||||
|
max-spaces-inside: 1
|
||||||
|
brackets:
|
||||||
|
level: warning
|
||||||
|
max-spaces-inside: 1
|
||||||
|
colons:
|
||||||
|
level: warning
|
||||||
|
commas:
|
||||||
|
level: warning
|
||||||
|
comments: disable
|
||||||
|
comments-indentation: disable
|
||||||
|
document-start: disable
|
||||||
|
empty-lines: disable
|
||||||
|
hyphens:
|
||||||
|
level: warning
|
||||||
|
indentation:
|
||||||
|
level: warning
|
||||||
|
indent-sequences: consistent
|
||||||
|
line-length: disable
|
||||||
|
new-line-at-end-of-file:
|
||||||
|
level: warning
|
||||||
|
trailing-spaces:
|
||||||
|
level: warning
|
||||||
|
truthy: disable
|
Loading…
x
Reference in New Issue
Block a user