bcdice/BCDice

View on GitHub

Showing 691 of 1,069 total issues

File tables.rb has 531 lines of code (exceeds 250 allowed). Consider refactoring.
Open

Severity: Major
Found in lib/bcdice/game_system/meikyu_kingdom/tables.rb - About 1 day to fix

    File DeadlineHeroes.rb has 519 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    Severity: Major
    Found in lib/bcdice/game_system/DeadlineHeroes.rb - About 1 day to fix

      File Yggdrasill.rb has 517 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      Severity: Major
      Found in lib/bcdice/game_system/Yggdrasill.rb - About 1 day to fix

        File InfiniteBabeL.rb has 504 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        Severity: Major
        Found in lib/bcdice/game_system/InfiniteBabeL.rb - About 1 day to fix

          File tables.rb has 493 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

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

            File TwilightGunsmoke.rb has 492 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

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

              File ColossalHunter.rb has 492 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

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

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

                Severity: Minor
                Found in lib/bcdice/game_system/GurpsFW.rb - About 7 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 BattleTech.rb has 481 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

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

                  File Cthulhu7th.rb has 481 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

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

                    File SteamPunkers.rb has 479 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

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

                      File DemonParasite.rb has 479 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

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

                        File Villaciel.rb has 472 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

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

                          File Dracurouge.rb has 468 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

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

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

                            Severity: Minor
                            Found in lib/bcdice/game_system/TunnelsAndTrolls.rb - About 7 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 DarkDaysDrive.rb has 442 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

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

                              Class Elysion has 47 methods (exceeds 20 allowed). Consider refactoring.
                              Open

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

                                File ShinkuuGakuen.rb has 431 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

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

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

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

                                    File GardenOrder.rb has 420 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    Severity: Minor
                                    Found in lib/bcdice/game_system/GardenOrder.rb - About 6 hrs to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language