whoward/cadenza

View on GitHub
lib/cadenza/nodes/operation_node.rb

Summary

Maintainability
B
5 hrs
Test Coverage

Method eval has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def eval(context)
      l = @left.eval(context)
      r = @right.eval(context)

      case @operator
Severity: Minor
Found in lib/cadenza/nodes/operation_node.rb - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

            return l > r
    Severity: Major
    Found in lib/cadenza/nodes/operation_node.rb - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return l < r
      Severity: Major
      Found in lib/cadenza/nodes/operation_node.rb - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                return l + r
        Severity: Major
        Found in lib/cadenza/nodes/operation_node.rb - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return l - r
          Severity: Major
          Found in lib/cadenza/nodes/operation_node.rb - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return l && r
            Severity: Major
            Found in lib/cadenza/nodes/operation_node.rb - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                      return l || r
              Severity: Major
              Found in lib/cadenza/nodes/operation_node.rb - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                        return l / r
                Severity: Major
                Found in lib/cadenza/nodes/operation_node.rb - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return l * r
                  Severity: Major
                  Found in lib/cadenza/nodes/operation_node.rb - About 30 mins to fix

                    There are no issues that match your filters.

                    Category
                    Status