kiwitcms/Kiwi

View on GitHub

Showing 3 of 1,639 total issues

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

    def list(cls, query, plan=None):
Severity: Critical
Found in tcms/testcases/models.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

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

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

def update(user_id, values, **kwargs):  # pylint: disable=missing-api-permissions-required
Severity: Critical
Found in tcms/rpc/api/user.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