halostatue/color

View on GitHub
lib/color/cmyk.rb

Summary

Maintainability
B
6 hrs
Test Coverage

Class CMYK has 36 methods (exceeds 20 allowed). Consider refactoring.
Open

class Color::CMYK
  include Color

  # The format of a DeviceCMYK colour for PDF. In color-tools 2.0 this will
  # be removed from this package and added back as a modification by the
Severity: Minor
Found in lib/color/cmyk.rb - About 4 hrs to fix

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

      def initialize(c = 0, m = 0, y = 0, k = 0, radix = 100.0, &block) # :yields self:
    Severity: Minor
    Found in lib/color/cmyk.rb - About 45 mins to fix

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

          def from_percent(c = 0, m = 0, y = 0, k = 0, &block)
      Severity: Minor
      Found in lib/color/cmyk.rb - About 35 mins to fix

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

            def from_fraction(c = 0, m = 0, y = 0, k = 0, &block)
        Severity: Minor
        Found in lib/color/cmyk.rb - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status