IL2HorusTeam/il2fb-mission-parser

View on GitHub

Showing 12 of 39 total issues

Function __init__ has 11 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def __init__(
Severity: Major
Found in il2fb/parsers/mission/sections/nstationary.py - About 1 hr to fix

    Function __init__ has 10 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def __init__(
    Severity: Major
    Found in il2fb/parsers/mission/sections/nstationary.py - About 1 hr to fix

      Function __init__ has 10 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def __init__(self, type, pos, speed, formation, radio_silence,
      Severity: Major
      Found in il2fb/parsers/mission/sections/wing.py - About 1 hr to fix

        Function __init__ has 9 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def __init__(
        Severity: Major
        Found in il2fb/parsers/mission/sections/nstationary.py - About 1 hr to fix

          Function __init__ has 9 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def __init__(
          Severity: Major
          Found in il2fb/parsers/mission/sections/rocket.py - About 1 hr to fix

            Function __init__ has 7 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def __init__(self, type, pos, speed, formation, radio_silence, delay,
            Severity: Major
            Found in il2fb/parsers/mission/sections/wing.py - About 50 mins to fix

              Function __init__ has 7 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def __init__(
              Severity: Major
              Found in il2fb/parsers/mission/sections/wing.py - About 50 mins to fix

                Function __init__ has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def __init__(self, id, belligerent, code, pos, rotation_angle, type):
                Severity: Minor
                Found in il2fb/parsers/mission/sections/nstationary.py - About 45 mins to fix

                  Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def __init__(self, type, pos, speed, formation, radio_silence):
                  Severity: Minor
                  Found in il2fb/parsers/mission/sections/wing.py - About 35 mins to fix

                    Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def __init__(self, id, belligerent, code, pos, rotation_angle):
                    Severity: Minor
                    Found in il2fb/parsers/mission/sections/buildings.py - About 35 mins to fix

                      Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def __init__(self, pos, is_checkpoint, delay=None, section_length=None,
                      Severity: Minor
                      Found in il2fb/parsers/mission/sections/chiefs.py - About 35 mins to fix

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

                            def _parse_extra(self, params):
                                if self._is_new_game_version(params):
                                    radio_silence, formation, params = self._parse_new_version_extra(params)
                                    if params:
                                        self._parse_target(params)
                        Severity: Minor
                        Found in il2fb/parsers/mission/sections/wing.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