Update sanity check to cover .github and .vscode folders (#3557)
This commit is contained in:
parent
ce99d444b0
commit
72f4e07d96
|
|
@ -49,10 +49,10 @@ jobs:
|
|||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v2
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
# Command-line programs to run using the OS shell.
|
||||
# https://git.io/JvXDl
|
||||
|
||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||
# If the Autobuild fails above, remove it and uncomment the following three lines
|
||||
# and modify them (or add more) to build your code if your project
|
||||
# uses a compiled language
|
||||
|
||||
|
|
|
|||
|
|
@ -73,6 +73,9 @@ def sanitycheck(pattern, allow_utf8 = False, allow_eol = (CRLF, LF), indent = 1)
|
|||
|
||||
retval = 0
|
||||
retval += sanitycheck('.editorconfig', allow_eol = (LF,), indent = 0)
|
||||
retval += sanitycheck('.github/**/*.md', allow_eol = (LF,))
|
||||
retval += sanitycheck('.github/**/*.yml', allow_eol = (LF,), indent = 2)
|
||||
retval += sanitycheck('.vscode/**/*.json', allow_eol = (LF,), indent = 2)
|
||||
retval += sanitycheck('**/Dockerfile', allow_eol = (LF,), indent = 2)
|
||||
retval += sanitycheck('**/*.cmd', allow_eol = (CRLF,), indent = 2)
|
||||
retval += sanitycheck('**/*.config', allow_utf8 = True, allow_eol = (LF,), indent = 2)
|
||||
|
|
|
|||
Loading…
Reference in New Issue