mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-06 13:01:35 -07:00
Check for CRLF, add .editorconfig
This commit is contained in:
parent
5c55583d19
commit
76dda79d4a
3 changed files with 25 additions and 1 deletions
13
.editorconfig
Normal file
13
.editorconfig
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# top-most EditorConfig file
|
||||||
|
root = true
|
||||||
|
|
||||||
|
# Unix-style newlines with a newline ending every file
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
# trim_trailing_whitespace may cause unintended issues and should not be globally set true
|
||||||
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
|
[{*.conf,*.conf.sample}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
10
.github/workflows/check_samples.yml
vendored
10
.github/workflows/check_samples.yml
vendored
|
@ -23,6 +23,16 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Check Line Endings
|
||||||
|
run: |
|
||||||
|
CRLF_ENDINGS=$(find . -not -type d -exec file "{}" ";" | grep CRLF)
|
||||||
|
CRLF_ENDINGS_COUNT=$(echo "${CRLF_ENDINGS}" | wc -w)
|
||||||
|
if (( CRLF_ENDINGS_COUNT > 0 )); then
|
||||||
|
echo "The following files are not allowed:"
|
||||||
|
echo "${CRLF_ENDINGS}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Check Version Date Line Exists
|
- name: Check Version Date Line Exists
|
||||||
run: |
|
run: |
|
||||||
# Date regex based on https://www.html5pattern.com/Dates
|
# Date regex based on https://www.html5pattern.com/Dates
|
||||||
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -2,9 +2,10 @@
|
||||||
*
|
*
|
||||||
|
|
||||||
# Do NOT ignore allowed files
|
# Do NOT ignore allowed files
|
||||||
!*.conf.sample
|
!.editorconfig
|
||||||
!.gitattributes
|
!.gitattributes
|
||||||
!.github
|
!.github
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
!*.conf.sample
|
||||||
!LICENSE
|
!LICENSE
|
||||||
!README.md
|
!README.md
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue