Yupeek/booleano

View on GitHub
src/booleano/parser/parsers.py

Summary

Maintainability
B
6 hrs
Test Coverage

File parsers.py has 324 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# -*- coding: utf-8 -*-

# Copyright (c) 2009 by Gustavo Narea <http://gustavonarea.net/>.

# This file is part of Booleano <http://code.gustavonarea.net/booleano/>.
Severity: Minor
Found in src/booleano/parser/parsers.py - About 3 hrs to fix

    Function define_operation has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def define_operation(self):
            Suppress(self._grammar.get_token("group_start"))
            Suppress(self._grammar.get_token("group_end"))
    
            # Making the relational operations:
    Severity: Minor
    Found in src/booleano/parser/parsers.py - About 1 hr to fix

      Function define_operand has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          def define_operand(self):
              """
              Return the syntax definition for an operand.
      
              An operand can be a variable, a string, a number or a set. A set
      Severity: Minor
      Found in src/booleano/parser/parsers.py - About 1 hr to fix

        TODO found
        Open

                # TODO: Avoid doing this:
        Severity: Minor
        Found in src/booleano/parser/parsers.py by fixme

        TODO found
        Open

                # TODO: Avoid doing this:
        Severity: Minor
        Found in src/booleano/parser/parsers.py by fixme

        There are no issues that match your filters.

        Category
        Status