pygae/galgebra

View on GitHub

Showing 843 of 843 total issues

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

def Get_Program(off=False):
Severity: Major
Found in galgebra/printer.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 72 to the 15 allowed.
Open

    def _print_Function(self, expr, exp=None):
Severity: Critical
Found in galgebra/printer.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

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

def Eprint(*args, **kwargs):
Severity: Major
Found in galgebra/printer.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):
    ...
Severity
Category
Status
Source
Language