Update sanity check to cover .github and .vscode folders (#3557)
This commit is contained in:
parent
ce99d444b0
commit
72f4e07d96
|
|
@ -7,7 +7,7 @@ name: "CodeQL"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * *' # once in a day at 00:00
|
- cron: '0 0 * * *' # once in a day at 00:00
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
|
|
@ -40,7 +40,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||||
# By default, queries listed here will override any specified in a config file.
|
# By default, queries listed here will override any specified in a config file.
|
||||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||||
|
|
||||||
|
|
@ -49,12 +49,12 @@ jobs:
|
||||||
- name: Autobuild
|
- name: Autobuild
|
||||||
uses: github/codeql-action/autobuild@v2
|
uses: github/codeql-action/autobuild@v2
|
||||||
|
|
||||||
# ℹ️ Command-line programs to run using the OS shell.
|
# Command-line programs to run using the OS shell.
|
||||||
# 📚 https://git.io/JvXDl
|
# 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
|
# and modify them (or add more) to build your code if your project
|
||||||
# uses a compiled language
|
# uses a compiled language
|
||||||
|
|
||||||
#- run: |
|
#- run: |
|
||||||
# make bootstrap
|
# make bootstrap
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,9 @@ def sanitycheck(pattern, allow_utf8 = False, allow_eol = (CRLF, LF), indent = 1)
|
||||||
|
|
||||||
retval = 0
|
retval = 0
|
||||||
retval += sanitycheck('.editorconfig', allow_eol = (LF,), indent = 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('**/Dockerfile', allow_eol = (LF,), indent = 2)
|
||||||
retval += sanitycheck('**/*.cmd', allow_eol = (CRLF,), indent = 2)
|
retval += sanitycheck('**/*.cmd', allow_eol = (CRLF,), indent = 2)
|
||||||
retval += sanitycheck('**/*.config', allow_utf8 = True, allow_eol = (LF,), indent = 2)
|
retval += sanitycheck('**/*.config', allow_utf8 = True, allow_eol = (LF,), indent = 2)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue