danini-the-panini/mittsu

View on GitHub
lib/mittsu/textures/cube_texture.rb

Summary

Maintainability
A
1 hr
Test Coverage
C
72%

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

    def initialize(images = nil, mapping = DEFAULT_MAPPING, wrap_s = ClampToEdgeWrapping, wrap_t = ClampToEdgeWrapping, mag_filter = LinearFilter, min_filter = LinearMipMapLinearFilter, format = RGBAFormat, type = UnsignedByteType, anisotropy = 1)
Severity: Major
Found in lib/mittsu/textures/cube_texture.rb - About 1 hr to fix

    Avoid parameter lists longer than 5 parameters. [9/5]
    Open

        def initialize(images = nil, mapping = DEFAULT_MAPPING, wrap_s = ClampToEdgeWrapping, wrap_t = ClampToEdgeWrapping, mag_filter = LinearFilter, min_filter = LinearMipMapLinearFilter, format = RGBAFormat, type = UnsignedByteType, anisotropy = 1)
    Severity: Minor
    Found in lib/mittsu/textures/cube_texture.rb by rubocop

    This cop checks for methods with too many parameters. The maximum number of parameters is configurable. Keyword arguments can optionally be excluded from the total count.

    There are no issues that match your filters.

    Category
    Status