o-jill/washcrus

View on GitHub

Showing 97 of 97 total issues

File ui.js has 623 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
* ban: 将棋盤の色(画像の時はtransparentにする)
* hover: マス目にカーソルが乗った時の色
* active: 選択中のマス目の色
* movable: 選択中の駒が指せるマス目の色
Severity: Major
Found in js/ui.js - About 1 day to fix

    Class has too many lines. [261/250]
    Open

    class TaikyokuData
    include MyLock
    # 初期化
    def initialize
    # @idb = '', @playerb = '', @emailb = ''
    Severity: Minor
    Found in game/taikyokudata.rb by rubocop

    Class WashCrus has 39 methods (exceeds 20 allowed). Consider refactoring.
    Open

    class WashCrus
    # 初期化
    #
    # @param cgi CGIオブジェクト
    def initialize(cgi)
    Severity: Minor
    Found in washcrus.rb - About 5 hrs to fix

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

      function randomchoose(anim, fu, to) {
      var koma = document.getElementById(anim);
      koma.style.display = 'none';
      var value;
      if (Math.random() < 0.5) {
      Severity: Major
      Found in js/newgame.js and 1 other location - About 4 hrs to fix
      js/lounge.js on lines 116..129

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

      function randomchoose(anim, fu, to) {
      var koma = document.getElementById(anim);
      koma.style.display = 'none';
      var value;
      if (Math.random() < 0.5) {
      Severity: Major
      Found in js/lounge.js and 1 other location - About 4 hrs to fix
      js/newgame.js on lines 162..175

      Class MatchInfoFile has 36 methods (exceeds 20 allowed). Consider refactoring.
      Open

      class MatchInfoFile
      include MatchInfoFileUtil
      # 初期化
      #
      # @param gameid 対局ID
      Severity: Minor
      Found in file/matchinfofile.rb - About 4 hrs to fix

        Class TaikyokuData has 34 methods (exceeds 20 allowed). Consider refactoring.
        Open

        class TaikyokuData
        include MyLock
        # 初期化
        def initialize
        # @idb = '', @playerb = '', @emailb = ''
        Severity: Minor
        Found in game/taikyokudata.rb - About 4 hrs to fix

          File komaabs.js has 322 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /**
          * 汎用駒クラス
          *
          * @class
          * @constructor
          Severity: Minor
          Found in js/komaabs.js - About 3 hrs to fix

            Class BrowserTestAbstract has 29 methods (exceeds 20 allowed). Consider refactoring.
            Open

            class BrowserTestAbstract
            def initialize
            # Firefox用のドライバを使う
            @driver = Selenium::WebDriver.for :firefox
            @wait = Selenium::WebDriver::Wait.new(timeout: 10)
            Severity: Minor
            Found in travisci/browsertestabs.rb - About 3 hrs to fix

              File kifu.js has 307 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /**
              * 棋譜管理クラス
              *
              * @class
              * @constructor
              Severity: Minor
              Found in js/kifu.js - About 3 hrs to fix

                Class BrowserTest has 28 methods (exceeds 20 allowed). Consider refactoring.
                Open

                class BrowserTest < BrowserTestAbstract
                def initialize
                super
                end
                 
                 
                Severity: Minor
                Found in travisci/browsertest.rb - About 3 hrs to fix

                  File taikyokudata.rb has 280 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  require 'digest/sha2'
                  require 'time'
                  require 'uri'
                  require 'logger'
                   
                   
                  Severity: Minor
                  Found in game/taikyokudata.rb - About 2 hrs to fix

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                    function lets_furigoma2() {
                    init_furigoma('2')
                     
                    var btn = document.getElementById('btnfurigoma2');
                    btn.disabled = true;
                    Severity: Major
                    Found in js/newgame.js and 1 other location - About 2 hrs to fix
                    js/newgame.js on lines 150..160

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                    function lets_furigoma() {
                    init_furigoma('')
                     
                    var btn = document.getElementById('btnfurigoma')
                    btn.disabled = true;
                    Severity: Major
                    Found in js/newgame.js and 1 other location - About 2 hrs to fix
                    js/newgame.js on lines 238..248

                    Class TestGame has 23 methods (exceeds 20 allowed). Consider refactoring.
                    Open

                    class TestGame < TestGameAbstract
                    # 初期化
                    def initialize
                    super
                    end
                    Severity: Minor
                    Found in travisci/testgame.rb - About 2 hrs to fix

                      Class JsonKifu has 23 methods (exceeds 20 allowed). Consider refactoring.
                      Open

                      class JsonKifu
                      # 初期化
                      #
                      # @param tid 対局ID
                      def initialize(tid)
                      Severity: Minor
                      Found in file/jsonkifu.rb - About 2 hrs to fix

                        Class UserInfoFileContent has 23 methods (exceeds 20 allowed). Consider refactoring.
                        Open

                        class UserInfoFileContent
                        KEY = Globals::KEY
                         
                        # 初期化
                        def initialize
                        Severity: Minor
                        Found in file/userinfofilecontent.rb - About 2 hrs to fix

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

                          class TaikyokuFileContent
                          # 初期化
                          def initialize
                          @idbs = {}
                          @idws = {}
                          Severity: Minor
                          Found in file/taikyokufilecontent.rb - About 2 hrs to fix

                            Similar blocks of code found in 2 locations. Consider refactoring.
                            Open

                            function check_form_mypageemail()
                            {
                            var nmismatch = 0;
                            var alertmsg = '';
                             
                             
                            Severity: Major
                            Found in js/mypage.js and 1 other location - About 2 hrs to fix
                            js/mypage.js on lines 3..19

                            Similar blocks of code found in 2 locations. Consider refactoring.
                            Open

                            function check_form_mypagepswd()
                            {
                            var nmismatch = 0;
                            var alertmsg = '';
                             
                             
                            Severity: Major
                            Found in js/mypage.js and 1 other location - About 2 hrs to fix
                            js/mypage.js on lines 21..37
                            Severity
                            Category
                            Status
                            Source
                            Language