Add: enable CodeQL code scanning

As a replacement to the now deprecated LGTM(.com)
This commit is contained in:
rubidium42
2022-12-31 18:21:28 +01:00
parent 8149ba338f
commit 5e6dac6fd4
2 changed files with 88 additions and 0 deletions

10
.github/codeql/codeql-config.yml vendored Normal file
View File

@@ -0,0 +1,10 @@
name: openttd
queries:
- uses: security-and-quality
query-filters:
- exclude:
id:
# Only feasible way is to move away from fopen; fopen_s is optional C11 and not implemented on most platforms.
- cpp/world-writable-file-creation
# Basically OpenTTD's coding style for adding things like ..._INVALID to enumerations
- cpp/irregular-enum-init