kiwitcms/Kiwi

View on GitHub

Showing 262 of 405 total issues

Rename function "makeExtension" to match the regular expression ^[a-z_][a-z0-9_]{2,}$.
Open

def makeExtension(**kwargs):  # pylint: disable=invalid-name
Severity: Major
Found in tcms/utils/markdown.py by sonar-python

Shared coding conventions allow teams to collaborate efficiently. This rule checks that all function names match a provided regular expression.

Noncompliant Code Example

With the default provided regular expression: ^[a-z_][a-z0-9_]{2,30}$

def MyFunction(a,b):
    ...

Compliant Solution

def my_function(a,b):
    ...

Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed.
Open

    def clean(self, value):
Severity: Critical
Found in tcms/core/forms/fields.py by sonar-python

Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

See

Severity
Category
Status
Source
Language