yasuhito/text2048

View on GitHub

Showing 3 of 3 total issues

Class Board has 22 methods (exceeds 20 allowed). Consider refactoring.
Open

  class Board
    # @return [Number] returns the current score
    attr_reader :score

    def initialize(tiles = Array.new(4, Array.new(4)), score = 0)
Severity: Minor
Found in lib/text2048/board.rb - About 2 hrs to fix

Class Tile has 22 methods (exceeds 20 allowed). Consider refactoring.
Open

    class Tile
      attr_reader :width
      attr_reader :height
      attr_reader :color

Severity: Minor
Found in lib/text2048/curses_view/tile.rb - About 2 hrs to fix

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

      def initialize(tile, row, col, color, scale = 1)
Severity: Minor
Found in lib/text2048/curses_view/tile.rb - About 35 mins to fix
Severity
Category
Status
Source
Language