Showing 3,946 of 7,874 total issues

Traci has 288 methods (exceeds 20 allowed). Consider refactoring.
Open

public class Traci {

    Sumo sumo;
    Log logger;
    ConvertHelper helper;
Severity: Major
Found in tools/contributed/traas/src/main/java/de/tudresden/ws/Traci.java - About 5 days to fix

    File mapmatching-11-shortestproblem.py has 2080 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
    # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others.
    # SUMOPy module
    # Copyright (C) 2012-2017 University of Bologna - DICAM
    # This program and the accompanying materials are made available under the

      File prt-24-mergemake.py has 1963 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
      # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others.
      # SUMOPy module
      # Copyright (C) 2012-2017 University of Bologna - DICAM
      # This program and the accompanying materials are made available under the
      Severity: Major
      Found in tools/contributed/sumopy/plugins/prt/prt-24-mergemake.py - About 5 days to fix

        Function cut_routes has a Cognitive Complexity of 261 (exceeds 5 allowed). Consider refactoring.
        Open

        def cut_routes(aEdges, orig_net, options, busStopEdges=None, ptRoutes=None, oldPTRoutes=None, collectPT=False):
            areaEdges = set(aEdges)
            stats = Statistics()
            standaloneRoutes = {}  # routeID -> routeObject
            standaloneRoutesDepart = {}  # routeID -> time or 'discard' or None
        Severity: Minor
        Found in tools/route/cutRoutes.py - About 5 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 classman.py has 1860 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
        # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others.
        # SUMOPy module
        # Copyright (C) 2012-2017 University of Bologna - DICAM
        # This program and the accompanying materials are made available under the
        Severity: Major
        Found in tools/contributed/sumopy/agilepy/lib_base/classman.py - About 5 days to fix

          File prt-20-brokealloc.py has 1823 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
          # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others.
          # SUMOPy module
          # Copyright (C) 2012-2017 University of Bologna - DICAM
          # This program and the accompanying materials are made available under the
          Severity: Major
          Found in tools/contributed/sumopy/plugins/prt/prt-20-brokealloc.py - About 4 days to fix

            File prt-23-newversionok.py has 1800 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
            # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others.
            # SUMOPy module
            # Copyright (C) 2012-2017 University of Bologna - DICAM
            # This program and the accompanying materials are made available under the
            Severity: Major
            Found in tools/contributed/sumopy/plugins/prt/prt-23-newversionok.py - About 4 days to fix

              File prt-19-premicromove.py has 1796 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
              # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others.
              # SUMOPy module
              # Copyright (C) 2012-2017 University of Bologna - DICAM
              # This program and the accompanying materials are made available under the
              Severity: Major
              Found in tools/contributed/sumopy/plugins/prt/prt-19-premicromove.py - About 4 days to fix

                File prt-18-prewaittime.py has 1769 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
                # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others.
                # SUMOPy module
                # Copyright (C) 2012-2017 University of Bologna - DICAM
                # This program and the accompanying materials are made available under the
                Severity: Major
                Found in tools/contributed/sumopy/plugins/prt/prt-18-prewaittime.py - About 4 days to fix

                  File prt-21-oldkd.py has 1757 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
                  # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others.
                  # SUMOPy module
                  # Copyright (C) 2012-2017 University of Bologna - DICAM
                  # This program and the accompanying materials are made available under the
                  Severity: Major
                  Found in tools/contributed/sumopy/plugins/prt/prt-21-oldkd.py - About 4 days to fix

                    File prt-22-badkd.py has 1754 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
                    # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others.
                    # SUMOPy module
                    # Copyright (C) 2012-2017 University of Bologna - DICAM
                    # This program and the accompanying materials are made available under the
                    Severity: Major
                    Found in tools/contributed/sumopy/plugins/prt/prt-22-badkd.py - About 4 days to fix

                      File mapmatching-10-preresults.py has 1730 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
                      # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others.
                      # SUMOPy module
                      # Copyright (C) 2012-2017 University of Bologna - DICAM
                      # This program and the accompanying materials are made available under the

                        Function load has a Cognitive Complexity of 228 (exceeds 5 allowed). Consider refactoring.
                        Open

                        def load(filename):
                            '''load(string)
                        
                            This loads configuration parameters from a file and overwrites default values.
                            '''
                        Severity: Minor
                        Found in tools/simpla/_config.py - About 4 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 prt-17-prestoplanechange.py has 1659 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
                        # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others.
                        # SUMOPy module
                        # Copyright (C) 2012-2017 University of Bologna - DICAM
                        # This program and the accompanying materials are made available under the
                        Severity: Major
                        Found in tools/contributed/sumopy/plugins/prt/prt-17-prestoplanechange.py - About 4 days to fix

                          File mapmatching-09-result_desaster.py has 1609 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
                          # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others.
                          # SUMOPy module
                          # Copyright (C) 2012-2017 University of Bologna - DICAM
                          # This program and the accompanying materials are made available under the

                            File landuse.py has 1567 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
                            # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others.
                            # SUMOPy module
                            # Copyright (C) 2012-2017 University of Bologna - DICAM
                            # This program and the accompanying materials are made available under the
                            Severity: Major
                            Found in tools/contributed/sumopy/coremodules/landuse/landuse.py - About 4 days to fix

                              File mapmatching-06-resultchaos.py has 1541 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
                              # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others.
                              # SUMOPy module
                              # Copyright (C) 2012-2017 University of Bologna - DICAM
                              # This program and the accompanying materials are made available under the

                                File prt-16-ok-preplatoon.py has 1512 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
                                # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others.
                                # SUMOPy module
                                # Copyright (C) 2012-2017 University of Bologna - DICAM
                                # This program and the accompanying materials are made available under the
                                Severity: Major
                                Found in tools/contributed/sumopy/plugins/prt/prt-16-ok-preplatoon.py - About 4 days to fix

                                  File prt-15-ok.py has 1485 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
                                  # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others.
                                  # SUMOPy module
                                  # Copyright (C) 2012-2017 University of Bologna - DICAM
                                  # This program and the accompanying materials are made available under the
                                  Severity: Major
                                  Found in tools/contributed/sumopy/plugins/prt/prt-15-ok.py - About 3 days to fix

                                    File prt-14-progdelay.py has 1479 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
                                    # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others.
                                    # SUMOPy module
                                    # Copyright (C) 2012-2017 University of Bologna - DICAM
                                    # This program and the accompanying materials are made available under the
                                    Severity: Major
                                    Found in tools/contributed/sumopy/plugins/prt/prt-14-progdelay.py - About 3 days to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language