ComplianceAsCode/content

View on GitHub
ssg/ext/boolean/boolean.py

Summary

Maintainability
F
1 wk
Test Coverage
C
71%

Function parse has a Cognitive Complexity of 142 (exceeds 7 allowed). Consider refactoring.
Open

    def parse(self, expr, simplify=False):
        """
        Return a boolean expression parsed from `expr` either a unicode string
        or tokens iterable.

Severity: Minor
Found in ssg/ext/boolean/boolean.py - About 2 days to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

File boolean.py has 1126 lines of code (exceeds 400 allowed). Consider refactoring.
Open

"""
Boolean expressions algebra.

This module defines a Boolean algebra over the set {TRUE, FALSE} with boolean
variables called Symbols and the boolean functions AND, OR, NOT.
Severity: Major
Found in ssg/ext/boolean/boolean.py - About 2 days to fix

    Cyclomatic complexity is too high in method parse. (56)
    Open

        def parse(self, expr, simplify=False):
            """
            Return a boolean expression parsed from `expr` either a unicode string
            or tokens iterable.
    
    
    Severity: Minor
    Found in ssg/ext/boolean/boolean.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Function absorb has a Cognitive Complexity of 55 (exceeds 7 allowed). Consider refactoring.
    Open

        def absorb(self, args):
            """
            Given an `args` sequence of expressions, return a new list of expression
            applying absorption and negative absorption.
    
    
    Severity: Minor
    Found in ssg/ext/boolean/boolean.py - About 1 day to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function simplify has a Cognitive Complexity of 51 (exceeds 7 allowed). Consider refactoring.
    Open

        def simplify(self, sort=True):
            """
            Return a new simplified expression in canonical form from this
            expression.
    
    
    Severity: Minor
    Found in ssg/ext/boolean/boolean.py - About 7 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function _start_operation has a Cognitive Complexity of 41 (exceeds 7 allowed). Consider refactoring.
    Open

        def _start_operation(self, ast, operation, precedence):
            """
            Return an AST where all operations of lower precedence are finalized.
            """
            if TRACE_PARSE:
    Severity: Minor
    Found in ssg/ext/boolean/boolean.py - About 5 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Cyclomatic complexity is too high in method simplify. (25)
    Open

        def simplify(self, sort=True):
            """
            Return a new simplified expression in canonical form from this
            expression.
    
    
    Severity: Minor
    Found in ssg/ext/boolean/boolean.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Cyclomatic complexity is too high in method _start_operation. (18)
    Open

        def _start_operation(self, ast, operation, precedence):
            """
            Return an AST where all operations of lower precedence are finalized.
            """
            if TRACE_PARSE:
    Severity: Minor
    Found in ssg/ext/boolean/boolean.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Cyclomatic complexity is too high in method absorb. (17)
    Open

        def absorb(self, args):
            """
            Given an `args` sequence of expressions, return a new list of expression
            applying absorption and negative absorption.
    
    
    Severity: Minor
    Found in ssg/ext/boolean/boolean.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Function tokenize has a Cognitive Complexity of 19 (exceeds 7 allowed). Consider refactoring.
    Open

        def tokenize(self, expr):
            """
            Return an iterable of 3-tuple describing each token given an expression
            unicode string.
    
    
    Severity: Minor
    Found in ssg/ext/boolean/boolean.py - About 2 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Cyclomatic complexity is too high in method _subs. (11)
    Open

        def _subs(self, substitutions, default, simplify):
            """
            Return an expression where all subterms equal to a key expression are
            substituted by the corresponding value expression using a mapping of:
            {expr->expr to substitute.}
    Severity: Minor
    Found in ssg/ext/boolean/boolean.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Cyclomatic complexity is too high in method tokenize. (11)
    Open

        def tokenize(self, expr):
            """
            Return an iterable of 3-tuple describing each token given an expression
            unicode string.
    
    
    Severity: Minor
    Found in ssg/ext/boolean/boolean.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Function _subs has a Cognitive Complexity of 15 (exceeds 7 allowed). Consider refactoring.
    Open

        def _subs(self, substitutions, default, simplify):
            """
            Return an expression where all subterms equal to a key expression are
            substituted by the corresponding value expression using a mapping of:
            {expr->expr to substitute.}
    Severity: Minor
    Found in ssg/ext/boolean/boolean.py - About 1 hr to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function __lt__ has a Cognitive Complexity of 12 (exceeds 7 allowed). Consider refactoring.
    Open

        def __lt__(self, other):
            comparator = Expression.__lt__(self, other)
            if comparator is not NotImplemented:
                return comparator
    
    
    Severity: Minor
    Found in ssg/ext/boolean/boolean.py - About 1 hr to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function __init__ has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def __init__(self, TRUE_class=None, FALSE_class=None, Symbol_class=None, Function_class=None,
    Severity: Major
    Found in ssg/ext/boolean/boolean.py - About 1 hr to fix

      Avoid deeply nested control flow statements.
      Open

                              if j < i:
                                  i -= 1
                              continue
      Severity: Major
      Found in ssg/ext/boolean/boolean.py - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if negated is None:
                                    negated = arg
                                else:
                                    negated = None
                                    break
        Severity: Major
        Found in ssg/ext/boolean/boolean.py - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                  if TRACE_PARSE: print('ast9:', repr(ast))
                                  ast = ast[0]
          Severity: Major
          Found in ssg/ext/boolean/boolean.py - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    if arg in target.args:
                                        pass
                                    elif narg in target.args:
                                        if remove is None:
                                            remove = narg
            Severity: Major
            Found in ssg/ext/boolean/boolean.py - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                      if TRACE_PARSE: print('ast10:', repr(ast))
                                      break
              Severity: Major
              Found in ssg/ext/boolean/boolean.py - About 45 mins to fix

                Avoid too many return statements within this function.
                Open

                                        return self.__class__(*args).simplify()
                Severity: Major
                Found in ssg/ext/boolean/boolean.py - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return expr
                  Severity: Major
                  Found in ssg/ext/boolean/boolean.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                    return self.annihilator
                    Severity: Major
                    Found in ssg/ext/boolean/boolean.py - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                  return args[0]
                      Severity: Major
                      Found in ssg/ext/boolean/boolean.py - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                                return args[0]
                        Severity: Major
                        Found in ssg/ext/boolean/boolean.py - About 30 mins to fix

                          Function pretty has a Cognitive Complexity of 8 (exceeds 7 allowed). Consider refactoring.
                          Open

                              def pretty(self, indent=0, debug=False):
                                  """
                                  Return a pretty formatted representation of self as an indented tree.
                          
                                  If debug is True, also prints debug information for each expression arg.
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py - About 25 mins to fix

                          Cognitive Complexity

                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                          A method's cognitive complexity is based on a few simple rules:

                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                          • Code is considered more complex for each "break in the linear flow of the code"
                          • Code is considered more complex when "flow breaking structures are nested"

                          Further reading

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

                              def tokenize(self, expr):
                          Severity: Critical
                          Found in ssg/ext/boolean/boolean.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 16 to the 15 allowed.
                          Open

                              def _subs(self, substitutions, default, simplify):
                          Severity: Critical
                          Found in ssg/ext/boolean/boolean.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

                          Method "__init__" has 9 parameters, which is greater than the 7 authorized.
                          Open

                              def __init__(self, TRUE_class=None, FALSE_class=None, Symbol_class=None, Function_class=None,
                                           NOT_class=None, AND_class=None, OR_class=None,
                                           allowed_in_token=('.', ':', '_')):
                          Severity: Major
                          Found in ssg/ext/boolean/boolean.py by sonar-python

                          A long parameter list can indicate that a new structure should be created to wrap the numerous parameters or that the function is doing too many things.

                          Noncompliant Code Example

                          With a maximum number of 4 parameters:

                          def do_something(param1, param2, param3, param4, param5):
                              ...
                          

                          Compliant Solution

                          def do_something(param1, param2, param3, param4):
                              ...
                          

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

                              def simplify(self, sort=True):
                          Severity: Critical
                          Found in ssg/ext/boolean/boolean.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 55 to the 15 allowed.
                          Open

                              def absorb(self, args):
                          Severity: Critical
                          Found in ssg/ext/boolean/boolean.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 143 to the 15 allowed.
                          Open

                              def parse(self, expr, simplify=False):
                          Severity: Critical
                          Found in ssg/ext/boolean/boolean.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 41 to the 15 allowed.
                          Open

                              def _start_operation(self, ast, operation, precedence):
                          Severity: Critical
                          Found in ssg/ext/boolean/boolean.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

                          Either remove or fill this block of code.
                          Open

                                                      pass
                          Severity: Major
                          Found in ssg/ext/boolean/boolean.py by sonar-python

                          Most of the time a block of code is empty when a piece of code is really missing. So such empty block must be either filled or removed.

                          Noncompliant Code Example

                          for i in range(3):
                              pass
                          

                          Exceptions

                          When a block contains a comment, this block is not considered to be empty.

                          Either remove or fill this block of code.
                          Open

                                                  pass
                          Severity: Major
                          Found in ssg/ext/boolean/boolean.py by sonar-python

                          Most of the time a block of code is empty when a piece of code is really missing. So such empty block must be either filled or removed.

                          Noncompliant Code Example

                          for i in range(3):
                              pass
                          

                          Exceptions

                          When a block contains a comment, this block is not considered to be empty.

                          Merge this if statement with the enclosing one.
                          Open

                                              if prev_token_type not in (TOKEN_NOT, TOKEN_AND, TOKEN_OR, TOKEN_LPAR):
                          Severity: Major
                          Found in ssg/ext/boolean/boolean.py by sonar-python

                          Merging collapsible if statements increases the code's readability.

                          Noncompliant Code Example

                          if condition1:
                              if condition2:
                                  # ...
                          

                          Compliant Solution

                          if condition1 and condition2:
                              # ...
                          

                          Take the required action to fix the issue indicated by this "FIXME" comment.
                          Open

                                              # FIXME: what does this pass Do?
                          Severity: Major
                          Found in ssg/ext/boolean/boolean.py by sonar-python

                          FIXME tags are commonly used to mark places where a bug is suspected, but which the developer wants to deal with later.

                          Sometimes the developer will not have the time or will simply forget to get back to that tag.

                          This rule is meant to track those tags and to ensure that they do not go unnoticed.

                          Noncompliant Code Example

                          def divide(numerator, denominator):
                            return numerator / denominator              # FIXME denominator value might be 0
                          

                          See

                          Merge this if statement with the enclosing one.
                          Open

                                      if all(arg in self.args for arg in expr.args):
                          Severity: Major
                          Found in ssg/ext/boolean/boolean.py by sonar-python

                          Merging collapsible if statements increases the code's readability.

                          Noncompliant Code Example

                          if condition1:
                              if condition2:
                                  # ...
                          

                          Compliant Solution

                          if condition1 and condition2:
                              # ...
                          

                          Similar blocks of code found in 2 locations. Consider refactoring.
                          Open

                          class _TRUE(BaseElement):
                              """
                              Boolean base element TRUE.
                              Not meant to be subclassed nor instantiated directly.
                              """
                          Severity: Major
                          Found in ssg/ext/boolean/boolean.py and 1 other location - About 7 hrs to fix
                          ssg/ext/boolean/boolean.py on lines 849..874

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 110.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Similar blocks of code found in 2 locations. Consider refactoring.
                          Open

                          class _FALSE(BaseElement):
                              """
                              Boolean base element FALSE.
                              Not meant to be subclassed nor instantiated directly.
                              """
                          Severity: Major
                          Found in ssg/ext/boolean/boolean.py and 1 other location - About 7 hrs to fix
                          ssg/ext/boolean/boolean.py on lines 821..846

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 110.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Similar blocks of code found in 2 locations. Consider refactoring.
                          Open

                          class AND(DualBase):
                              """
                              Boolean AND operation, taking 2 or more arguments.
                          
                              It can also be created by using "&" between two boolean expressions.
                          Severity: Major
                          Found in ssg/ext/boolean/boolean.py and 1 other location - About 4 hrs to fix
                          ssg/ext/boolean/boolean.py on lines 1483..1506

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 76.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Similar blocks of code found in 2 locations. Consider refactoring.
                          Open

                          class OR(DualBase):
                              """
                              Boolean OR operation, taking 2 or more arguments
                          
                              It can also be created by using "|" between two boolean expressions.
                          Severity: Major
                          Found in ssg/ext/boolean/boolean.py and 1 other location - About 4 hrs to fix
                          ssg/ext/boolean/boolean.py on lines 1458..1480

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 76.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                                      if not (inspect.isclass(ast[1]) and issubclass(ast[1], self.Function)):
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py and 1 other location - About 45 mins to fix
                          ssg/ext/boolean/boolean.py on lines 312..312

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 35.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                                              if not (inspect.isclass(ast[1]) and issubclass(ast[1], self.Function)):
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py and 1 other location - About 45 mins to fix
                          ssg/ext/boolean/boolean.py on lines 384..384

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 35.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                                  obj = "'%s'" % self.obj if isinstance(self.obj, basestring) else repr(self.obj)
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py and 1 other location - About 30 mins to fix
                          ssg/ext/boolean/boolean.py on lines 923..923

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 32.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                                  obj = "'%s'" % self.obj if isinstance(self.obj, basestring) else repr(self.obj)
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py and 1 other location - About 30 mins to fix
                          ssg/ext/boolean/boolean.py on lines 934..934

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 32.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Line too long (145 > 99 characters)
                          Open

                                          print('\nprocessing token_type:', repr(token_type), 'token_string:', repr(token_string), 'token_position:', repr(token_position))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Limit all lines to a maximum of 79 characters.

                          There are still many devices around that are limited to 80 character
                          lines; plus, limiting windows to 80 characters makes it possible to
                          have several windows side-by-side.  The default wrapping on such
                          devices looks ugly.  Therefore, please limit all lines to a maximum
                          of 79 characters. For flowing long blocks of text (docstrings or
                          comments), limiting the length to 72 characters is recommended.
                          
                          Reports error E501.

                          Multiple statements on one line (colon)
                          Open

                                              if TRACE_PARSE: print('ast11:', repr(ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Multiple statements on one line (colon)
                          Open

                                                  if TRACE_PARSE: print('  ast[1] is None:', repr(ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Line too long (105 > 99 characters)
                          Open

                              PARSE_INVALID_OPERATOR_SEQUENCE: 'Invalid operator sequence without symbols such as AND OR or OR OR',
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Limit all lines to a maximum of 79 characters.

                          There are still many devices around that are limited to 80 character
                          lines; plus, limiting windows to 80 characters makes it possible to
                          have several windows side-by-side.  The default wrapping on such
                          devices looks ugly.  Therefore, please limit all lines to a maximum
                          of 79 characters. For flowing long blocks of text (docstrings or
                          comments), limiting the length to 72 characters is recommended.
                          
                          Reports error E501.

                          Multiple statements on one line (colon)
                          Open

                                          if TRACE_PARSE: print(' ast: token_type is TOKEN_FALSE:', repr(ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Line too long (105 > 99 characters)
                          Open

                                                  raise ParseError(token_type, token_string, token_position, PARSE_INVALID_NESTING)
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Limit all lines to a maximum of 79 characters.

                          There are still many devices around that are limited to 80 character
                          lines; plus, limiting windows to 80 characters makes it possible to
                          have several windows side-by-side.  The default wrapping on such
                          devices looks ugly.  Therefore, please limit all lines to a maximum
                          of 79 characters. For flowing long blocks of text (docstrings or
                          comments), limiting the length to 72 characters is recommended.
                          
                          Reports error E501.

                          Multiple statements on one line (colon)
                          Open

                                                  if TRACE_PARSE: print('ast10:', repr(ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Line too long (111 > 99 characters)
                          Open

                                              raise ParseError(token_type, token_string, token_position, PARSE_INVALID_OPERATOR_SEQUENCE)
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Limit all lines to a maximum of 79 characters.

                          There are still many devices around that are limited to 80 character
                          lines; plus, limiting windows to 80 characters makes it possible to
                          have several windows side-by-side.  The default wrapping on such
                          devices looks ugly.  Therefore, please limit all lines to a maximum
                          of 79 characters. For flowing long blocks of text (docstrings or
                          comments), limiting the length to 72 characters is recommended.
                          
                          Reports error E501.

                          Multiple statements on one line (colon)
                          Open

                                                  if TRACE_PARSE: print('    parsed = ast[2]:', repr(parsed))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Line too long (115 > 99 characters)
                          Open

                                                  raise ParseError(token_type, token_string, token_position, PARSE_UNBALANCED_CLOSING_PARENS)
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Limit all lines to a maximum of 79 characters.

                          There are still many devices around that are limited to 80 character
                          lines; plus, limiting windows to 80 characters makes it possible to
                          have several windows side-by-side.  The default wrapping on such
                          devices looks ugly.  Therefore, please limit all lines to a maximum
                          of 79 characters. For flowing long blocks of text (docstrings or
                          comments), limiting the length to 72 characters is recommended.
                          
                          Reports error E501.

                          Multiple statements on one line (colon)
                          Open

                                                  if TRACE_PARSE: print('  parsed = ast[1](*ast[2:]):', repr(parsed))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Line too long (106 > 99 characters)
                          Open

                                          if is_operator(prev_token_type) and (is_operator(token_type) or token_type == TOKEN_RPAR):
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Limit all lines to a maximum of 79 characters.

                          There are still many devices around that are limited to 80 character
                          lines; plus, limiting windows to 80 characters makes it possible to
                          have several windows side-by-side.  The default wrapping on such
                          devices looks ugly.  Therefore, please limit all lines to a maximum
                          of 79 characters. For flowing long blocks of text (docstrings or
                          comments), limiting the length to 72 characters is recommended.
                          
                          Reports error E501.

                          Multiple statements on one line (colon)
                          Open

                                              if TRACE_PARSE: print('ast[0] is None:', repr(ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Multiple statements on one line (colon)
                          Open

                                                  if TRACE_PARSE: print('ast9:', repr(ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Line too long (102 > 99 characters)
                          Open

                                          if is_sym(prev_token_type) and (is_sym(token_type)):  # or token_type == TOKEN_LPAR) :
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Limit all lines to a maximum of 79 characters.

                          There are still many devices around that are limited to 80 character
                          lines; plus, limiting windows to 80 characters makes it possible to
                          have several windows side-by-side.  The default wrapping on such
                          devices looks ugly.  Therefore, please limit all lines to a maximum
                          of 79 characters. For flowing long blocks of text (docstrings or
                          comments), limiting the length to 72 characters is recommended.
                          
                          Reports error E501.

                          Line too long (115 > 99 characters)
                          Open

                                                  raise ParseError(token_type, token_string, token_position, PARSE_UNBALANCED_CLOSING_PARENS)
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Limit all lines to a maximum of 79 characters.

                          There are still many devices around that are limited to 80 character
                          lines; plus, limiting windows to 80 characters makes it possible to
                          have several windows side-by-side.  The default wrapping on such
                          devices looks ugly.  Therefore, please limit all lines to a maximum
                          of 79 characters. For flowing long blocks of text (docstrings or
                          comments), limiting the length to 72 characters is recommended.
                          
                          Reports error E501.

                          Multiple statements on one line (colon)
                          Open

                                              if TRACE_PARSE: print('ast12:', repr(ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Line too long (109 > 99 characters)
                          Open

                                              raise ParseError(token_type, token_string, token_position, PARSE_INVALID_SYMBOL_SEQUENCE)
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Limit all lines to a maximum of 79 characters.

                          There are still many devices around that are limited to 80 character
                          lines; plus, limiting windows to 80 characters makes it possible to
                          have several windows side-by-side.  The default wrapping on such
                          devices looks ugly.  Therefore, please limit all lines to a maximum
                          of 79 characters. For flowing long blocks of text (docstrings or
                          comments), limiting the length to 72 characters is recommended.
                          
                          Reports error E501.

                          Line too long (111 > 99 characters)
                          Open

                                              raise ParseError(token_type, token_string, token_position, PARSE_INVALID_OPERATOR_SEQUENCE)
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Limit all lines to a maximum of 79 characters.

                          There are still many devices around that are limited to 80 character
                          lines; plus, limiting windows to 80 characters makes it possible to
                          have several windows side-by-side.  The default wrapping on such
                          devices looks ugly.  Therefore, please limit all lines to a maximum
                          of 79 characters. For flowing long blocks of text (docstrings or
                          comments), limiting the length to 72 characters is recommended.
                          
                          Reports error E501.

                          Multiple statements on one line (colon)
                          Open

                                          if TRACE_PARSE: print(' ast: token_type is TOKEN_NOT:', repr(ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Multiple statements on one line (colon)
                          Open

                                          if TRACE_PARSE: print(' ast: token_type is TOKEN_TRUE:', repr(ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Line too long (105 > 99 characters)
                          Open

                                                  raise ParseError(token_type, token_string, token_position, PARSE_INVALID_NESTING)
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Limit all lines to a maximum of 79 characters.

                          There are still many devices around that are limited to 80 character
                          lines; plus, limiting windows to 80 characters makes it possible to
                          have several windows side-by-side.  The default wrapping on such
                          devices looks ugly.  Therefore, please limit all lines to a maximum
                          of 79 characters. For flowing long blocks of text (docstrings or
                          comments), limiting the length to 72 characters is recommended.
                          
                          Reports error E501.

                          Multiple statements on one line (colon)
                          Open

                                              if TRACE_PARSE: print('  ast[0].append(subex):', repr(ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Multiple statements on one line (colon)
                          Open

                                              if TRACE_PARSE: print('    ast = ast[0]:', repr(ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Multiple statements on one line (colon)
                          Open

                                          if TRACE_PARSE: print('     --> start_op: ast[1] is None:', repr(ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Multiple statements on one line (colon)
                          Open

                                          if TRACE_PARSE: print('     --> start_op: else:', repr(ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Multiple statements on one line (colon)
                          Open

                                          if TRACE_PARSE: print('     start_op: ast[1] is None:', repr(ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Multiple statements on one line (colon)
                          Open

                                          if TRACE_PARSE: print('     start_op: ast[0] is None:', repr(ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Line too long (102 > 99 characters)
                          Open

                                  return '{cur_indent}{cls}({debug_details}{new_line}{pfargs}\n{cur_indent})'.format(**locals())
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Limit all lines to a maximum of 79 characters.

                          There are still many devices around that are limited to 80 character
                          lines; plus, limiting windows to 80 characters makes it possible to
                          have several windows side-by-side.  The default wrapping on such
                          devices looks ugly.  Therefore, please limit all lines to a maximum
                          of 79 characters. For flowing long blocks of text (docstrings or
                          comments), limiting the length to 72 characters is recommended.
                          
                          Reports error E501.

                          Multiple statements on one line (colon)
                          Open

                                  if TRACE_PARSE: print('final parsed:', repr(parsed))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Multiple statements on one line (colon)
                          Open

                                          if TRACE_PARSE: print('     --> start_op: ast[0] is None:', repr(new_ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Multiple statements on one line (colon)
                          Open

                                          if TRACE_PARSE: print('     start_op: prec == op_prec:', repr(ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Multiple statements on one line (colon)
                          Open

                                          if TRACE_PARSE: print('     start_op: else:', repr(ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Multiple statements on one line (colon)
                          Open

                                          if TRACE_PARSE: print('     --> start_op: prec > op_prec:', repr(ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Line too long (105 > 99 characters)
                          Open

                                      return (' ' * indent) + '%s(%s%s)' % (self.__class__.__name__, debug_details, pretty_literal)
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Limit all lines to a maximum of 79 characters.

                          There are still many devices around that are limited to 80 character
                          lines; plus, limiting windows to 80 characters makes it possible to
                          have several windows side-by-side.  The default wrapping on such
                          devices looks ugly.  Therefore, please limit all lines to a maximum
                          of 79 characters. For flowing long blocks of text (docstrings or
                          comments), limiting the length to 72 characters is recommended.
                          
                          Reports error E501.

                          Multiple statements on one line (colon)
                          Open

                                              if TRACE_PARSE: print('subex = ast[1](*ast[2:]):', repr(ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          Multiple statements on one line (colon)
                          Open

                                          if TRACE_PARSE: print('     start_op: prec > op_prec:', repr(ast))
                          Severity: Minor
                          Found in ssg/ext/boolean/boolean.py by pep8

                          Compound statements (on the same line) are generally discouraged.

                          While sometimes it's okay to put an if/for/while with a small body
                          on the same line, never do this for multi-clause statements.
                          Also avoid folding such long lines!
                          
                          Always use a def statement instead of an assignment statement that
                          binds a lambda expression directly to a name.
                          
                          Okay: if foo == 'blah':\n    do_blah_thing()
                          Okay: do_one()
                          Okay: do_two()
                          Okay: do_three()
                          
                          E701: if foo == 'blah': do_blah_thing()
                          E701: for x in lst: total += x
                          E701: while t < 10: t = delay()
                          E701: if foo == 'blah': do_blah_thing()
                          E701: else: do_non_blah_thing()
                          E701: try: something()
                          E701: finally: cleanup()
                          E701: if foo == 'blah': one(); two(); three()
                          E702: do_one(); do_two(); do_three()
                          E703: do_four();  # useless semicolon
                          E704: def f(x): return 2*x
                          E731: f = lambda x: 2*x

                          There are no issues that match your filters.

                          Category
                          Status