Ousret/Picross-L3S6

View on GitHub
class/text.class.rb

Summary

Maintainability
A
1 hr
Test Coverage

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

    def Text.creer(uneDesignation, unContenu, uneTaillePolice, unePositionX, unePositionY, unePositionZ)
Severity: Minor
Found in class/text.class.rb - About 45 mins to fix

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

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

      Tab detected.
      Open

          #     - +unContenu+ -> Chaine de caractères, le texte cible
      Severity: Minor
      Found in class/text.class.rb by rubocop

      Tab detected.
      Open

          #     - +unePositionX+ -> Position du texte sur l'axe X
      Severity: Minor
      Found in class/text.class.rb by rubocop

      Use snake_case for variable names.
      Open

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

          #     - +uneTaillePolice+ -> Taille de la police de caractère en pt
      Severity: Minor
      Found in class/text.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 2 (not 1) spaces for indentation.
      Open

          attr_accessor :contenu, :police, :ttf
      Severity: Minor
      Found in class/text.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

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

      Tab detected.
      Open

          #     - +unePositionY+ -> Position du texte sur l'axe Y
      Severity: Minor
      Found in class/text.class.rb by rubocop

      Use snake_case for variable names.
      Open

          def initialize(uneDesignation, unContenu, uneTaillePolice, unePositionX, unePositionY, unePositionZ) # :nodoc:
      Severity: Minor
      Found in class/text.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, unContenu, uneTaillePolice, unePositionX, unePositionY, unePositionZ) # :nodoc:
      Severity: Minor
      Found in class/text.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 setPolice(unePoliceTTF)
      Severity: Minor
      Found in class/text.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

      #Décrit par une chaîne de caracteres et une taille de police
      Severity: Minor
      Found in class/text.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

      Missing space after #.
      Open

          #Création d'une instance Texte
      Severity: Minor
      Found in class/text.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

      Use snake_case for method names.
      Open

          def setPolice(unePoliceTTF)
      Severity: Minor
      Found in class/text.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

      Use snake_case for variable names.
      Open

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

          #     - +unContenu+ -> Chaine de caractères, le texte cible
      Severity: Minor
      Found in class/text.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 beginning.
      Open

      
          attr_accessor :contenu, :police, :ttf
      Severity: Minor
      Found in class/text.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

          #     - +uneDesignation+ -> Désignation/identificateur du texte
      Severity: Minor
      Found in class/text.class.rb by rubocop

      Use only ascii symbols in comments.
      Open

          #Création d'une instance Texte
      Severity: Minor
      Found in class/text.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

      Carriage return character detected.
      Open

      #Classe représentant un champs Texte statique
      #Décrit par une chaîne de caracteres et une taille de police
      Severity: Minor
      Found in class/text.class.rb by rubocop

      Tab detected.
      Open

          attr_accessor :contenu, :police, :ttf
      Severity: Minor
      Found in class/text.class.rb by rubocop

      Tab detected.
      Open

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

      Tab detected.
      Open

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

      Tab detected.
      Open

          def Text.creer(uneDesignation, unContenu, uneTaillePolice, unePositionX, unePositionY, unePositionZ)
      Severity: Minor
      Found in class/text.class.rb by rubocop

      Line is too long. [91/80]
      Open

              new(uneDesignation, unContenu, uneTaillePolice, unePositionX, unePositionY, unePositionZ)
      Severity: Minor
      Found in class/text.class.rb by rubocop

      Use snake_case for variable names.
      Open

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

      #Décrit par une chaîne de caracteres et une taille de police
      Severity: Minor
      Found in class/text.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 self.creer instead of Text.creer.
      Open

          def Text.creer(uneDesignation, unContenu, uneTaillePolice, unePositionX, unePositionY, unePositionZ)
      Severity: Minor
      Found in class/text.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 2 (not 1) spaces for indentation.
      Open

              super(uneDesignation, unePositionX, unePositionY, unePositionZ, -1, -1)
      Severity: Minor
      Found in class/text.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

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

      Use snake_case for variable names.
      Open

          def Text.creer(uneDesignation, unContenu, uneTaillePolice, unePositionX, unePositionY, unePositionZ)
      Severity: Minor
      Found in class/text.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

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

      Use only ascii symbols in comments.
      Open

      #Classe représentant un champs Texte statique
      Severity: Minor
      Found in class/text.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/text.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

          def initialize(uneDesignation, unContenu, uneTaillePolice, unePositionX, unePositionY, unePositionZ) # :nodoc:
      Severity: Minor
      Found in class/text.class.rb by rubocop

      Tab detected.
      Open

              super(uneDesignation, unePositionX, unePositionY, unePositionZ, -1, -1)
      Severity: Minor
      Found in class/text.class.rb by rubocop

      Tab detected.
      Open

          def setPolice(unePoliceTTF)
      Severity: Minor
      Found in class/text.class.rb by rubocop

      Tab detected.
      Open

              @ttf = unePoliceTTF
      Severity: Minor
      Found in class/text.class.rb by rubocop

      Use 2 (not 1) spaces for indentation.
      Open

              @ttf = unePoliceTTF
      Severity: Minor
      Found in class/text.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

              new(uneDesignation, unContenu, uneTaillePolice, unePositionX, unePositionY, unePositionZ)
      Severity: Minor
      Found in class/text.class.rb by rubocop

      Tab detected.
      Open

          #    - Text
      Severity: Minor
      Found in class/text.class.rb by rubocop

      Use only ascii symbols in comments.
      Open

          #     - +uneDesignation+ -> Désignation/identificateur du texte
      Severity: Minor
      Found in class/text.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 2 (not 1) spaces for indentation.
      Open

              new(uneDesignation, unContenu, uneTaillePolice, unePositionX, unePositionY, unePositionZ)
      Severity: Minor
      Found in class/text.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

          #     - +unePositionZ+ -> Position du texte sur l'axe Z
      Severity: Minor
      Found in class/text.class.rb by rubocop

      Use snake_case for variable names.
      Open

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

          #Création d'une instance Texte
      Severity: Minor
      Found in class/text.class.rb by rubocop

      Tab detected.
      Open

          #     - +uneTaillePolice+ -> Taille de la police de caractère en pt
      Severity: Minor
      Found in class/text.class.rb by rubocop

      Line is too long. [111/80]
      Open

          def initialize(uneDesignation, unContenu, uneTaillePolice, unePositionX, unePositionY, unePositionZ) # :nodoc:
      Severity: Minor
      Found in class/text.class.rb by rubocop

      Do not use parallel assignment.
      Open

              @contenu, @police, @ttf = unContenu, uneTaillePolice, nil
      Severity: Minor
      Found in class/text.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 Text.creer(uneDesignation, unContenu, uneTaillePolice, unePositionX, unePositionY, unePositionZ)
      Severity: Minor
      Found in class/text.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 champs Texte statique
      Severity: Minor
      Found in class/text.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

              @contenu, @police, @ttf = unContenu, uneTaillePolice, nil
      Severity: Minor
      Found in class/text.class.rb by rubocop

      Tab detected.
      Open

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

      Line is too long. [101/80]
      Open

          def Text.creer(uneDesignation, unContenu, uneTaillePolice, unePositionX, unePositionY, unePositionZ)
      Severity: Minor
      Found in class/text.class.rb by rubocop

      Use snake_case for variable names.
      Open

          def Text.creer(uneDesignation, unContenu, uneTaillePolice, unePositionX, unePositionY, unePositionZ)
      Severity: Minor
      Found in class/text.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