yast/yast-yast2

View on GitHub
library/cwm/src/modules/CWMTab.rb

Summary

Maintainability
C
7 hrs
Test Coverage

Method CreateWidget has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def CreateWidget(settings)
      settings = deep_copy(settings)
      tab_order = Ops.get_list(settings, "tab_order", [])
      tabs = Ops.get_map(settings, "tabs", {})
      initial_tab = Ops.get_string(settings, "initial_tab", "")
Severity: Major
Found in library/cwm/src/modules/CWMTab.rb - About 2 hrs to fix

    Class CWMTabClass has 23 methods (exceeds 20 allowed). Consider refactoring.
    Open

      class CWMTabClass < Module
        def main
          Yast.import "UI"
          textdomain "base"
    
    
    Severity: Minor
    Found in library/cwm/src/modules/CWMTab.rb - About 2 hrs to fix

      File CWMTab.rb has 256 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      require "yast"
      
      module Yast
        class CWMTabClass < Module
          def main
      Severity: Minor
      Found in library/cwm/src/modules/CWMTab.rb - About 2 hrs to fix

        There are no issues that match your filters.

        Category
        Status