Showing 806 of 967 total issues
Method anyMessageInternalType
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def anyMessageInternalType(headline, message, richtext, width, height)
Method popupLayoutInternalRich
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def popupLayoutInternalRich(headline, message, button_box, width, height)
Method ErrorAnyQuestion
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def ErrorAnyQuestion(headline, message, yes_button_message, no_button_message, focus)
Method AnyQuestion
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def AnyQuestion(headline, message, yes_button_message, no_button_message, focus)
Method AnyQuestion
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def AnyQuestion(headline, message, yes_button_message, no_button_message, focus)
Method initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def initialize(section, attribute, value, description, severity = :warn)
Method anyTimedRichMessageInternal
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def anyTimedRichMessageInternal(headline, message, timeout, width, height)
Method SpacingAround
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def SpacingAround(content, left, right, top, bottom)
Method check_arguments!
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def check_arguments!(message, details, timeout, focus, buttons)
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?
- Read upRead up
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
- Read upRead up
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?
- Read upRead up
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
- Read upRead up
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
- Read upRead up
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
- Read upRead up
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
- Read upRead up
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", "")
- Read upRead up
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
- Read upRead up
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
- Read upRead up
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(
- Read upRead up
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"