Use wine paths by default even if non-existent
[carla.git] / .travis / script-pylint.sh
blobcbc81997f5ee3fb566ff8b8f5e303f9a70764f03
1 #!/bin/bash
3 set -e
5 make -C source/frontend
7 ln -sf ../patchcanvas source/frontend/widgets/
9 if which pylint3 >/dev/null; then
10 pylint='pylint3'
11 else
12 pylint='pylint'
15 # widget code, check all errors
16 ${pylint} \
17 --extension-pkg-whitelist=PyQt5 \
18 --max-attributes=25 \
19 --max-line-length=120 \
20 --max-locals=25 \
21 --max-statements=100 \
22 --enable=\
23 bad-continuation,\
24 len-as-condition \
25 --disable=\
26 bad-whitespace,\
27 broad-except,\
28 fixme,\
29 invalid-name,\
30 missing-docstring \
31 source/frontend/widgets/canvaspreviewframe.py \
32 source/frontend/widgets/racklistwidget.py
34 # main app code, ignore some errors
35 ${pylint} \
36 --extension-pkg-whitelist=PyQt5 \
37 --max-line-length=120 \
38 --disable=\
39 bad-whitespace,\
40 bare-except,\
41 blacklisted-name,\
42 duplicate-code,\
43 fixme,\
44 invalid-name,\
45 missing-docstring,\
46 too-few-public-methods,\
47 too-many-arguments,\
48 too-many-branches,\
49 too-many-instance-attributes,\
50 too-many-lines,\
51 too-many-locals,\
52 too-many-public-methods,\
53 too-many-return-statements,\
54 too-many-statements,\
55 unused-argument,\
56 wrong-import-position \
57 source/frontend/carla_{app,backend,backend_qt,settings,shared,utils,widgets}.py
59 # code not updated yet
60 ${pylint} \
61 --extension-pkg-whitelist=PyQt5 \
62 -E \
63 source/frontend/carla_{database,host,skin}.py