From 3611082f8ebc6f1cc461c770780b32cddbc863c0 Mon Sep 17 00:00:00 2001 From: Tyler Trahan Date: Sun, 26 Mar 2023 03:35:44 -0400 Subject: [PATCH] Codechange: [CodeQL] Disable CodeQL check on trivial switch statements (#10537) --- .github/codeql/codeql-config.yml | 2 ++ 1 file changed, 2 insertions(+) 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