knipknap/exscript

View on GitHub

Showing 153 of 245 total issues

Avoid too many return statements within this function.
Open

        return True
Severity: Major
Found in Exscript/servers/server.py - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                return [lft not in rgt_lst]
    Severity: Major
    Found in Exscript/interpreter/expression.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  return [lft and rgt]
      Severity: Major
      Found in Exscript/interpreter/expression.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return [int(lft) // int(rgt)]
        Severity: Major
        Found in Exscript/interpreter/expression.py - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                      return [int(lft) - int(rgt)]
          Severity: Major
          Found in Exscript/interpreter/expression.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return _error_401(self, 'Invalid username or password')
            Severity: Major
            Found in Exscript/servers/httpd.py - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                          return 5
              Severity: Major
              Found in Exscript/interpreter/expression.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                    return default_rows, default_cols
                Severity: Major
                Found in Exscript/util/tty.py - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                              return [0]
                  Severity: Major
                  Found in Exscript/interpreter/expression.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                return [int(lft) * int(rgt)]
                    Severity: Major
                    Found in Exscript/interpreter/expression.py - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return '%d actions total (all failed)' % total
                      Severity: Major
                      Found in Exscript/util/report.py - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                    return [int(lft) >= int(rgt)]
                        Severity: Major
                        Found in Exscript/interpreter/expression.py - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                      return [int(lft) < int(rgt)]
                          Severity: Major
                          Found in Exscript/interpreter/expression.py - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return 3
                            Severity: Major
                            Found in Exscript/interpreter/expression.py - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                          return [int(lft) % int(rgt)]
                              Severity: Major
                              Found in Exscript/interpreter/expression.py - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                            return _error_401(self, 'Incorrect realm')
                                Severity: Major
                                Found in Exscript/servers/httpd.py - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                              return [lft != rgt]
                                  Severity: Major
                                  Found in Exscript/interpreter/expression.py - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                return [lft in rgt_lst]
                                    Severity: Major
                                    Found in Exscript/interpreter/expression.py - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                  return [int(lft) > int(rgt)]
                                      Severity: Major
                                      Found in Exscript/interpreter/expression.py - About 30 mins to fix

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

                                            def _get_next(self, pop=True):
                                                # We need to leave sleeping items in the queue because else we
                                                # would not know their original position after they wake up.
                                                # So we need to temporarily remove sleeping items from the top of
                                                # the queue here.
                                        Severity: Minor
                                        Found in Exscript/workqueue/pipeline.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