bcdice/BCDice

View on GitHub

Showing 367 of 1,233 total issues

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

        when 'CS'
          name = '命中部位表:通常・格闘型コンバットシェル'
          table = [
            [1, '本体(クリティカル)'],
            [2, '本体'],
Severity: Major
Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

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 37.

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

Further Reading

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

        when 'TH'
          name = '命中部位表:可変・重コンバットシェル'
          table = [
            [1, '本体(クリティカル)'],
            [2, '本体'],
Severity: Major
Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

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 37.

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

Further Reading

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

        when 'AI'
          name = '命中部位表:エアクラフト'
          table = [
            [1, '本体(クリティカル)'],
            [2, '本体'],
Severity: Major
Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

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 37.

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

Further Reading

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

        'UST' => DiceTable::D66LeftRangeTable.new(
          '上野シーン表',
          D66SortType::NO_SORT,
          [
            [1..1, Array.new(6, "子~巳までの任意の十二支を選択する。")],
Severity: Major
Found in lib/bcdice/game_system/Ayabito.rb and 8 other locations - About 40 mins to fix
lib/bcdice/game_system/Ayabito.rb on lines 136..158
lib/bcdice/game_system/Ayabito.rb on lines 160..182
lib/bcdice/game_system/Ayabito.rb on lines 184..206
lib/bcdice/game_system/Ayabito.rb on lines 246..268
lib/bcdice/game_system/Ayabito.rb on lines 294..316
lib/bcdice/game_system/Ayabito.rb on lines 318..340
lib/bcdice/game_system/Ayabito.rb on lines 342..364
lib/bcdice/game_system/Ayabito.rb on lines 366..388

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 37.

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

Further Reading

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

        when 'HT'
          name = '命中部位表:ホバータンク'
          table = [
            [1, '本体(クリティカル)'],
            [2, '本体'],
Severity: Major
Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

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 37.

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

Further Reading

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

        when 'G'
          name = '格闘アクシデント表'
          table = [
            [1, '体勢を崩す。その攻撃は失敗する。'],
            [2, '体勢を崩す。その攻撃は失敗する。'],
Severity: Major
Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

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 37.

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

Further Reading

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

        when 'AC'
          name = '命中部位表:装甲車'
          table = [
            [1, '本体(クリティカル)'],
            [2, '本体'],
Severity: Major
Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

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 37.

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

Further Reading

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

        when 'HE'
          name = '命中部位表:ヘリ'
          table = [
            [1, '本体(クリティカル)'],
            [2, '本体'],
Severity: Major
Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

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 37.

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

Further Reading

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

        when 'E'
          name = '電子攻撃アクシデント表'
          table = [
            [1, 'ショック。攻撃は失敗する。'],
            [2, 'ショック。攻撃は失敗する。'],
Severity: Major
Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733

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 37.

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

Further Reading

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

        'NST' => DiceTable::D66LeftRangeTable.new(
          '日本橋シーン表',
          D66SortType::NO_SORT,
          [
            [1..1, Array.new(6, "子~巳までの任意の十二支を選択する。")],
Severity: Major
Found in lib/bcdice/game_system/Ayabito.rb and 8 other locations - About 40 mins to fix
lib/bcdice/game_system/Ayabito.rb on lines 136..158
lib/bcdice/game_system/Ayabito.rb on lines 160..182
lib/bcdice/game_system/Ayabito.rb on lines 184..206
lib/bcdice/game_system/Ayabito.rb on lines 246..268
lib/bcdice/game_system/Ayabito.rb on lines 270..292
lib/bcdice/game_system/Ayabito.rb on lines 318..340
lib/bcdice/game_system/Ayabito.rb on lines 342..364
lib/bcdice/game_system/Ayabito.rb on lines 366..388

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 37.

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

Further Reading

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

        'AST' => DiceTable::D66LeftRangeTable.new(
          '浅草シーン表',
          D66SortType::NO_SORT,
          [
            [1..1, Array.new(6, "子~巳までの任意の十二支を選択する。")],
Severity: Major
Found in lib/bcdice/game_system/Ayabito.rb and 8 other locations - About 40 mins to fix
lib/bcdice/game_system/Ayabito.rb on lines 136..158
lib/bcdice/game_system/Ayabito.rb on lines 160..182
lib/bcdice/game_system/Ayabito.rb on lines 184..206
lib/bcdice/game_system/Ayabito.rb on lines 270..292
lib/bcdice/game_system/Ayabito.rb on lines 294..316
lib/bcdice/game_system/Ayabito.rb on lines 318..340
lib/bcdice/game_system/Ayabito.rb on lines 342..364
lib/bcdice/game_system/Ayabito.rb on lines 366..388

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 37.

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

Further Reading

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

        'GST' => DiceTable::D66LeftRangeTable.new(
          '銀座シーン表',
          D66SortType::NO_SORT,
          [
            [1..1, Array.new(6, "子~巳までの任意の十二支を選択する。")],
Severity: Major
Found in lib/bcdice/game_system/Ayabito.rb and 8 other locations - About 40 mins to fix
lib/bcdice/game_system/Ayabito.rb on lines 136..158
lib/bcdice/game_system/Ayabito.rb on lines 160..182
lib/bcdice/game_system/Ayabito.rb on lines 184..206
lib/bcdice/game_system/Ayabito.rb on lines 246..268
lib/bcdice/game_system/Ayabito.rb on lines 270..292
lib/bcdice/game_system/Ayabito.rb on lines 294..316
lib/bcdice/game_system/Ayabito.rb on lines 342..364
lib/bcdice/game_system/Ayabito.rb on lines 366..388

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 37.

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

Further Reading

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

        'TST' => DiceTable::D66LeftRangeTable.new(
          '帝都東京シーン表',
          D66SortType::NO_SORT,
          [
            [1..1, Array.new(6, "子~巳までの任意の十二支を選択する。")],
Severity: Major
Found in lib/bcdice/game_system/Ayabito.rb and 8 other locations - About 40 mins to fix
lib/bcdice/game_system/Ayabito.rb on lines 160..182
lib/bcdice/game_system/Ayabito.rb on lines 184..206
lib/bcdice/game_system/Ayabito.rb on lines 246..268
lib/bcdice/game_system/Ayabito.rb on lines 270..292
lib/bcdice/game_system/Ayabito.rb on lines 294..316
lib/bcdice/game_system/Ayabito.rb on lines 318..340
lib/bcdice/game_system/Ayabito.rb on lines 342..364
lib/bcdice/game_system/Ayabito.rb on lines 366..388

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 37.

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

Further Reading

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

      def getStrikeLocationHumanUpperTable()
        table = [
          [15, "頭部"],
          [30, "顔+"],
          [45, "首"],
Severity: Minor
Found in lib/bcdice/game_system/HarnMaster.rb and 1 other location - About 35 mins to fix
lib/bcdice/game_system/HarnMaster.rb on lines 184..197

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 36.

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

Further Reading

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

      def getStrikeLocationHumanDownTable()
        table = [
          [6, "*前腕"],
          [12, "*手"],
          [19, "胸部"],
Severity: Minor
Found in lib/bcdice/game_system/HarnMaster.rb and 1 other location - About 35 mins to fix
lib/bcdice/game_system/HarnMaster.rb on lines 146..159

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 36.

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

Further Reading

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

        when /^KNT(\d+)/i
          type = '王国名'
          count = getCount(Regexp.last_match(1))
          total_n = @randomizer.roll_d66(D66SortType::ASC)

Severity: Minor
Found in lib/bcdice/game_system/MeikyuKingdom.rb and 1 other location - About 35 mins to fix
lib/bcdice/game_system/MeikyuKingdomBasic.rb on lines 179..190

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 35.

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

Further Reading

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

        table = [
          [2, "モンスタースキル"],
          [3, "便利スキル"],
          [4, "芸能スキル"],
          [5, "迷宮スキル"],
Severity: Minor
Found in lib/bcdice/game_system/meikyu_kingdom/item_table.rb and 2 other locations - About 35 mins to fix
lib/bcdice/game_system/Postman.rb on lines 131..143
lib/bcdice/game_system/Postman.rb on lines 163..175

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 35.

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

Further Reading

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

        table = [
          [2, '何をするでもなく、霞がかったような夜空を見上げる。ふと隣に目を向ければ、彼/彼女が居た。彼/彼女は、こうなる前の夜空を知っているのだろうか。'],
          [3, '夢を見た。大戦の最中、街が、人が、世界が焼けていく悪夢を。追い立てられるようにして目を覚ますと、彼/彼女が君を見ていた。 ……もしかして、自分はよほどうなされていたのだろうか。'],
          [4, '周囲で見つけたガラクタを使って、ちょっとしたビックリ玩具を作ってみた。「彼/ 彼女」にコイツをけしかけたら、どんな反応をするだろうか?'],
          [5, '使えそうなものがないか探していると、カタンと物音がして何かが落ちた。拾い上げてみたそれは、かつてここで生活していた誰かの名残(写真、家具、玩具等)だった。'],
Severity: Minor
Found in lib/bcdice/game_system/Postman.rb and 2 other locations - About 35 mins to fix
lib/bcdice/game_system/Postman.rb on lines 131..143
lib/bcdice/game_system/meikyu_kingdom/item_table.rb on lines 284..296

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 35.

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

Further Reading

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

          when /^KNT(\d+)/i
            type = '王国名決定'
            count = getCount(Regexp.last_match(1))
            total_n = @randomizer.roll_d66(D66SortType::ASC)

Severity: Minor
Found in lib/bcdice/game_system/MeikyuKingdomBasic.rb and 1 other location - About 35 mins to fix
lib/bcdice/game_system/MeikyuKingdom.rb on lines 399..410

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 35.

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

Further Reading

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

        table = [
          [2, '大雨と強風。探索判定の難易度に+4。'],
          [3, '風が強い1日になりそう。探索判定の難易度に+2。'],
          [4, '晴れ。特になし。'],
          [5, '夜の間の雨でぬかるむ。探索判定の難易度に+2。'],
Severity: Minor
Found in lib/bcdice/game_system/Postman.rb and 2 other locations - About 35 mins to fix
lib/bcdice/game_system/Postman.rb on lines 163..175
lib/bcdice/game_system/meikyu_kingdom/item_table.rb on lines 284..296

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 35.

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

Further Reading

Severity
Category
Status
Source
Language