Ousret/Picross-L3S6

View on GitHub
class/audio.class.rb

Summary

Maintainability
A
2 hrs
Test Coverage

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

  def initialize(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ) # :nodoc:
Severity: Major
Found in class/audio.class.rb - About 1 hr to fix

    Method creer has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      def Audio.creer(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ)
    Severity: Major
    Found in class/audio.class.rb - About 1 hr to fix

      Use snake_case for variable names.
      Open

        def initialize(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ) # :nodoc:
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cop makes sure that all variables use the configured style, snake_case or camelCase, for their names.

      Example: EnforcedStyle: snake_case (default)

      # bad
      fooBar = 1
      
      # good
      foo_bar = 1

      Example: EnforcedStyle: camelCase

      # bad
      foo_bar = 1
      
      # good
      fooBar = 1

      Use only ascii symbols in comments.
      Open

      #*Classe représentant un Son (3D)
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cop checks for non-ascii (non-English) characters in comments. You could set an array of allowed non-ascii chars in AllowedChars attribute (empty by default).

      Example:

      # bad
      # Translates from English to 日本語。
      
      # good
      # Translates from English to Japanese

      Use snake_case for variable names.
      Open

        def Audio.creer(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ)
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cop makes sure that all variables use the configured style, snake_case or camelCase, for their names.

      Example: EnforcedStyle: snake_case (default)

      # bad
      fooBar = 1
      
      # good
      foo_bar = 1

      Example: EnforcedStyle: camelCase

      # bad
      foo_bar = 1
      
      # good
      fooBar = 1

      Use snake_case for variable names.
      Open

        def Audio.creer(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ)
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cop makes sure that all variables use the configured style, snake_case or camelCase, for their names.

      Example: EnforcedStyle: snake_case (default)

      # bad
      fooBar = 1
      
      # good
      foo_bar = 1

      Example: EnforcedStyle: camelCase

      # bad
      foo_bar = 1
      
      # good
      fooBar = 1

      Missing space after #.
      Open

      #*Classe représentant un Son (3D)
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cop checks whether comments have a leading space after the # denoting the start of the comment. The leading space is not required for some RDoc special syntax, like #++, #--, #:nodoc, =begin- and =end comments, "shebang" directives, or rackup options.

      Example:

      # bad
      #Some comment
      
      # good
      # Some comment

      Line is too long. [111/80]
      Open

          @path, @infinite, @pitch, @attenuation = unCheminRelatif, lectureInfinie, uneFrequencePitch, uneAttenuation
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      Use snake_case for variable names.
      Open

        def initialize(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ) # :nodoc:
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cop makes sure that all variables use the configured style, snake_case or camelCase, for their names.

      Example: EnforcedStyle: snake_case (default)

      # bad
      fooBar = 1
      
      # good
      foo_bar = 1

      Example: EnforcedStyle: camelCase

      # bad
      foo_bar = 1
      
      # good
      fooBar = 1

      Line is too long. [152/80]
      Open

        def initialize(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ) # :nodoc:
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      Extra empty line detected at class body beginning.
      Open

      
        attr_accessor :path, :infinite, :pitch, :attenuation
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cops checks if empty lines around the bodies of classes match the configuration.

      Example: EnforcedStyle: empty_lines

      # good
      
      class Foo
      
        def bar
          # ...
        end
      
      end

      Example: EnforcedStyle: emptylinesexcept_namespace

      # good
      
      class Foo
        class Bar
      
          # ...
      
        end
      end

      Example: EnforcedStyle: emptylinesspecial

      # good
      class Foo
      
        def bar; end
      
      end

      Example: EnforcedStyle: noemptylines (default)

      # good
      
      class Foo
        def bar
          # ...
        end
      end

      Use snake_case for variable names.
      Open

        def initialize(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ) # :nodoc:
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cop makes sure that all variables use the configured style, snake_case or camelCase, for their names.

      Example: EnforcedStyle: snake_case (default)

      # bad
      fooBar = 1
      
      # good
      foo_bar = 1

      Example: EnforcedStyle: camelCase

      # bad
      foo_bar = 1
      
      # good
      fooBar = 1

      Line is too long. [133/80]
      Open

          new(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ)
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      Use snake_case for variable names.
      Open

        def initialize(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ) # :nodoc:
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cop makes sure that all variables use the configured style, snake_case or camelCase, for their names.

      Example: EnforcedStyle: snake_case (default)

      # bad
      fooBar = 1
      
      # good
      foo_bar = 1

      Example: EnforcedStyle: camelCase

      # bad
      foo_bar = 1
      
      # good
      fooBar = 1

      Use snake_case for variable names.
      Open

        def initialize(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ) # :nodoc:
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cop makes sure that all variables use the configured style, snake_case or camelCase, for their names.

      Example: EnforcedStyle: snake_case (default)

      # bad
      fooBar = 1
      
      # good
      foo_bar = 1

      Example: EnforcedStyle: camelCase

      # bad
      foo_bar = 1
      
      # good
      fooBar = 1

      Use only ascii symbols in comments.
      Open

        # Représentation d'une piste audio
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cop checks for non-ascii (non-English) characters in comments. You could set an array of allowed non-ascii chars in AllowedChars attribute (empty by default).

      Example:

      # bad
      # Translates from English to 日本語。
      
      # good
      # Translates from English to Japanese

      Extra empty line detected at class body end.
      Open

      
      end
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cops checks if empty lines around the bodies of classes match the configuration.

      Example: EnforcedStyle: empty_lines

      # good
      
      class Foo
      
        def bar
          # ...
        end
      
      end

      Example: EnforcedStyle: emptylinesexcept_namespace

      # good
      
      class Foo
        class Bar
      
          # ...
      
        end
      end

      Example: EnforcedStyle: emptylinesspecial

      # good
      class Foo
      
        def bar; end
      
      end

      Example: EnforcedStyle: noemptylines (default)

      # good
      
      class Foo
        def bar
          # ...
        end
      end

      Use snake_case for variable names.
      Open

        def Audio.creer(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ)
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cop makes sure that all variables use the configured style, snake_case or camelCase, for their names.

      Example: EnforcedStyle: snake_case (default)

      # bad
      fooBar = 1
      
      # good
      foo_bar = 1

      Example: EnforcedStyle: camelCase

      # bad
      foo_bar = 1
      
      # good
      fooBar = 1

      Line is too long. [143/80]
      Open

        def Audio.creer(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ)
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      Use snake_case for variable names.
      Open

        def Audio.creer(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ)
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cop makes sure that all variables use the configured style, snake_case or camelCase, for their names.

      Example: EnforcedStyle: snake_case (default)

      # bad
      fooBar = 1
      
      # good
      foo_bar = 1

      Example: EnforcedStyle: camelCase

      # bad
      foo_bar = 1
      
      # good
      fooBar = 1

      Use snake_case for variable names.
      Open

        def Audio.creer(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ)
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cop makes sure that all variables use the configured style, snake_case or camelCase, for their names.

      Example: EnforcedStyle: snake_case (default)

      # bad
      fooBar = 1
      
      # good
      foo_bar = 1

      Example: EnforcedStyle: camelCase

      # bad
      foo_bar = 1
      
      # good
      fooBar = 1

      Do not use parallel assignment.
      Open

          @path, @infinite, @pitch, @attenuation = unCheminRelatif, lectureInfinie, uneFrequencePitch, uneAttenuation
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      Checks for simple usages of parallel assignment. This will only complain when the number of variables being assigned matched the number of assigning variables.

      Example:

      # bad
      a, b, c = 1, 2, 3
      a, b, c = [1, 2, 3]
      
      # good
      one, two = *foo
      a, b = foo()
      a, b = b, a
      
      a = 1
      b = 2
      c = 3

      Use snake_case for variable names.
      Open

        def initialize(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ) # :nodoc:
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cop makes sure that all variables use the configured style, snake_case or camelCase, for their names.

      Example: EnforcedStyle: snake_case (default)

      # bad
      fooBar = 1
      
      # good
      foo_bar = 1

      Example: EnforcedStyle: camelCase

      # bad
      foo_bar = 1
      
      # good
      fooBar = 1

      Use snake_case for variable names.
      Open

        def initialize(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ) # :nodoc:
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cop makes sure that all variables use the configured style, snake_case or camelCase, for their names.

      Example: EnforcedStyle: snake_case (default)

      # bad
      fooBar = 1
      
      # good
      foo_bar = 1

      Example: EnforcedStyle: camelCase

      # bad
      foo_bar = 1
      
      # good
      fooBar = 1

      Use snake_case for variable names.
      Open

        def Audio.creer(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ)
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cop makes sure that all variables use the configured style, snake_case or camelCase, for their names.

      Example: EnforcedStyle: snake_case (default)

      # bad
      fooBar = 1
      
      # good
      foo_bar = 1

      Example: EnforcedStyle: camelCase

      # bad
      foo_bar = 1
      
      # good
      fooBar = 1

      Use snake_case for variable names.
      Open

        def Audio.creer(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ)
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cop makes sure that all variables use the configured style, snake_case or camelCase, for their names.

      Example: EnforcedStyle: snake_case (default)

      # bad
      fooBar = 1
      
      # good
      foo_bar = 1

      Example: EnforcedStyle: camelCase

      # bad
      foo_bar = 1
      
      # good
      fooBar = 1

      Use snake_case for variable names.
      Open

        def Audio.creer(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ)
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cop makes sure that all variables use the configured style, snake_case or camelCase, for their names.

      Example: EnforcedStyle: snake_case (default)

      # bad
      fooBar = 1
      
      # good
      foo_bar = 1

      Example: EnforcedStyle: camelCase

      # bad
      foo_bar = 1
      
      # good
      fooBar = 1

      Use self.creer instead of Audio.creer.
      Open

        def Audio.creer(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ)
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cop checks for uses of the class/module name instead of self, when defining class/module methods.

      Example:

      # bad
      class SomeClass
        def SomeClass.class_method
          # ...
        end
      end
      
      # good
      class SomeClass
        def self.class_method
          # ...
        end
      end

      Use snake_case for variable names.
      Open

        def initialize(uneDesignation, unCheminRelatif, lectureInfinie, uneAttenuation, uneFrequencePitch, unePositionX, unePositionY, unePositionZ) # :nodoc:
      Severity: Minor
      Found in class/audio.class.rb by rubocop

      This cop makes sure that all variables use the configured style, snake_case or camelCase, for their names.

      Example: EnforcedStyle: snake_case (default)

      # bad
      fooBar = 1
      
      # good
      foo_bar = 1

      Example: EnforcedStyle: camelCase

      # bad
      foo_bar = 1
      
      # good
      fooBar = 1

      There are no issues that match your filters.

      Category
      Status