otwcode/otwarchive

View on GitHub
lib/skin_wizard.rb

Summary

Maintainability
C
1 day
Test Coverage

Method accent_color_styles has 84 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def accent_color_styles(color)
    if color.present?
      "
        table,
        thead td,
Severity: Major
Found in lib/skin_wizard.rb - About 3 hrs to fix

    File skin_wizard.rb has 304 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    module SkinWizard
      def header_styles(color)
        if color.present?
          "
            #header .primary,
    Severity: Minor
    Found in lib/skin_wizard.rb - About 3 hrs to fix

      Method background_color_styles has 57 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        def background_color_styles(color)
          if color.present?
            "
              body,
              .toggled form,
      Severity: Major
      Found in lib/skin_wizard.rb - About 2 hrs to fix

        Method foreground_color_styles has 52 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          def foreground_color_styles(color)
            if color.present?
              "
                body,
                .toggled form,
        Severity: Major
        Found in lib/skin_wizard.rb - About 2 hrs to fix

          Method header_styles has 41 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            def header_styles(color)
              if color.present?
                "
                  #header .primary,
                  #footer,
          Severity: Minor
          Found in lib/skin_wizard.rb - About 1 hr to fix

            There are no issues that match your filters.

            Category
            Status