Showing 806 of 967 total issues
Method startController
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def startController(controller)
controller = deep_copy(controller)
# check module information
# skip controller if no module info available
Method IsServiceSupportedInZone
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def IsServiceSupportedInZone(service, zone)
return nil if !IsKnownZone(zone)
Yast.import "SuSEFirewallServices" # lazy import due to circular dependencies
File GPG.rb
has 259 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require "yast"
require "shellwords"
module Yast
class GPGClass < Module
File Service.rb
has 259 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require "yast"
require "yast2/systemd/service"
module Yast
class ServiceClass < Module
Method askForNewOption
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def askForNewOption(possible, editable, descr)
possible = deep_copy(possible)
descr = deep_copy(descr)
do_sort = !Ops.get_boolean(descr, "add_items_keep_order", false)
possible = Builtins.sort(possible) if do_sort
Method ConfirmAbort
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def ConfirmAbort(severity)
what_will_happen = ""
# Confirm user request to abort installation
abort_label = _("Really abort the installation?")
Method main
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def main
textdomain "base"
Yast.import "Misc"
Yast.import "Mode"
File Package.rb
has 257 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require "yast"
require "forwardable"
require "y2packager/resolvable"
Yast.import "CommandLine"
Class LogViewClass
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class LogViewClass < Module
def main
Yast.import "UI"
textdomain "base"
Class Product
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Product
include Yast::Logger
include ProductLicenseMixin
# @return [String] Name
Class ServiceWidget
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class ServiceWidget
extend Yast::I18n
include Yast::I18n
include Yast::Logger
include Yast::UIShortcuts
Class MultiFileConfig
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class MultiFileConfig
include Yast::Logger
class << self
# Instantiates and loads configuration
Method Replaceworkflows
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def Replaceworkflows(workflows)
workflows = deep_copy(workflows)
workflows = PrepareWorkflows(workflows)
# This function doesn't update the current workflow but replaces it.
Method getMatchingProposal
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def getMatchingProposal(stage, mode, proptype)
Builtins.y2milestone(
"Stage: %1 Mode: %2, Type: %3",
stage,
mode,
Method GetMessages
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def GetMessages(warnings, errors, messages, yes_no)
richtext = ""
if warnings
# translators: warnings summary header
Method ShowNcursesHelp
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def ShowNcursesHelp
# NCurses (textmode) Control Center headline
headline = _("Controlling YaST ncurses with the Keyboard")
# NCurses Control Center help 1/
File CWMTab.rb
has 256 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require "yast"
module Yast
class CWMTabClass < Module
def main
Method Connect
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def Connect(show_continue_button)
# we already have a lock
return { "connected" => @have_lock, "aborted" => @aborted } if !@have_lock.nil?
try_again = true
Method RunHWDialog
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def RunHWDialog(settings)
settings = deep_copy(settings)
# reinitialize internal variables
@current_items = []
@descriptions = {}
Method anyMessageDetailsInternalType
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def anyMessageDetailsInternalType(headline, message, details, richtext, width, height)
button_box = ButtonBox(
PushButton(Id(:ok_msg), Opt(:default, :okButton), Label.OKButton),
# FIXME: BNC #422612, Use `opt(`noSanityCheck) later
# button label