bcdice/BCDice

View on GitHub

Showing 367 of 1,233 total issues

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

        when 'BG'
          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 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
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 'S'
          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 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 'WA'
          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 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
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 'TR'
          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 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 'AM'
          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 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 'GD'
          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 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 9 locations. Consider refactoring.
Open

        'BST' => 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 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 9 locations. Consider refactoring.
Open

        'SST' => 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 318..340
lib/bcdice/game_system/Ayabito.rb on lines 342..364

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 'SC'
          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 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
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 'VT'
          name = '命中部位表:VTOL'
          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 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 'M'
          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 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 'BO'
          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 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 'BI'
          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 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 'BK'
          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 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
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 'HU'
          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 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
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 'BT'
          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 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 'PT'
          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 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
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 'HC'
          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 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 9 locations. Consider refactoring.
Open

        'CET' => 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 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 9 locations. Consider refactoring.
Open

        'KST' => 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 318..340
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

Severity
Category
Status
Source
Language