feature/fix_linter_fuckup #4

Merged
Vulpovile merged 31 commits from feature/fix_linter_fuckup into master 2025-01-12 00:11:02 +00:00
4 changed files with 19 additions and 15 deletions
Showing only changes of commit 0bbceea474 - Show all commits

5
Jenkinsfile vendored
View File

@@ -7,11 +7,12 @@ pipeline {
script {
// Check for spaces or mixed indentation
sh '''
if grep -P "^[ ]+" -r --include=*.css ; then
EXTENSIONS={css,js,json,java,bat,ps1,py,cs,html,c,cpp,h,hpp,cmd}
if grep -P "^[ ]+" -r --include=*.$EXTENSIONS ; then
echo "Error: Files contain spaces instead of tabs for indentation."
exit 1
fi
if grep -P "^\\t+ +" -r --include=*.css ; then
if grep -P "^\\t+ +" -r --include=*.$EXTENSIONS ; then
echo "Error: Files contain mixed tabs and spaces for indentation."
exit 1
fi