Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.3KB

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