Artem V. Ageev 8 месяцев назад
Родитель
Сommit
31ed66edb5
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      .github/workflows/make.sh

+ 6 - 0
.github/workflows/make.sh

@@ -72,6 +72,12 @@ function priv_lazbuild
         fi 1>&2
         rm "${TMP[out]}"
     done < <(find "${VAR[src]}" -type 'f' -name '*.lpi' | sort)
+    find "${VAR[src]}" -type 'f' -name '*.py' -printf '\033[32m\tlint files.py\t%p\033[0m\n' -exec \
+        python3 -m pylint {} + 1>&2
+    find "${VAR[src]}" -type 'f' -name '*.c' -printf '\033[32m\tlint files.c\t%p\033[0m\n' -exec \
+        cppcheck --language=c --enable=warning,style --template=gcc {} + 1>&2
+    find "${VAR[src]}" -type 'f' -name '*.sh' -printf '\033[32m\tlint files.sh\t%p\033[0m\n' -exec \
+        shellcheck --external-sources {} + 1>&2
     exit "${errors}"
 )