From 1fedbb7cd22c906526e6fb8b98c6feeaa9959f24 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Tue, 22 Nov 2022 20:16:06 +0100 Subject: [PATCH] CodeQL: Suppress warnings about `py/mixed-returns` --- .github/codeql.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/codeql.yml b/.github/codeql.yml index f541c42f..45832ef9 100644 --- a/.github/codeql.yml +++ b/.github/codeql.yml @@ -6,3 +6,10 @@ query-filters: # https://codeql.github.com/codeql-query-help/python/py-empty-except/ - exclude: id: py/empty-except + + # Quite a few functions don't explicitly return values, but + # instead implicitly return `None`, when falling through. + # TODO: May be improved. + # https://codeql.github.com/codeql-query-help/python/py-mixed-returns/ + - exclude: + id: py/mixed-returns