bcdice/BCDice

View on GitHub

Showing 691 of 1,069 total issues

File YankeeYogSothoth.rb has 412 lines of code (exceeds 250 allowed). Consider refactoring.
Open

Severity: Minor
Found in lib/bcdice/game_system/YankeeYogSothoth.rb - About 5 hrs to fix

    File MeikyuKingdom.rb has 398 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    Severity: Minor
    Found in lib/bcdice/game_system/MeikyuKingdom.rb - About 5 hrs to fix

      File LogHorizon.rb has 396 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      Severity: Minor
      Found in lib/bcdice/game_system/LogHorizon.rb - About 5 hrs to fix

        Method translate_tables has 135 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                def translate_tables(locale)
                  costume_challenge_girls = CostumeTable.from_i18n("BeginningIdol.tables.DT", locale)
                  costume_road_to_prince = CostumeTable.from_i18n("BeginningIdol.tables.RC", locale)
                  costume_fortune_stars = CostumeTable.from_i18n("BeginningIdol.tables.FC", locale)
        
        
        Severity: Major
        Found in lib/bcdice/game_system/beginning_idol/table.rb - About 5 hrs to fix

          File TorgEternity.rb has 391 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          Severity: Minor
          Found in lib/bcdice/game_system/TorgEternity.rb - About 5 hrs to fix

            Method eval_game_system_specific_command has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
            Open

            Severity: Minor
            Found in lib/bcdice/game_system/ArsMagica.rb - About 5 hrs to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            File MeikyuDays.rb has 385 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            Severity: Minor
            Found in lib/bcdice/game_system/MeikyuDays.rb - About 5 hrs to fix

              Method eval_game_system_specific_command has 131 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              Severity: Major
              Found in lib/bcdice/game_system/BladeOfArcana.rb - About 5 hrs to fix

                File name_table.rb has 382 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                Severity: Minor
                Found in lib/bcdice/game_system/meikyu_kingdom_basic/name_table.rb - About 5 hrs to fix

                  File BlindMythos.rb has 379 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  Severity: Minor
                  Found in lib/bcdice/game_system/BlindMythos.rb - About 5 hrs to fix

                    File BloodCrusade.rb has 378 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    Severity: Minor
                    Found in lib/bcdice/game_system/BloodCrusade.rb - About 5 hrs to fix

                      Class MeikyuKingdom has 38 methods (exceeds 20 allowed). Consider refactoring.
                      Open

                      Severity: Minor
                      Found in lib/bcdice/game_system/meikyu_kingdom/tables.rb - About 5 hrs to fix

                        File Ayabito.rb has 374 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        Severity: Minor
                        Found in lib/bcdice/game_system/Ayabito.rb - About 5 hrs to fix

                          File BadLife.rb has 373 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          Severity: Minor
                          Found in lib/bcdice/game_system/BadLife.rb - About 4 hrs to fix

                            File HuntersMoon.rb has 371 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            Severity: Minor
                            Found in lib/bcdice/game_system/HuntersMoon.rb - About 4 hrs to fix

                              File KillDeathBusiness.rb has 352 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              Severity: Minor
                              Found in lib/bcdice/game_system/KillDeathBusiness.rb - About 4 hrs to fix

                                File node.rb has 352 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                Severity: Minor
                                Found in lib/bcdice/common_command/add_dice/node.rb - About 4 hrs to fix

                                  File event_tables.rb has 350 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  Severity: Minor
                                  Found in lib/bcdice/game_system/filled_with/event_tables.rb - About 4 hrs to fix

                                    File item_table.rb has 349 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    Severity: Minor
                                    Found in lib/bcdice/game_system/meikyu_kingdom_basic/item_table.rb - About 4 hrs to fix

                                      Method getCriticalResult has 109 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      Severity: Major
                                      Found in lib/bcdice/game_system/Warhammer.rb - About 4 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language