Fix jenkinsfile
All checks were successful
Flare Microsystems Git/FlarePublic/gitea-themes/pipeline/pr-master This commit looks good
All checks were successful
Flare Microsystems Git/FlarePublic/gitea-themes/pipeline/pr-master This commit looks good
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -8,7 +8,7 @@ pipeline {
|
|||||||
// Check for spaces or mixed indentation
|
// Check for spaces or mixed indentation
|
||||||
sh '''
|
sh '''
|
||||||
# Define file extensions to check
|
# Define file extensions to check
|
||||||
FILE_EXTENSIONS="css,json,js,java,htm,html,cpp,c,h,p,py,go,cs"
|
FILE_EXTENSIONS="css|json|js|java|htm|html|cpp|c|h|p|py|go|cs"
|
||||||
|
|
||||||
echo "Checking for spaces in indentation..."
|
echo "Checking for spaces in indentation..."
|
||||||
grep -nrP '^[ ]+' --include="*.{$FILE_EXTENSIONS}" . || echo "No lines with spaces found."
|
grep -nrP '^[ ]+' --include="*.{$FILE_EXTENSIONS}" . || echo "No lines with spaces found."
|
||||||
|
|||||||
Reference in New Issue
Block a user