bcdice/BCDice

View on GitHub
lib/bcdice/game_system/Villaciel.rb

Summary

Maintainability
D
1 day
Test Coverage
A
98%

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

module BCDice
  module GameSystem
    class Villaciel < Base
      # ゲームシステムの識別子
      ID = 'Villaciel'
Severity: Minor
Found in lib/bcdice/game_system/Villaciel.rb - About 7 hrs to fix

    Method use_edible_plant_chart has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
    Open

          def use_edible_plant_chart(command)
            match_data = command.match(/EP([VA]?)(\d?)/)
            chart_symbol = match_data[1] == '' ? 'V' : match_data[1]
    
            case chart_symbol
    Severity: Minor
    Found in lib/bcdice/game_system/Villaciel.rb - About 3 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

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

          def eval_game_system_specific_command(command)
            case command
            when /\d+VBS/
              resolute_action(command)
            when /\d+VF/
    Severity: Minor
    Found in lib/bcdice/game_system/Villaciel.rb - About 1 hr to fix

      Method use_mohumohu_chart has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
      Open

            def use_mohumohu_chart(command)
              case command
              when 'MMI' then use_6x6_chart(MOHUMOHU_INSECT_CHART, 'もふもふ表・昆虫')
              when 'MMA' then use_6x6_chart(MOHUMOHU_ANIMAL_CHART, 'もふもふ表・動物')
              when /MMV[VA]?/
      Severity: Minor
      Found in lib/bcdice/game_system/Villaciel.rb - About 1 hr to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Method use_petit_quest_chart has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
      Open

            def use_petit_quest_chart(command)
              match_data = command.match(/PQ([VA]?)/)
              chart_symbol = match_data[1] == '' ? 'V' : match_data[1]
      
              roll_result1 = @randomizer.roll_once(D6)
      Severity: Minor
      Found in lib/bcdice/game_system/Villaciel.rb - About 25 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Similar blocks of code found in 15 locations. Consider refactoring.
      Wontfix

            FISHING_RIVER_CHART = [['ケイカンセキ', 'ケイカンセキ', 'ケイカンセキ', 'ケイカンセキ', 'カナリア', 'イワヌ'].freeze,
                                   ['ケイカンセキ', 'ケイカンセキ', 'カナリア', 'カナリア', 'カナリア', 'イワヌ'].freeze,
                                   ['ケイカンセキ', 'ケイカンセキ', 'カナリア', 'イワヌ', 'イワヌ', 'ヤマブキ'].freeze,
                                   ['ケイカンセキ', 'カナリア', 'イワヌ', 'アメイロ', 'アメイロ', 'ヤマブキ'].freeze,
                                   ['カナリア', 'カナリア', 'イワヌ', 'アメイロ', 'ヤマブキ', 'ヤマブキ'].freeze,
      Severity: Major
      Found in lib/bcdice/game_system/Villaciel.rb and 14 other locations - About 1 hr to fix
      lib/bcdice/game_system/Villaciel.rb on lines 312..317
      lib/bcdice/game_system/Villaciel.rb on lines 319..324
      lib/bcdice/game_system/Villaciel.rb on lines 329..334
      lib/bcdice/game_system/Villaciel.rb on lines 336..341
      lib/bcdice/game_system/Villaciel.rb on lines 362..367
      lib/bcdice/game_system/Villaciel.rb on lines 376..381
      lib/bcdice/game_system/Villaciel.rb on lines 383..388
      lib/bcdice/game_system/Villaciel.rb on lines 390..395
      lib/bcdice/game_system/Villaciel.rb on lines 397..402
      lib/bcdice/game_system/Villaciel.rb on lines 404..409
      lib/bcdice/game_system/Villaciel.rb on lines 423..428
      lib/bcdice/game_system/Villaciel.rb on lines 430..435
      lib/bcdice/game_system/Villaciel.rb on lines 531..536
      lib/bcdice/game_system/Villaciel.rb on lines 542..547

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

      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 15 locations. Consider refactoring.
      Wontfix

            FISHING_WHITE_CHART = [['ウメガサネ', 'ウメガサネ', 'ウメガサネ', 'ウメガサネ', 'ハネズ', 'ユルシ'].freeze,
                                   ['ウメガサネ', 'ウメガサネ', 'ウメガサネ', 'ハネズ', 'ソホ', 'シンク'].freeze,
                                   ['ウメガサネ', 'ウメガサネ', 'ハネズ', 'ソホ', 'ユルシ', 'ユルシ'].freeze,
                                   ['ウメガサネ', 'ハネズ', 'ソホ', 'ユルシ', 'シンク', 'シンク'].freeze,
                                   ['ハネズ', 'ソホ', 'ソホ', 'ユルシ', 'シンク', '共通(FC)'].freeze,
      Severity: Major
      Found in lib/bcdice/game_system/Villaciel.rb and 14 other locations - About 1 hr to fix
      lib/bcdice/game_system/Villaciel.rb on lines 312..317
      lib/bcdice/game_system/Villaciel.rb on lines 319..324
      lib/bcdice/game_system/Villaciel.rb on lines 329..334
      lib/bcdice/game_system/Villaciel.rb on lines 336..341
      lib/bcdice/game_system/Villaciel.rb on lines 362..367
      lib/bcdice/game_system/Villaciel.rb on lines 369..374
      lib/bcdice/game_system/Villaciel.rb on lines 383..388
      lib/bcdice/game_system/Villaciel.rb on lines 390..395
      lib/bcdice/game_system/Villaciel.rb on lines 397..402
      lib/bcdice/game_system/Villaciel.rb on lines 404..409
      lib/bcdice/game_system/Villaciel.rb on lines 423..428
      lib/bcdice/game_system/Villaciel.rb on lines 430..435
      lib/bcdice/game_system/Villaciel.rb on lines 531..536
      lib/bcdice/game_system/Villaciel.rb on lines 542..547

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

      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 15 locations. Consider refactoring.
      Wontfix

            INEDIBLE_PLANT_CHART = [['シュイの花', 'ダデオの花', 'ロキの花', 'シェラの花', 'トトイト', 'ポロネイマ'].freeze,
                                    ['シュイの花', 'ロキの花', 'アウディの花', 'イディウの花', 'トトイト', 'ポロネイマ'].freeze,
                                    ['ダデオの花', 'アウディの花', 'イディウの花', 'マトイト', 'ポポトマ', 'ルタタ'].freeze,
                                    ['シュイの花', 'ミカギの花', 'ロトイト', 'ロトイト', 'ツルイド', 'ルタタ'].freeze,
                                    ['ミカギの花', 'ロトイト', 'ロトイト', 'ツルイド', 'ルタタ', '変異植物(MP)'].freeze,
      Severity: Major
      Found in lib/bcdice/game_system/Villaciel.rb and 14 other locations - About 1 hr to fix
      lib/bcdice/game_system/Villaciel.rb on lines 312..317
      lib/bcdice/game_system/Villaciel.rb on lines 319..324
      lib/bcdice/game_system/Villaciel.rb on lines 329..334
      lib/bcdice/game_system/Villaciel.rb on lines 336..341
      lib/bcdice/game_system/Villaciel.rb on lines 362..367
      lib/bcdice/game_system/Villaciel.rb on lines 369..374
      lib/bcdice/game_system/Villaciel.rb on lines 376..381
      lib/bcdice/game_system/Villaciel.rb on lines 383..388
      lib/bcdice/game_system/Villaciel.rb on lines 390..395
      lib/bcdice/game_system/Villaciel.rb on lines 397..402
      lib/bcdice/game_system/Villaciel.rb on lines 404..409
      lib/bcdice/game_system/Villaciel.rb on lines 430..435
      lib/bcdice/game_system/Villaciel.rb on lines 531..536
      lib/bcdice/game_system/Villaciel.rb on lines 542..547

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

      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 15 locations. Consider refactoring.
      Wontfix

            FISHING_GRAY_CHART = [['ウメガサネ', 'ウメガサネ', 'セイラン', 'セイラン', 'ミハナダ', 'ミハナダ'].freeze,
                                  ['ウメガサネ', 'セイラン', 'セイラン', 'ミハナダ', 'ミハナダ', 'ミハナダ'].freeze,
                                  ['ウメガサネ', 'ユルシ', 'ミハナダ', 'ミハナダ', 'ミハナダ', 'リンドウ'].freeze,
                                  ['ユルシ', 'ユルシ', 'セイラン', 'リンドウ', 'リンドウ', 'スミレ'].freeze,
                                  ['ユルシ', 'ユルシ', 'リンドウ', 'スミレ', 'スミレ', '共通(FC)'].freeze,
      Severity: Major
      Found in lib/bcdice/game_system/Villaciel.rb and 14 other locations - About 1 hr to fix
      lib/bcdice/game_system/Villaciel.rb on lines 312..317
      lib/bcdice/game_system/Villaciel.rb on lines 319..324
      lib/bcdice/game_system/Villaciel.rb on lines 329..334
      lib/bcdice/game_system/Villaciel.rb on lines 336..341
      lib/bcdice/game_system/Villaciel.rb on lines 362..367
      lib/bcdice/game_system/Villaciel.rb on lines 369..374
      lib/bcdice/game_system/Villaciel.rb on lines 376..381
      lib/bcdice/game_system/Villaciel.rb on lines 390..395
      lib/bcdice/game_system/Villaciel.rb on lines 397..402
      lib/bcdice/game_system/Villaciel.rb on lines 404..409
      lib/bcdice/game_system/Villaciel.rb on lines 423..428
      lib/bcdice/game_system/Villaciel.rb on lines 430..435
      lib/bcdice/game_system/Villaciel.rb on lines 531..536
      lib/bcdice/game_system/Villaciel.rb on lines 542..547

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

      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 15 locations. Consider refactoring.
      Wontfix

            MUTANT_PLANT_CHART = [['ガドゴン', 'ガドゴン', 'レディダン', 'ボディア', 'ブタマル', 'ブタマル'].freeze,
                                  ['レディダン', 'レディダン', 'ボディア', 'トロコッコ', 'ブタマル', 'ツァイド'].freeze,
                                  ['ボディア', 'ボディア', 'マメノキ', 'ナッキュ', 'ツァイド', 'ボディア'].freeze,
                                  ['ナッキュ', 'マメノキ', 'ナッキュ', 'ガドゴン', 'レディダン', 'レディダン'].freeze,
                                  ['ポメラマ', 'ポメラマ', 'ナッキュ', 'ツァイド', 'ガドゴン', 'ボディア'].freeze,
      Severity: Major
      Found in lib/bcdice/game_system/Villaciel.rb and 14 other locations - About 1 hr to fix
      lib/bcdice/game_system/Villaciel.rb on lines 312..317
      lib/bcdice/game_system/Villaciel.rb on lines 319..324
      lib/bcdice/game_system/Villaciel.rb on lines 329..334
      lib/bcdice/game_system/Villaciel.rb on lines 336..341
      lib/bcdice/game_system/Villaciel.rb on lines 362..367
      lib/bcdice/game_system/Villaciel.rb on lines 369..374
      lib/bcdice/game_system/Villaciel.rb on lines 376..381
      lib/bcdice/game_system/Villaciel.rb on lines 383..388
      lib/bcdice/game_system/Villaciel.rb on lines 390..395
      lib/bcdice/game_system/Villaciel.rb on lines 397..402
      lib/bcdice/game_system/Villaciel.rb on lines 404..409
      lib/bcdice/game_system/Villaciel.rb on lines 423..428
      lib/bcdice/game_system/Villaciel.rb on lines 430..435
      lib/bcdice/game_system/Villaciel.rb on lines 542..547

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

      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 15 locations. Consider refactoring.
      Wontfix

            MOHUMOHU_DRAGON_CHART = [['モドモドリス', 'テロメ', 'モドモドリス', 'オジサン', 'オジサン', 'グロッチ'].freeze,
                                     ['テロメ', 'モドモドリス', 'オジサン', 'テロメ', 'ニホンツノ', 'グロッチ'].freeze,
                                     ['テロメ', 'グロッチ', 'グロッチ', 'グロッチ', 'オジサン', 'コディ'].freeze,
                                     ['モドモドリス', 'グロッチ', 'ニホンツノ', 'テロメ', 'テーリー', 'ケラプス'].freeze,
                                     ['オジサン', 'テロメ', 'テロメ', 'コディ', 'コディ', 'ケラプス'].freeze,
      Severity: Major
      Found in lib/bcdice/game_system/Villaciel.rb and 14 other locations - About 1 hr to fix
      lib/bcdice/game_system/Villaciel.rb on lines 312..317
      lib/bcdice/game_system/Villaciel.rb on lines 319..324
      lib/bcdice/game_system/Villaciel.rb on lines 329..334
      lib/bcdice/game_system/Villaciel.rb on lines 362..367
      lib/bcdice/game_system/Villaciel.rb on lines 369..374
      lib/bcdice/game_system/Villaciel.rb on lines 376..381
      lib/bcdice/game_system/Villaciel.rb on lines 383..388
      lib/bcdice/game_system/Villaciel.rb on lines 390..395
      lib/bcdice/game_system/Villaciel.rb on lines 397..402
      lib/bcdice/game_system/Villaciel.rb on lines 404..409
      lib/bcdice/game_system/Villaciel.rb on lines 423..428
      lib/bcdice/game_system/Villaciel.rb on lines 430..435
      lib/bcdice/game_system/Villaciel.rb on lines 531..536
      lib/bcdice/game_system/Villaciel.rb on lines 542..547

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

      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 15 locations. Consider refactoring.
      Wontfix

            INEDIBLE_PLANT2_CHART = [['マトラの花', 'マトラの花', '蜜蝋', 'ポルラの花', 'ウェスドの花', 'ポルラの花'].freeze,
                                     ['マトラの花', 'ホイの花', 'マトラの花', 'ウェスドの花', '蜜蝋', 'ロロの花'].freeze,
                                     ['ホイの花', 'ポルラの花', 'ウェスドの花', 'ホイの花', 'ポルラの花', 'ポルラの花'].freeze,
                                     ['ポルラの花', 'ホイの花', 'ロロの花', 'ウェスドの花', 'ポルラの花', 'ドダの実'].freeze,
                                     ['ポルラの花', 'ウェスドの花', 'ロロの花', 'ロロの花', 'ロロの花', 'ロロの花'].freeze,
      Severity: Major
      Found in lib/bcdice/game_system/Villaciel.rb and 14 other locations - About 1 hr to fix
      lib/bcdice/game_system/Villaciel.rb on lines 312..317
      lib/bcdice/game_system/Villaciel.rb on lines 319..324
      lib/bcdice/game_system/Villaciel.rb on lines 329..334
      lib/bcdice/game_system/Villaciel.rb on lines 336..341
      lib/bcdice/game_system/Villaciel.rb on lines 362..367
      lib/bcdice/game_system/Villaciel.rb on lines 369..374
      lib/bcdice/game_system/Villaciel.rb on lines 376..381
      lib/bcdice/game_system/Villaciel.rb on lines 383..388
      lib/bcdice/game_system/Villaciel.rb on lines 390..395
      lib/bcdice/game_system/Villaciel.rb on lines 397..402
      lib/bcdice/game_system/Villaciel.rb on lines 404..409
      lib/bcdice/game_system/Villaciel.rb on lines 423..428
      lib/bcdice/game_system/Villaciel.rb on lines 531..536
      lib/bcdice/game_system/Villaciel.rb on lines 542..547

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

      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 15 locations. Consider refactoring.
      Wontfix

            FISHING_BLACK_CHART = [['セイラン', 'セイラン', 'テツコン', 'テツコン', 'ウスハナ', 'ウスハナ'].freeze,
                                   ['セイラン', 'セイラン', 'テツコン', 'ウスハナ', 'ウスハナ', 'フカガワネズミ'].freeze,
                                   ['セイラン', 'テツコン', 'ウスハナ', 'ウスハナ', 'ミハナダ', 'フカガワネズミ'].freeze,
                                   ['セイラン', 'テツコン', 'ミハナダ', 'ウスハナ', 'フカガワネズミ', 'フカガワネズミ'].freeze,
                                   ['セイラン', 'ウスハナ', 'ミハナダ', 'ミハナダ', 'ミハナダ', '共通(FC)'].freeze,
      Severity: Major
      Found in lib/bcdice/game_system/Villaciel.rb and 14 other locations - About 1 hr to fix
      lib/bcdice/game_system/Villaciel.rb on lines 312..317
      lib/bcdice/game_system/Villaciel.rb on lines 319..324
      lib/bcdice/game_system/Villaciel.rb on lines 329..334
      lib/bcdice/game_system/Villaciel.rb on lines 336..341
      lib/bcdice/game_system/Villaciel.rb on lines 362..367
      lib/bcdice/game_system/Villaciel.rb on lines 369..374
      lib/bcdice/game_system/Villaciel.rb on lines 376..381
      lib/bcdice/game_system/Villaciel.rb on lines 383..388
      lib/bcdice/game_system/Villaciel.rb on lines 397..402
      lib/bcdice/game_system/Villaciel.rb on lines 404..409
      lib/bcdice/game_system/Villaciel.rb on lines 423..428
      lib/bcdice/game_system/Villaciel.rb on lines 430..435
      lib/bcdice/game_system/Villaciel.rb on lines 531..536
      lib/bcdice/game_system/Villaciel.rb on lines 542..547

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

      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 15 locations. Consider refactoring.
      Wontfix

            MOHUMOHU_ANIMAL_CHART = [['トリサン', 'トリサン', 'ブタ', 'ヒツジ', 'タヌキ', 'タヌキ'].freeze,
                                     ['トリサン', 'ブタ', 'ヒツジ', 'ウッシ', 'キツネ', 'タヌキ'].freeze,
                                     ['ブタ', 'オグマ', 'ヒツジ', 'キツネ', 'キツネ', 'アタウサギ'].freeze,
                                     ['ブタ', 'ヒツジ', 'ヒツジ', 'リス', 'シシ', 'ヴィラシエル種(MMV)'].freeze,
                                     ['ウッシ', 'ウサギ', 'ウサギ', 'シシ', 'アタウサギ', 'オオカミ'].freeze,
      Severity: Major
      Found in lib/bcdice/game_system/Villaciel.rb and 14 other locations - About 1 hr to fix
      lib/bcdice/game_system/Villaciel.rb on lines 312..317
      lib/bcdice/game_system/Villaciel.rb on lines 329..334
      lib/bcdice/game_system/Villaciel.rb on lines 336..341
      lib/bcdice/game_system/Villaciel.rb on lines 362..367
      lib/bcdice/game_system/Villaciel.rb on lines 369..374
      lib/bcdice/game_system/Villaciel.rb on lines 376..381
      lib/bcdice/game_system/Villaciel.rb on lines 383..388
      lib/bcdice/game_system/Villaciel.rb on lines 390..395
      lib/bcdice/game_system/Villaciel.rb on lines 397..402
      lib/bcdice/game_system/Villaciel.rb on lines 404..409
      lib/bcdice/game_system/Villaciel.rb on lines 423..428
      lib/bcdice/game_system/Villaciel.rb on lines 430..435
      lib/bcdice/game_system/Villaciel.rb on lines 531..536
      lib/bcdice/game_system/Villaciel.rb on lines 542..547

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

      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 15 locations. Consider refactoring.
      Wontfix

            FISHING_SALT_LAKE_CHART = [['シラユリ', 'シラユリ', 'シラユリ', 'ゲッパク', 'ゲッパク', 'ゲッパク'].freeze,
                                       ['シラユリ', 'シラユリ', 'シラユリ', 'ゲッパク', 'スズ', 'ナマリ'].freeze,
                                       ['シラユリ', 'ゲッパク', 'ゲッパク', 'スズ', 'ナマリ', 'ナマリ'].freeze,
                                       ['シラユリ', 'シラユリ', 'ナマリ', 'ナマリ', 'ナマリ', 'ナマリ'].freeze,
                                       ['ゲッパク', 'ゲッパク', 'スズ', 'スズ', 'ロイロ', 'ロイロ'].freeze,
      Severity: Major
      Found in lib/bcdice/game_system/Villaciel.rb and 14 other locations - About 1 hr to fix
      lib/bcdice/game_system/Villaciel.rb on lines 312..317
      lib/bcdice/game_system/Villaciel.rb on lines 319..324
      lib/bcdice/game_system/Villaciel.rb on lines 329..334
      lib/bcdice/game_system/Villaciel.rb on lines 336..341
      lib/bcdice/game_system/Villaciel.rb on lines 362..367
      lib/bcdice/game_system/Villaciel.rb on lines 369..374
      lib/bcdice/game_system/Villaciel.rb on lines 376..381
      lib/bcdice/game_system/Villaciel.rb on lines 383..388
      lib/bcdice/game_system/Villaciel.rb on lines 390..395
      lib/bcdice/game_system/Villaciel.rb on lines 397..402
      lib/bcdice/game_system/Villaciel.rb on lines 423..428
      lib/bcdice/game_system/Villaciel.rb on lines 430..435
      lib/bcdice/game_system/Villaciel.rb on lines 531..536
      lib/bcdice/game_system/Villaciel.rb on lines 542..547

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

      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 15 locations. Consider refactoring.
      Wontfix

            MOHUMOHU_VILLACIEL2_CHART = [['すねーくあし', 'すねーくあし', 'すねーくあし', 'ウタヒ', 'オオトリサン', 'オオトリサン'].freeze,
                                         ['すねーくあし', 'すねーくあし', 'ホネホネ', 'オオトリサン', 'アマアマガニ', 'ホワホワ'].freeze,
                                         ['すねーくあし', 'ホネホネ', 'オオトリサン', 'ウタヒ', 'アマアマガニ', 'ペロリ'].freeze,
                                         ['オオトリサン', 'オオトリサン', 'ホネホネ', 'ホネホネ', 'ホワホワ', 'アマアマガニ'].freeze,
                                         ['ホネホネ', 'ウタヒ', 'アマアマガニ', 'ペロリ', 'ペロリ', 'ペロリ'].freeze,
      Severity: Major
      Found in lib/bcdice/game_system/Villaciel.rb and 14 other locations - About 1 hr to fix
      lib/bcdice/game_system/Villaciel.rb on lines 312..317
      lib/bcdice/game_system/Villaciel.rb on lines 319..324
      lib/bcdice/game_system/Villaciel.rb on lines 336..341
      lib/bcdice/game_system/Villaciel.rb on lines 362..367
      lib/bcdice/game_system/Villaciel.rb on lines 369..374
      lib/bcdice/game_system/Villaciel.rb on lines 376..381
      lib/bcdice/game_system/Villaciel.rb on lines 383..388
      lib/bcdice/game_system/Villaciel.rb on lines 390..395
      lib/bcdice/game_system/Villaciel.rb on lines 397..402
      lib/bcdice/game_system/Villaciel.rb on lines 404..409
      lib/bcdice/game_system/Villaciel.rb on lines 423..428
      lib/bcdice/game_system/Villaciel.rb on lines 430..435
      lib/bcdice/game_system/Villaciel.rb on lines 531..536
      lib/bcdice/game_system/Villaciel.rb on lines 542..547

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

      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 15 locations. Consider refactoring.
      Wontfix

            FISHING_LAKE_CHART = [['ヤマアイズリ', 'ヤマアイズリ', 'ヤマアイズリ', 'シコウチャ', 'シコウチャ', 'ハナロクショウ'].freeze,
                                  ['ヤマアイズリ', 'ヤマアイズリ', 'ヤマアイズリ', 'シコウチャ', 'ハナロクショウ', 'ハナロクショウ'].freeze,
                                  ['ヤマアイズリ', 'ヤマアイズリ', 'シコウチャ', 'シコウチャ', 'ハナモエギ', 'トノチャ'].freeze,
                                  ['ヤマアイズリ', 'カラスアゲハ', 'シコウチャ', 'ハナロクショウ', 'トノチャ', 'ハナモエギ'].freeze,
                                  ['シコウチャ', 'シコウチャ', 'ハナロクショウ', 'ハナロクショウ', 'トノチャ', 'ハナモエギ'].freeze,
      Severity: Major
      Found in lib/bcdice/game_system/Villaciel.rb and 14 other locations - About 1 hr to fix
      lib/bcdice/game_system/Villaciel.rb on lines 312..317
      lib/bcdice/game_system/Villaciel.rb on lines 319..324
      lib/bcdice/game_system/Villaciel.rb on lines 329..334
      lib/bcdice/game_system/Villaciel.rb on lines 336..341
      lib/bcdice/game_system/Villaciel.rb on lines 369..374
      lib/bcdice/game_system/Villaciel.rb on lines 376..381
      lib/bcdice/game_system/Villaciel.rb on lines 383..388
      lib/bcdice/game_system/Villaciel.rb on lines 390..395
      lib/bcdice/game_system/Villaciel.rb on lines 397..402
      lib/bcdice/game_system/Villaciel.rb on lines 404..409
      lib/bcdice/game_system/Villaciel.rb on lines 423..428
      lib/bcdice/game_system/Villaciel.rb on lines 430..435
      lib/bcdice/game_system/Villaciel.rb on lines 531..536
      lib/bcdice/game_system/Villaciel.rb on lines 542..547

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

      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 15 locations. Consider refactoring.
      Wontfix

            IMPROVED_SPECIES_CHART = [['ワワ', 'ワワ', 'ブラックカロット', 'ビーズ', 'レモン', 'ブラッドオレンジ'].freeze,
                                      ['ポポ', 'ポポ', 'グランツェ', 'オオカサゲ', 'ブラッドオレンジ', 'レモン'].freeze,
                                      ['ヒットト', 'グランツェ', 'ブラックベリー', 'ピマット', 'ブラッドオレンジ', 'レモン'].freeze,
                                      ['ブルーベリー', 'ヒットト', 'グランツェ', 'ブラッドオレンジ', 'ユズ', 'ブラックベリー'].freeze,
                                      ['ビーズ', 'ピマット', 'オオカサゲ', 'ライム', 'ブルーベリー', 'ユズ'].freeze,
      Severity: Major
      Found in lib/bcdice/game_system/Villaciel.rb and 14 other locations - About 1 hr to fix
      lib/bcdice/game_system/Villaciel.rb on lines 312..317
      lib/bcdice/game_system/Villaciel.rb on lines 319..324
      lib/bcdice/game_system/Villaciel.rb on lines 329..334
      lib/bcdice/game_system/Villaciel.rb on lines 336..341
      lib/bcdice/game_system/Villaciel.rb on lines 362..367
      lib/bcdice/game_system/Villaciel.rb on lines 369..374
      lib/bcdice/game_system/Villaciel.rb on lines 376..381
      lib/bcdice/game_system/Villaciel.rb on lines 383..388
      lib/bcdice/game_system/Villaciel.rb on lines 390..395
      lib/bcdice/game_system/Villaciel.rb on lines 397..402
      lib/bcdice/game_system/Villaciel.rb on lines 404..409
      lib/bcdice/game_system/Villaciel.rb on lines 423..428
      lib/bcdice/game_system/Villaciel.rb on lines 430..435
      lib/bcdice/game_system/Villaciel.rb on lines 531..536

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

      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 15 locations. Consider refactoring.
      Wontfix

            FISHING_COMMON_CHART = [['トビウオ', 'トビウオ', 'トビウオ', 'オオガメ', 'ロブスター', 'オオサンショウウオ'].freeze,
                                    ['トビウオ', 'トビウオ', 'エイ', 'オオガメ', 'クジラ', 'ロブスター'].freeze,
                                    ['トビウオ', 'エイ', 'マグロ', 'マグロ', 'カジキ', 'イタチザメ'].freeze,
                                    ['トビウオ', 'ミズダコ', 'クラゲ', 'マグロ', 'オオクラゲ', 'ハンマーヘッド・シャーク'].freeze,
                                    ['トビウオ', 'エイ', 'オオガメ', 'オオガメ', 'イタチザメ', 'ミズダコ'].freeze,
      Severity: Major
      Found in lib/bcdice/game_system/Villaciel.rb and 14 other locations - About 1 hr to fix
      lib/bcdice/game_system/Villaciel.rb on lines 312..317
      lib/bcdice/game_system/Villaciel.rb on lines 319..324
      lib/bcdice/game_system/Villaciel.rb on lines 329..334
      lib/bcdice/game_system/Villaciel.rb on lines 336..341
      lib/bcdice/game_system/Villaciel.rb on lines 362..367
      lib/bcdice/game_system/Villaciel.rb on lines 369..374
      lib/bcdice/game_system/Villaciel.rb on lines 376..381
      lib/bcdice/game_system/Villaciel.rb on lines 383..388
      lib/bcdice/game_system/Villaciel.rb on lines 390..395
      lib/bcdice/game_system/Villaciel.rb on lines 404..409
      lib/bcdice/game_system/Villaciel.rb on lines 423..428
      lib/bcdice/game_system/Villaciel.rb on lines 430..435
      lib/bcdice/game_system/Villaciel.rb on lines 531..536
      lib/bcdice/game_system/Villaciel.rb on lines 542..547

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

      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 15 locations. Consider refactoring.
      Wontfix

            MOHUMOHU_INSECT_CHART = [['小さな虫', '小さな虫', 'カマキリ', 'カマキリ', 'バッタ', 'クワガタ'].freeze,
                                     ['小さな虫', 'カラスアゲハ', 'カマキリ', 'バッタ', 'オオスカシバ', 'カイコ'].freeze,
                                     ['ハンミョウ', 'カラスアゲハ', 'カマキリ', 'バッタ', 'カイコ', 'トンボ'].freeze,
                                     ['ハンミョウ', 'カラスアゲハ', 'カラスアゲハ', 'チッチハチ', 'トンボ', 'トンボ'].freeze,
                                     ['クワガタ', 'カラスアゲハ', 'チッチハチ', 'チッチハチ', 'アリ', 'アリ'].freeze,
      Severity: Major
      Found in lib/bcdice/game_system/Villaciel.rb and 14 other locations - About 1 hr to fix
      lib/bcdice/game_system/Villaciel.rb on lines 319..324
      lib/bcdice/game_system/Villaciel.rb on lines 329..334
      lib/bcdice/game_system/Villaciel.rb on lines 336..341
      lib/bcdice/game_system/Villaciel.rb on lines 362..367
      lib/bcdice/game_system/Villaciel.rb on lines 369..374
      lib/bcdice/game_system/Villaciel.rb on lines 376..381
      lib/bcdice/game_system/Villaciel.rb on lines 383..388
      lib/bcdice/game_system/Villaciel.rb on lines 390..395
      lib/bcdice/game_system/Villaciel.rb on lines 397..402
      lib/bcdice/game_system/Villaciel.rb on lines 404..409
      lib/bcdice/game_system/Villaciel.rb on lines 423..428
      lib/bcdice/game_system/Villaciel.rb on lines 430..435
      lib/bcdice/game_system/Villaciel.rb on lines 531..536
      lib/bcdice/game_system/Villaciel.rb on lines 542..547

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

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

            ARMESEAR_PREVIOUS_JOB_CHART = [['農家: 知力+1 器用さ+1 開拓/1Lv',
                                            '漁師: 知力+1 ひらめき+1 釣り/1Lv',
                                            '狩人: 武力+1 ひらめき+1 穴掘り/1Lv',
                                            '鍛冶職人: 武力+1 器用さ+1 採掘/1Lv',
                                            '牧場主: 仲良し+2 開拓/1Lv',
      Severity: Minor
      Found in lib/bcdice/game_system/Villaciel.rb and 1 other location - About 20 mins to fix
      lib/bcdice/game_system/Villaciel.rb on lines 248..265

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

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

            ARMESEAR_PETIT_QUEST_CHART = [['お祭り用の布が足りないの!: 【目的:布を2個納品】【報酬:各自4プサイ】お祭り前なのに、布職人が腰を痛めちゃったの!',
                                           'お洋服がぼろぼろになっちゃったの: 【目的:布を1個納品】【報酬:各自2プサイ】おばあちゃんに作ってもらった服がボロボロになっちゃったから、なおしたいの。',
                                           'ぎっくり腰からのヘルプ: 【目的:薪を3個納品】【報酬:各自3プサイ】仕事してたらぎっくり腰になっちゃったのだ。頼むのだ。',
                                           '不調には栄養たっぷりのミルクを: 【目的:ミルクを1個納品】【報酬:各自3プサイ】体調を崩しちゃったの。栄養満点のミルクを頂戴。',
                                           '材料がたりない!: 【目的:???の粗皮を1個納品】【報酬:各自3プサイ】革細工師を目指してるんだけど、皮が足りないんだ。種類は問わないから、早めに頼むよ。',
      Severity: Minor
      Found in lib/bcdice/game_system/Villaciel.rb and 1 other location - About 20 mins to fix
      lib/bcdice/game_system/Villaciel.rb on lines 188..205

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

      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

      There are no issues that match your filters.

      Category
      Status