Showing 3,931 of 7,835 total issues

File virtualpop.py has 3604 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/demand/virtualpop.py - About 1 wk to fix

    File mapmatching.py has 3594 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/mapmatching/mapmatching.py - About 1 wk to fix

      File ogleditor.py has 3296 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_wx/ogleditor.py - About 1 wk to fix

        File prt.py has 3072 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.py - About 1 wk to fix

          File pop2.py has 3007 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
          # Copyright (C) 2012-2020 German Aerospace Center (DLR) and others.
          # This program and the accompanying materials are made available under the
          # terms of the Eclipse Public License 2.0 which is available at
          # https://www.eclipse.org/legal/epl-2.0/
          Severity: Major
          Found in tools/sumolib/scenario/pop2.py - About 1 wk to fix

            File prt-33-prenewenter.py has 2998 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-33-prenewenter.py - About 1 wk to fix

              File prt-32-decomptargetprob.py has 2991 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-32-decomptargetprob.py - About 1 wk to fix

                Function make_majortls has a Cognitive Complexity of 407 (exceeds 5 allowed). Consider refactoring.
                Open

                    def make_majortls(self, id_node_major, inds_route):
                        print 79*'-'
                        print 'make_majortls for', id_node_major, inds_route
                        edges = self.parent.edges
                        nodes = self.parent.nodes
                Severity: Minor
                Found in tools/contributed/sumopy/coremodules/network/networktools.py - About 1 wk 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-31-decompok.py has 2945 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-31-decompok.py - About 1 wk to fix

                  File mapmatching-13-prespeedchange.py has 2929 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 network.py has 2896 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/network/network.py - About 1 wk to fix

                      File mapmatching-12-oldpointassign.py has 2781 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 objpanel.py has 2551 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_wx/objpanel.py - About 1 wk to fix

                          File prt-29-plat-debug.py has 2424 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-29-plat-debug.py - About 6 days to fix

                            File prt-30-platok.py has 2404 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-30-platok.py - About 6 days to fix

                              File prt-28.py has 2349 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-28.py - About 6 days to fix

                                File prt-26-stationproblem.py has 2257 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-26-stationproblem.py - About 6 days to fix

                                  File prt-27-simplemergeok.py has 2229 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-27-simplemergeok.py - About 6 days to fix

                                    File prt-25-oldmergenode.py has 2117 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-25-oldmergenode.py - About 5 days to fix

                                      File networkxtools.py has 2112 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/scenario/networkxtools.py - About 5 days to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language