--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py Sun Feb 16 15:06:29 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py Mon Feb 17 16:28:25 2025 +0100 @@ -636,6 +636,16 @@ "MiscellaneousChecker", "commented code lines should be removed", ), + ## structural pattern matching + "M901": QCoreApplication.translate( + "MiscellaneousChecker", + "matching a default value should raise a `ValueError` exception", + ), + "M902": QCoreApplication.translate( + "MiscellaneousChecker", + "matching a default value should not contain a `return` statement before " + "raising a `ValueError` exception", + ), } _miscellaneousMessagesSampleArgs = {