feature/fix_linter_fuckup #4
@@ -1,3 +1,6 @@
|
||||
{
|
||||
"extends": "stylelint-config-standard"
|
||||
"extends": "stylelint-config-standard",
|
||||
"rules":{
|
||||
"color-function-notation": "legacy"
|
||||
}
|
||||
}
|
||||
|
||||
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@@ -6,17 +6,7 @@ pipeline {
|
||||
steps {
|
||||
script {
|
||||
// Check for spaces or mixed indentation
|
||||
sh '''
|
||||
if grep -P "^[ ]+" -r ./**/*.css; then
|
||||
echo "Error: Files contain spaces instead of tabs for indentation."
|
||||
exit 1
|
||||
fi
|
||||
if grep -P "^\\t+ +" -r ./**/*.css; then
|
||||
echo "Error: Files contain mixed tabs and spaces for indentation."
|
||||
exit 1
|
||||
fi
|
||||
echo "No indentation errors detected."
|
||||
'''
|
||||
sh "./indentcheck.sh"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
@import url("./theme-flaredefault-light.css");
|
||||
@import url("./theme-flaredefault-light.css") (prefers-color-scheme: light);
|
||||
@import url("./theme-flaredefault-dark.css") (prefers-color-scheme: dark);
|
||||
@@ -1,4 +1,4 @@
|
||||
@import url("./theme-gitea-dark\.css");
|
||||
@import url("./theme-gitea-dark.css");
|
||||
|
||||
body {
|
||||
background: #333;
|
||||
@@ -10,7 +10,7 @@ body {
|
||||
font-weight: bold;
|
||||
font-size: 150%;
|
||||
border: none;
|
||||
box-shadow: 0 2px 5px rgb(0 0 0 / 20%);
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 20%);
|
||||
}
|
||||
|
||||
.secondary-nav{
|
||||
@@ -19,16 +19,16 @@ body {
|
||||
}
|
||||
|
||||
.ui.table, .ui.segments, .ui.segment, #readme, .ui.dashboard-repos, .ui.vertical.menu, .ui.attached.segment, .ui.top.attached.header, #repo-files-table{
|
||||
box-shadow: 0 2px 5px rgb(0 0 0 / 20%);
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 20%);
|
||||
}
|
||||
|
||||
.repository .diff-detail-box{
|
||||
margin: 0;
|
||||
box-shadow: 0 2px 5px rgb(0 0 0 / 20%);
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 20%);
|
||||
}
|
||||
|
||||
#diff-file-tree{
|
||||
box-shadow: 0 3px 3px rgb(0 0 0 / 20%);
|
||||
box-shadow: 0 3px 3px rgba(0, 0, 0, 20%);
|
||||
background-color: var(--color-body);
|
||||
z-index: 1000;
|
||||
margin-right: 10px;
|
||||
@@ -39,7 +39,8 @@ body {
|
||||
}
|
||||
|
||||
.page-footer{
|
||||
box-shadow: 0 -2px 5px rgb(0 0 0 / 20%);
|
||||
background: linear-gradient(#222, #111);
|
||||
box-shadow: 0 -2px 5px rgba(0, 0, 0, 20%);
|
||||
}
|
||||
|
||||
.ui.tabular.menu .active.item, .ui.tabular.menu .active.item:hover {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@import url("./theme-gitea-light.css");
|
||||
|
||||
body {
|
||||
background-color: #E0E0E0 !important;
|
||||
background-color: #E0E0E0;
|
||||
}
|
||||
|
||||
#navbar{
|
||||
@@ -10,7 +10,7 @@ body {
|
||||
font-weight: bold;
|
||||
font-size: 150%;
|
||||
border: none;
|
||||
box-shadow: 0 2px 5px rgb(0 0 0 / 20%);
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 20%);
|
||||
}
|
||||
|
||||
.secondary-nav{
|
||||
@@ -19,16 +19,16 @@ body {
|
||||
}
|
||||
|
||||
.ui.table, .ui.segments, .ui.segment, #readme, .ui.dashboard-repos, .ui.vertical.menu, .ui.attached.segment, .ui.top.attached.header, #repo-files-table{
|
||||
box-shadow: 0 2px 5px rgb(0 0 0 / 20%);
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 20%);
|
||||
}
|
||||
|
||||
.repository .diff-detail-box{
|
||||
margin: 0;
|
||||
box-shadow: 0 2px 5px rgb(0 0 0 / 20%);
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 20%);
|
||||
}
|
||||
|
||||
#diff-file-tree{
|
||||
box-shadow: 0 3px 3px rgb(0 0 0 / 20%);
|
||||
box-shadow: 0 3px 3px rgba(0, 0, 0, 20%);
|
||||
background-color: var(--color-body);
|
||||
z-index: 1000;
|
||||
margin-right: 10px;
|
||||
@@ -40,7 +40,7 @@ body {
|
||||
|
||||
.page-footer{
|
||||
background: linear-gradient(#EFEFEF, #DEDEDE);
|
||||
box-shadow: 0 -2px 5px rgb(0 0 0 / 20%);
|
||||
box-shadow: 0 -2px 5px rgba(0, 0, 0, 20%);
|
||||
}
|
||||
|
||||
.ui.tabular.menu .active.item, .ui.tabular.menu .active.item:hover {
|
||||
|
||||
31
indentcheck.sh
Executable file
31
indentcheck.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
# Save the results of the find command into a variable
|
||||
FILETYPES="css|json|js|java|py|ps1|cs|cmd|bat|htm|html|cpp|c|h|hpp|sh|bash"
|
||||
FILES=$(find . -regextype awk -regex ".*\.($FILETYPES)" -type f)
|
||||
# Initialize the PROBLEMS variable
|
||||
PROBLEMS=""
|
||||
|
||||
# Pass the files to grep and sed
|
||||
for file in $FILES; do
|
||||
# Check for lines with spaces
|
||||
GREP_RESULT=$(grep -nrP '^[ ]+' "$file")
|
||||
if [ -n "$GREP_RESULT" ]; then
|
||||
PROBLEMS="${PROBLEMS}Space indentation in file $file:"$'\n'"$GREP_RESULT"$'\n\n\n' # Append the result to PROBLEMS
|
||||
fi
|
||||
|
||||
# Check for lines with mixed tabs and spaces
|
||||
GREP_RESULT=$(grep -nrP '^\t+ +' "$file")
|
||||
if [ -n "$GREP_RESULT" ]; then
|
||||
PROBLEMS="${PROBLEMS}Mixed indentation in file $file:"$'\n'"$GREP_RESULT"$'\n\n\n' # Append the result to PROBLEMS
|
||||
fi
|
||||
done
|
||||
|
||||
# Check if there were any problems
|
||||
if [ -n "$PROBLEMS" ]; then
|
||||
echo "Indentation issues detected. Please fix the above lines."
|
||||
echo "$PROBLEMS"
|
||||
exit 1
|
||||
else
|
||||
echo "No indentation issues detected."
|
||||
exit 0
|
||||
fi
|
||||
Reference in New Issue
Block a user