ArturSpirin/test_junkie

View on GitHub
test_junkie/reporter/html_template.py

Summary

Maintainability
A
0 mins
Test Coverage

File html_template.py has 967 lines of code (exceeds 250 allowed). Consider refactoring.
Wontfix

from test_junkie.constants import TestCategory, Color, DocumentationLinks


class ReportTemplate:

Severity: Major
Found in test_junkie/reporter/html_template.py - About 2 days to fix

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

            def js():

    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):
        ...
    

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

            def js():

    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):
        ...
    

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

            def js(chart_id, chart_data):

    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):
        ...
    

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

            def js():

    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):
        ...
    

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

            def js():

    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):
        ...
    

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

            def js():

    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):
        ...
    

    There are no issues that match your filters.

    Category
    Status