Ousret/Picross-L3S6

View on GitHub
class/objetgui.class.rb

Summary

Maintainability
A
1 hr
Test Coverage

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

    def initialize(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY) # :nodoc:
Severity: Minor
Found in class/objetgui.class.rb - About 45 mins to fix

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

        def creer(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY)
    Severity: Minor
    Found in class/objetgui.class.rb - About 45 mins to fix

      Extra blank line detected.
      Open

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

      This cops checks for two or more consecutive blank lines.

      Example:

      # bad - It has two empty lines.
      some_method
      # one empty line
      # two empty lines
      some_method
      
      # good
      some_method
      # one empty line
      some_method

      Use 2 (not 1) spaces for indentation.
      Open

              new(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY)
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      This cops checks for indentation that doesn't use the specified number of spaces.

      See also the IndentationConsistency cop which is the companion to this one.

      Example:

      # bad
      class A
       def test
        puts 'hello'
       end
      end
      
      # good
      class A
        def test
          puts 'hello'
        end
      end

      Example: IgnoredPatterns: ['^\s*module']

      # bad
      module A
      class B
        def test
        puts 'hello'
        end
      end
      end
      
      # good
      module A
      class B
        def test
          puts 'hello'
        end
      end
      end

      Use 2 (not 3) spaces for indentation.
      Open

          @posz <=> other.posz
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      This cops checks for indentation that doesn't use the specified number of spaces.

      See also the IndentationConsistency cop which is the companion to this one.

      Example:

      # bad
      class A
       def test
        puts 'hello'
       end
      end
      
      # good
      class A
        def test
          puts 'hello'
        end
      end

      Example: IgnoredPatterns: ['^\s*module']

      # bad
      module A
      class B
        def test
        puts 'hello'
        end
      end
      end
      
      # good
      module A
      class B
        def test
          puts 'hello'
        end
      end
      end

      Tab detected.
      Open

          def initialize(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY) # :nodoc:
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

          #   - +unePositionZ+ -> Plan sur lequel l'objet sera disposé
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

          # * *Arguments*
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

          def isOver(unePositionSourisX, unePositionSourisY)
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Use snake_case for variable names.
      Open

          def initialize(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY) # :nodoc:
      Severity: Minor
      Found in class/objetgui.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

          # Vérifie si le composant est survolée en précisant les coordonnées de la souris
      Severity: Minor
      Found in class/objetgui.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

      Do not use parallel assignment.
      Open

              @designation, @posx, @posy, @posz, @taillex, @tailley, @survol = uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY, false
      Severity: Minor
      Found in class/objetgui.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

      Extra empty line detected at class body end.
      Open

      
      end
      Severity: Minor
      Found in class/objetgui.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 2 (not 1) spaces for indentation.
      Open

          include Comparable
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      This cops checks for indentation that doesn't use the specified number of spaces.

      See also the IndentationConsistency cop which is the companion to this one.

      Example:

      # bad
      class A
       def test
        puts 'hello'
       end
      end
      
      # good
      class A
        def test
          puts 'hello'
        end
      end

      Example: IgnoredPatterns: ['^\s*module']

      # bad
      module A
      class B
        def test
        puts 'hello'
        end
      end
      end
      
      # good
      module A
      class B
        def test
          puts 'hello'
        end
      end
      end

      Missing space after #.
      Open

      #*Classe abstraite répresentant les objets de l'interface, un objet générique
      Severity: Minor
      Found in class/objetgui.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

      Tab detected.
      Open

          #   - +unePositionSourisX+ -> Coordonnée X Souris
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

                  (unePositionSourisX >= @posx && unePositionSourisY >= @posy) && (unePositionSourisX <= @posx+@taillex && unePositionSourisY <= @posy+@tailley)
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

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

      end at 57, 2 is not aligned with def at 55, 1.
      Open

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

      This cop checks whether the end keywords of method definitions are aligned properly.

      Two modes are supported through the EnforcedStyleAlignWith configuration parameter. If it's set to start_of_line (which is the default), the end shall be aligned with the start of the line where the def keyword is. If it's set to def, the end shall be aligned with the def keyword.

      Example: EnforcedStyleAlignWith: startofline (default)

      # bad
      
      private def foo
                  end
      
      # good
      
      private def foo
      end

      Example: EnforcedStyleAlignWith: def

      # bad
      
      private def foo
                  end
      
      # good
      
      private def foo
              end

      Use snake_case for method names.
      Open

          def setEtat(unNouvelEtat)
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

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

      Example: EnforcedStyle: snake_case (default)

      # bad
      def fooBar; end
      
      # good
      def foo_bar; end

      Example: EnforcedStyle: camelCase

      # bad
      def foo_bar; end
      
      # good
      def fooBar; end

      Tab detected.
      Open

              new(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY)
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

          # Vérifie si le composant est survolée en précisant les coordonnées de la souris
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Use snake_case for method names.
      Open

          def isOver(unePositionSourisX, unePositionSourisY)
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

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

      Example: EnforcedStyle: snake_case (default)

      # bad
      def fooBar; end
      
      # good
      def foo_bar; end

      Example: EnforcedStyle: camelCase

      # bad
      def foo_bar; end
      
      # good
      def fooBar; end

      Tab detected.
      Open

          #   - +unePositionX+ -> X
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

          # * *Arguments*    :
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

          #   - +unNouvelEtat+ -> Vrai/faux
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

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

      Use snake_case for variable names.
      Open

          def setEtat(unNouvelEtat)
      Severity: Minor
      Found in class/objetgui.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

      Surrounding space missing for operator +.
      Open

                  (unePositionSourisX >= @posx && unePositionSourisY >= @posy) && (unePositionSourisX <= @posx+@taillex && unePositionSourisY <= @posy+@tailley)
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Checks that operators have space around them, except for ** which should not have surrounding space.

      Example:

      # bad
      total = 3*4
      "apple"+"juice"
      my_number = 38/4
      a ** b
      
      # good
      total = 3 * 4
      "apple" + "juice"
      my_number = 38 / 4
      a**b

      Tab detected.
      Open

          private_class_method :new
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

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

      Tab detected.
      Open

              @etat = unNouvelEtat
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Use snake_case for variable names.
      Open

          def isOver(unePositionSourisX, unePositionSourisY)
      Severity: Minor
      Found in class/objetgui.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

      Extra empty line detected at class body beginning.
      Open

      
          include Comparable
      Severity: Minor
      Found in class/objetgui.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

      Tab detected.
      Open

          attr_reader :visible, :etat
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Use 2 (not 1) spaces for indentation.
      Open

              @designation, @posx, @posy, @posz, @taillex, @tailley, @survol = uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY, false
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      This cops checks for indentation that doesn't use the specified number of spaces.

      See also the IndentationConsistency cop which is the companion to this one.

      Example:

      # bad
      class A
       def test
        puts 'hello'
       end
      end
      
      # good
      class A
        def test
          puts 'hello'
        end
      end

      Example: IgnoredPatterns: ['^\s*module']

      # bad
      module A
      class B
        def test
        puts 'hello'
        end
      end
      end
      
      # good
      module A
      class B
        def test
          puts 'hello'
        end
      end
      end

      Tab detected.
      Open

          # Créer une instance d'un objet imprimable sur la sortie GL
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Use 2 (not 1) spaces for indentation.
      Open

              @etat = unNouvelEtat
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      This cops checks for indentation that doesn't use the specified number of spaces.

      See also the IndentationConsistency cop which is the companion to this one.

      Example:

      # bad
      class A
       def test
        puts 'hello'
       end
      end
      
      # good
      class A
        def test
          puts 'hello'
        end
      end

      Example: IgnoredPatterns: ['^\s*module']

      # bad
      module A
      class B
        def test
        puts 'hello'
        end
      end
      end
      
      # good
      module A
      class B
        def test
          puts 'hello'
        end
      end
      end

      Tab detected.
      Open

          #   - +uneDesignation+ -> nom de l'objet
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

          #   - bool
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

          #   - +unePositionY+ -> Y
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Use snake_case for variable names.
      Open

          def initialize(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY) # :nodoc:
      Severity: Minor
      Found in class/objetgui.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. [92/80]
      Open

          def creer(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY)
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Use only ascii symbols in comments.
      Open

      #*Classe abstraite répresentant les objets de l'interface, un objet générique
      Severity: Minor
      Found in class/objetgui.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 only ascii symbols in comments.
      Open

          #   - +unePositionSourisX+ -> Coordonnée X Souris
      Severity: Minor
      Found in class/objetgui.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

      Line is too long. [81/80]
      Open

          # Vérifie si le composant est survolée en précisant les coordonnées de la souris
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Use snake_case for variable names.
      Open

          def creer(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY)
      Severity: Minor
      Found in class/objetgui.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

      #*Tous les objets comme boutons ou textes héritent de InterfaceObject
      Severity: Minor
      Found in class/objetgui.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

      Tab detected.
      Open

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

      Use snake_case for variable names.
      Open

          def creer(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY)
      Severity: Minor
      Found in class/objetgui.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 creer(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY)
      Severity: Minor
      Found in class/objetgui.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

          #   - +unePositionSourisY+ -> Coordonnée Y Souris
      Severity: Minor
      Found in class/objetgui.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

      Tab detected.
      Open

          #   - +uneTailleY+ -> Taille axe Y en pixel
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Line is too long. [82/80]
      Open

          attr_accessor :designation, :posx, :posy, :posz, :taillex, :tailley, :survol, :id
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Use snake_case for variable names.
      Open

          def initialize(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY) # :nodoc:
      Severity: Minor
      Found in class/objetgui.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 isOver(unePositionSourisX, unePositionSourisY)
      Severity: Minor
      Found in class/objetgui.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

      Carriage return character detected.
      Open

      #
      # Author::    Sakyamar https://github.com/sakymar, Ousret https://github.com/Ousret
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Missing space after #.
      Open

      #*Tous les objets comme boutons ou textes héritent de InterfaceObject
      Severity: Minor
      Found in class/objetgui.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

      Tab detected.
      Open

              @designation, @posx, @posy, @posz, @taillex, @tailley, @survol = uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY, false
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

          # * *Returns*
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Use snake_case for variable names.
      Open

          def initialize(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY) # :nodoc:
      Severity: Minor
      Found in class/objetgui.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 creer(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY)
      Severity: Minor
      Found in class/objetgui.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

          #   - +unePositionZ+ -> Plan sur lequel l'objet sera disposé
      Severity: Minor
      Found in class/objetgui.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

      Tab detected.
      Open

          #   - +unePositionSourisY+ -> Coordonnée Y Souris
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

          attr_accessor :designation, :posx, :posy, :posz, :taillex, :tailley, :survol, :id
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

          # * *Returns*
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

          def creer(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY)
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

          # * *Returns*
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

          include Comparable
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

          #   - ObjetGUI
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

          # Change l'état du composant, actif ou inactif.
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

          def setEtat(unNouvelEtat)
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Line is too long. [154/80]
      Open

              @designation, @posx, @posy, @posz, @taillex, @tailley, @survol = uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY, false
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Use snake_case for variable names.
      Open

          def initialize(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY) # :nodoc:
      Severity: Minor
      Found in class/objetgui.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

      Tab detected.
      Open

          #   - +uneTailleX+ -> Taille axe X en pixel
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Line is too long. [107/80]
      Open

          def initialize(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY) # :nodoc:
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Line is too long. [87/80]
      Open

              new(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY)
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Use only ascii symbols in comments.
      Open

          # Créer une instance d'un objet imprimable sur la sortie GL
      Severity: Minor
      Found in class/objetgui.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 only ascii symbols in comments.
      Open

          # Change l'état du composant, actif ou inactif.
      Severity: Minor
      Found in class/objetgui.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 initialize(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY) # :nodoc:
      Severity: Minor
      Found in class/objetgui.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 creer(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY)
      Severity: Minor
      Found in class/objetgui.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

      Surrounding space missing for operator +.
      Open

                  (unePositionSourisX >= @posx && unePositionSourisY >= @posy) && (unePositionSourisX <= @posx+@taillex && unePositionSourisY <= @posy+@tailley)
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Checks that operators have space around them, except for ** which should not have surrounding space.

      Example:

      # bad
      total = 3*4
      "apple"+"juice"
      my_number = 38/4
      a ** b
      
      # good
      total = 3 * 4
      "apple" + "juice"
      my_number = 38 / 4
      a**b

      Tab detected.
      Open

          # * *Arguments*    :
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

          #   - nouvelEtat (bool)
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Tab detected.
      Open

          def <=>(other)
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Line is too long. [145/80]
      Open

                  (unePositionSourisX >= @posx && unePositionSourisY >= @posy) && (unePositionSourisX <= @posx+@taillex && unePositionSourisY <= @posy+@tailley)
      Severity: Minor
      Found in class/objetgui.class.rb by rubocop

      Use snake_case for variable names.
      Open

          def creer(uneDesignation, unePositionX, unePositionY, unePositionZ, uneTailleX, uneTailleY)
      Severity: Minor
      Found in class/objetgui.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