gmantelet/python-lyth

View on GitHub

Showing 24 of 34 total issues

Remove this commented out code.
Open

    # interpreter = Interpreter()
Severity: Major
Found in src/lyth/cli.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"

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

def main(argv=sys.argv):
Severity: Critical
Found in src/lyth/cli.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

TODO found
Open

        # TODO: This is a bypass. I need a blockchain now.
Severity: Minor
Found in src/lyth/compiler/analyzer.py by fixme

Remove this commented out code.
Open

# from lyth.compiler.interpreter import Interpreter
Severity: Major
Found in src/lyth/cli.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"
Severity
Category
Status
Source
Language