yast/yast-yast2

View on GitHub

Showing 806 of 967 total issues

Method anyMessageInternalType has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def anyMessageInternalType(headline, message, richtext, width, height)
Severity: Minor
Found in library/general/src/modules/Popup.rb - About 35 mins to fix

    Method popupLayoutInternalRich has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def popupLayoutInternalRich(headline, message, button_box, width, height)
    Severity: Minor
    Found in library/general/src/modules/Popup.rb - About 35 mins to fix

      Method ErrorAnyQuestion has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def ErrorAnyQuestion(headline, message, yes_button_message, no_button_message, focus)
      Severity: Minor
      Found in library/general/src/modules/Popup.rb - About 35 mins to fix

        Method AnyQuestion has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def AnyQuestion(headline, message, yes_button_message, no_button_message, focus)
        Severity: Minor
        Found in library/general/src/modules/Popup.rb - About 35 mins to fix

          Method AnyQuestion has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def AnyQuestion(headline, message, yes_button_message, no_button_message, focus)
          Severity: Minor
          Found in library/general/src/modules/Report.rb - About 35 mins to fix

            Method initialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                  def initialize(section, attribute, value, description, severity = :warn)
            Severity: Minor
            Found in library/general/src/lib/installation/autoinst_issues/invalid_value.rb - About 35 mins to fix

              Method anyTimedRichMessageInternal has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def anyTimedRichMessageInternal(headline, message, timeout, width, height)
              Severity: Minor
              Found in library/general/src/modules/Popup.rb - About 35 mins to fix

                Method SpacingAround has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def SpacingAround(content, left, right, top, bottom)
                Severity: Minor
                Found in library/general/src/modules/UIHelper.rb - About 35 mins to fix

                  Method check_arguments! has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                        def check_arguments!(message, details, timeout, focus, buttons)
                  Severity: Minor
                  Found in library/general/src/lib/yast2/popup.rb - About 35 mins to fix

                    Method WS_push has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def WS_push(stack, item)
                          stack = deep_copy(stack)
                          item = deep_copy(item)
                          return nil if stack.nil?
                    
                    
                    Severity: Minor
                    Found in library/sequencer/src/modules/Sequencer.rb - About 35 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

                    Method Change2 has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def Change2(name, newdev, check)
                          newdev = deep_copy(newdev)
                          Builtins.y2debug("Change(%1,%2,%3)", name, newdev, check)
                          Builtins.y2debug("Devices=%1", @Devices)
                          if Check(name) && check
                    Severity: Minor
                    Found in library/network/src/modules/NetworkInterfaces.rb - About 35 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

                    Method current_firewall_status has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def current_firewall_status
                          # bnc #429861
                          return :not_installed if Stage.initial || !firewalld.installed?
                          return :off unless firewalld.enabled?
                          return :no_ifaces if all_interfaces.empty?
                    Severity: Minor
                    Found in library/network/src/modules/CWMFirewallInterfaces.rb - About 35 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

                    Method list_of_params has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def list_of_params(line)
                          line = line.delete("\n")
                          cmdlist = []
                          parse_index = 0
                          in_quotes = false
                    Severity: Minor
                    Found in library/system/src/modules/Kernel.rb - About 35 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

                    Method Finish has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def Finish
                          return if !@visible || Mode.commandline
                    
                          # decrease the reference counter
                          @progress_running -= 1
                    Severity: Minor
                    Found in library/wizard/src/modules/Progress.rb - About 35 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

                    Method Detection has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def Detection(class_, icon_name)
                          Builtins.y2warning(-1, "Parameter 'icon_name' is deprecated.") if !icon_name.nil?
                    
                          return true if Linuxrc.manual != true
                    
                    
                    Severity: Minor
                    Found in library/wizard/src/modules/Confirm.rb - About 35 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

                    Method modify_interface_services has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def modify_interface_services(services, interfaces, status)
                          interfaces.each do |interface|
                            zone = interface_zone(interface)
                            next unless zone
                    
                    
                    Severity: Minor
                    Found in library/network/src/modules/firewalld_wrapper.rb - About 35 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

                    Method AddForwardIntoMasqueradeRule has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def AddForwardIntoMasqueradeRule(source_net, forward_to_ip, protocol, req_port, redirect_to_port, requested_ip)
                          SetModified()
                    
                          masquerade_rules = Ops.get_string(@SETTINGS, "FW_FORWARD_MASQ", "")
                    
                    
                    Severity: Minor
                    Found in library/network/src/lib/network/susefirewall2.rb - About 35 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

                    Method ActivateConfiguration has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def ActivateConfiguration
                          # starting firewall during second stage can cause deadlock in systemd - bnc#798620
                          # Moreover, it is not needed. Firewall gets started via dependency on multi-user.target
                          # when second stage is over.
                          if Mode.installation
                    Severity: Minor
                    Found in library/network/src/lib/network/susefirewalld.rb - About 35 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

                    Method apply_zones_changes! has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def apply_zones_changes!
                          zones.each do |zone|
                            api.create_zone(zone.name) unless current_zone_names.include?(zone.name)
                            zone.apply_changes! if zone.modified?
                          end
                    Severity: Minor
                    Found in library/network/src/lib/y2firewall/firewalld.rb - About 35 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

                    Method GPGKeyAsString has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def GPGKeyAsString(key)
                          key = deep_copy(key)
                          # Part of the GnuPG key description in popup, %1 is a GnuPG key ID
                          Ops.add(
                            Ops.add(
                    Severity: Minor
                    Found in library/packages/src/modules/SignatureCheckDialogs.rb - About 35 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