delihiros/futhon

View on GitHub

Showing 37 of 37 total issues

Avoid too many return statements within this function.
Open

            return float(itm)
Severity: Major
Found in src/futhon_parser.py - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                return datatypes.Symbol(itm)
    Severity: Major
    Found in src/futhon_parser.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  return datatypes.Keyword(itm)
      Severity: Major
      Found in src/futhon_parser.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                                return v
        Severity: Major
        Found in src/evaluator.py - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                          return arg.get(head)
          Severity: Major
          Found in src/evaluator.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                            return v
            Severity: Major
            Found in src/evaluator.py - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                              return v
              Severity: Major
              Found in src/evaluator.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                                    return self.eval(expr[3], env)
                Severity: Major
                Found in src/evaluator.py - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                              return datatypes.Vector([self.eval(e, env) for e in expr])
                  Severity: Major
                  Found in src/evaluator.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                        return self.eval(expr[2], env)
                    Severity: Major
                    Found in src/evaluator.py - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                      return v
                      Severity: Major
                      Found in src/evaluator.py - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                            return dynamic.attribute_or_call(instance, method_name, args)
                        Severity: Major
                        Found in src/evaluator.py - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                      return datatypes.Set([self.eval(e, env) for e in expr])
                          Severity: Major
                          Found in src/evaluator.py - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                            return type(self.eval(expr[1], env))
                            Severity: Major
                            Found in src/evaluator.py - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                              return self.apply_function(env.get(head), args, env)
                              Severity: Major
                              Found in src/evaluator.py - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                            return self.eval([head] + expr[1:], env)
                                Severity: Major
                                Found in src/evaluator.py - About 30 mins to fix

                                  Function __init__ has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                      def __init__(self, env, outer={}, bindings=None, args=None):
                                          self.env = env
                                          self.outer = outer
                                          if bindings and args:
                                              if len(bindings) != len(args):
                                  Severity: Minor
                                  Found in src/environment.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

                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language