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 cab450235b - Show all commits

6
Jenkinsfile vendored
View File

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