diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml index e5bd27659c..b5fd9c58ed 100644 --- a/.github/codeql/codeql-config.yml +++ b/.github/codeql/codeql-config.yml @@ -8,3 +8,5 @@ query-filters: - cpp/world-writable-file-creation # Basically OpenTTD's coding style for adding things like ..._INVALID to enumerations - cpp/irregular-enum-init + # Our GUI code tends to use switches for OnClick handlers, DrawWidget, and UpdateWidgetSize. Sometimes GUIs just don't have many elements, but we want to keep consistency. + - cpp/trivial-switch