bcdice/BCDice

View on GitHub

Showing 809 of 1,233 total issues

Avoid too many return statements within this method.
Open

        return roll_tables(command, TABLES)
Severity: Major
Found in lib/bcdice/game_system/BlindMythos.rb - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return Result.failure(result)
    Severity: Major
    Found in lib/bcdice/game_system/BlindMythos.rb - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return "失敗"
      Severity: Major
      Found in lib/bcdice/game_system/Cthulhu7th_ChineseTraditional.rb - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                  return Result.critical('決定的成功') if total <= target
        Severity: Major
        Found in lib/bcdice/game_system/EclipsePhase.rb - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return nil
          Severity: Major
          Found in lib/bcdice/game_system/BladeOfArcana.rb - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return output
            Severity: Major
            Found in lib/bcdice/game_system/Cthulhu7th_ChineseTraditional.rb - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return Result.fumble(result)
              Severity: Major
              Found in lib/bcdice/game_system/BlindMythos.rb - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                          return Result.fumble('決定的失敗')
                Severity: Major
                Found in lib/bcdice/game_system/EclipsePhase.rb - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return Result.success(result)
                  Severity: Major
                  Found in lib/bcdice/game_system/BlindMythos.rb - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                return fumble_text
                    Severity: Major
                    Found in lib/bcdice/game_system/Cthulhu7th_ChineseTraditional.rb - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return fumble_text if total == 100
                      Severity: Major
                      Found in lib/bcdice/game_system/Cthulhu7th_ChineseTraditional.rb - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                  return tableText(title, table, sign)
                        Severity: Major
                        Found in lib/bcdice/game_system/BladeOfArcana.rb - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                      return Result.failure(output)
                          Severity: Major
                          Found in lib/bcdice/game_system/DivineCharger.rb - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                    return '', []
                            Severity: Major
                            Found in lib/bcdice/game_system/Elysion.rb - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      return nil
                              Severity: Major
                              Found in lib/bcdice/game_system/LostRoyal.rb - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return 'Poor(お粗末)' if stepTotal >= poor
                                Severity: Major
                                Found in lib/bcdice/game_system/EarthDawn3.rb - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                          return 'Pathetic(惨め)' if stepTotal >= pathetic
                                  Severity: Major
                                  Found in lib/bcdice/game_system/EarthDawn3.rb - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                              return roll_hope(Regexp.last_match(1).to_i)
                                    Severity: Major
                                    Found in lib/bcdice/game_system/LostRoyal.rb - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                            return result_ndx(total, cmp_op, target)
                                      Severity: Major
                                      Found in lib/bcdice/base.rb - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                              return ret if ret
                                        Severity: Major
                                        Found in lib/bcdice/base.rb - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language