tuokri/rs2wapy

View on GitHub
rs2wapy/rs2wapy.py

Summary

Maintainability
A
3 hrs
Test Coverage

RS2WebAdmin has 26 functions (exceeds 20 allowed). Consider refactoring.
Open

class RS2WebAdmin:
    """Provides a high-level interface to Rising Storm 2: Vietnam
    server's WebAdmin tool.
    """

Severity: Minor
Found in rs2wapy/rs2wapy.py - About 3 hrs to fix

    Remove this commented out code.
    Open

            # return self._adapter.get_access_policies()
    Severity: Major
    Found in rs2wapy/rs2wapy.py by sonar-python

    Programmers should not comment out code as it bloats programs and reduces readability.

    Unused code should be deleted and can be retrieved from source control history if required.

    See

    • MISRA C:2004, 2.4 - Sections of code should not be "commented out".
    • MISRA C++:2008, 2-7-2 - Sections of code shall not be "commented out" using C-style comments.
    • MISRA C++:2008, 2-7-3 - Sections of code should not be "commented out" using C++ comments.
    • MISRA C:2012, Dir. 4.4 - Sections of code should not be "commented out"

    There are no issues that match your filters.

    Category
    Status