Showing 1,106 of 1,163 total issues
File GurpsFW.rb
has 2108 lines of code (exceeds 250 allowed). Consider refactoring. Open
module BCDice
module GameSystem
class GurpsFW < Base
# ゲームシステムの識別子
ID = 'GurpsFW'
Method getRandomDiff
has 844 lines of code (exceeds 25 allowed). Consider refactoring. Open
def getRandomDiff(dice1, dice23, dif, index)
table = []
case dice1
when 1 # 洞窟
Similar blocks of code found in 2 locations. Consider refactoring. Open
module GameSystem
class Cthulhu7th_Korean < Base
# ゲームシステムの識別子
ID = 'Cthulhu7th:Korean'
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 838.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
module GameSystem
class Cthulhu7th_ChineseTraditional < Base
# ゲームシステムの識別子
ID = 'Cthulhu7th:ChineseTraditional'
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 838.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
File ShinobiGami.rb
has 1148 lines of code (exceeds 250 allowed). Consider refactoring. Open
require 'bcdice/dice_table/table'
module BCDice
module GameSystem
class ShinobiGami < Base
File Elysion.rb
has 1110 lines of code (exceeds 250 allowed). Consider refactoring. Open
module BCDice
module GameSystem
class Elysion < Base
# ゲームシステムの識別子
ID = 'Elysion'
Method eval_game_system_specific_command
has 462 lines of code (exceeds 25 allowed). Consider refactoring. Open
def eval_game_system_specific_command(string)
tableName = ""
result = ""
number = 0
File table.rb
has 912 lines of code (exceeds 250 allowed). Consider refactoring. Open
module BCDice
module GameSystem
class MeikyuKingdomBasic
TABLES = {
"TBT" => DiceTable::Table.new(
Method getRandomEvent
has 417 lines of code (exceeds 25 allowed). Consider refactoring. Open
def getRandomEvent(dice1, dice2, diff)
case diff
when "E"
dif = "初級"
d = 0
File MetalHeadExtream.rb
has 828 lines of code (exceeds 250 allowed). Consider refactoring. Open
module BCDice
module GameSystem
class MetalHeadExtream < Base
# ゲームシステムの識別子
ID = 'MetalHeadExtream'
File HeroScale.rb
has 762 lines of code (exceeds 250 allowed). Consider refactoring. Open
module BCDice
module GameSystem
class HeroScale < Base
# ゲームシステムの識別子
ID = 'HeroScale'
File KanColle.rb
has 754 lines of code (exceeds 250 allowed). Consider refactoring. Open
require 'bcdice/dice_table/table'
module BCDice
module GameSystem
class KanColle < Base
File tables.rb
has 717 lines of code (exceeds 250 allowed). Consider refactoring. Open
module BCDice
module GameSystem
class Satasupe < Base
TAG_TABLE = DiceTable::D66GridTable.new(
"タグ決定表",
File HatsuneMiku.rb
has 712 lines of code (exceeds 250 allowed). Consider refactoring. Open
module BCDice
module GameSystem
class HatsuneMiku < Base
# ゲームシステムの識別子
ID = 'HatsuneMiku'
Method get_hit_table
has 313 lines of code (exceeds 25 allowed). Consider refactoring. Open
def get_hit_table(hitPart, roc)
case hitPart
when 'HU'
name = '命中部位表:人間'
table = [
File tables.rb
has 655 lines of code (exceeds 250 allowed). Consider refactoring. Open
module BCDice
module GameSystem
class OneWayHeroics < Base
class GoldFlow
def initialize(times, action)
File ShoujoTenrankai.rb
has 652 lines of code (exceeds 250 allowed). Consider refactoring. Open
module BCDice
module GameSystem
class ShoujoTenrankai < Base
# ゲームシステムの識別子
ID = 'ShoujoTenrankai'
File Garako.rb
has 615 lines of code (exceeds 250 allowed). Consider refactoring. Open
require 'bcdice/dice_table/table'
require 'bcdice/dice_table/range_table'
require 'bcdice/format'
module BCDice
File StarryDolls.rb
has 608 lines of code (exceeds 250 allowed). Consider refactoring. Open
require "bcdice/dice_table/chain_table"
require "bcdice/dice_table/sai_fic_skill_table"
require "bcdice/dice_table/table"
require "bcdice/format"
File IfIfIf.rb
has 607 lines of code (exceeds 250 allowed). Consider refactoring. Open
module BCDice
module GameSystem
class IfIfIf < Base
ID = "IfIfIf"