Thu, 27 Feb 2025 14:42:39 +0100
Code Style Checkers
- Refactored the various code style checkers for better maintainability.
# -*- coding: utf-8 -*- # Copyright (c) 2020 - 2025 Detlev Offenbach <detlev@die-offenbachs.de> # """ Module implementing message translations for the code style plugin messages (code complexity part). """ from PyQt6.QtCore import QCoreApplication _complexityMessages = { "C-101": QCoreApplication.translate( "ComplexityChecker", "'{0}' is too complex ({1})" ), "C-111": QCoreApplication.translate( "ComplexityChecker", "source code line is too complex ({0})" ), "C-112": QCoreApplication.translate( "ComplexityChecker", "overall source code line complexity is too high ({0})" ), } _complexityMessagesSampleArgs = { "C-101": ["foo.bar", "42"], "C-111": [42], "C-112": [12.0], }