hackedteam/vector-edk

View on GitHub
BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py

Summary

Maintainability
F
1 mo
Test Coverage

File CommentGeneratingUnitTest.py has 941 lines of code (exceeds 250 allowed). Consider refactoring.
Open

## @file
# This file contain unit test for CommentParsing
#
# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
#
Severity: Major
Found in BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py - About 2 days to fix

    Function testNormalCase11 has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def testNormalCase11(self):
            GuidList = []
                    
            CName = 'Guid1'
            FFE = 'FFE1'
    Severity: Minor
    Found in BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py - About 1 hr to fix

      Function testNormalCase12 has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          def testNormalCase12(self):
              GuidList = []
                      
              CName = 'Guid1'
              FFE = 'FFE1'
      Severity: Minor
      Found in BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py - About 1 hr to fix

        Function ObjectFactory has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def ObjectFactory(self, ItemType, TSCName, CName, DValue, FFE, Usage, Str):
        Severity: Major
        Found in BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py - About 50 mins to fix

          Function ObjectFactory has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def ObjectFactory(self, CName, FFE, Usage, Notify, HelpStr, IsProtocol):
          Severity: Minor
          Found in BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py - About 45 mins to fix

            Function GuidFactory has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def GuidFactory(self, CName, FFE, Usage, GuidType, VariableName, HelpStr):           
            Severity: Minor
            Found in BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py - About 45 mins to fix

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

                  def testNormalCase11(self):
                      GuidList = []
                              
                      CName = 'Guid1'
                      FFE = 'FFE1'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 470..510

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

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

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

                  def testNormalCase12(self):
                      GuidList = []
                              
                      CName = 'Guid1'
                      FFE = 'FFE1'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 425..465

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

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

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

                  def testNormalCase2(self):
                      GuidList = []
                      
                      CName = 'Guid1'
                      FFE = 'FFE1'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 188..216
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 257..286

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

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

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

                  def testNormalCase1(self):
                      GuidList = []
                      
                      CName = 'Guid1'
                      FFE = 'FFE1'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 221..251
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 257..286

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

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

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

                  def testNormalCase3(self):
                      GuidList = []
              
                      CName = 'Guid1'
                      FFE = 'FFE1'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 188..216
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 221..251

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

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

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

                  def testNormalCase4(self):
              
                      ExpectedStr = 'Hello world1'
                      HelpTextObj = TextObject()
                      HelpTextObj.SetLang('eng')
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 86..102

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

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

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

                  def testNormalCase3(self):
                      HelpStr = 'Hello world'
                      HelpTextObj = TextObject()
                      HelpTextObj.SetLang('')
                      HelpTextObj.SetString(HelpStr)
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 107..122

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

              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 4 locations. Consider refactoring.
              Open

                  def testNormalCase2(self):
                      ObjectList = []
                      ItemType = 'Pcd'
                      TSCName = 'TSCName'
                      CName = 'CName'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 887..904
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 906..923
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 928..945

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

              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 4 locations. Consider refactoring.
              Open

                  def testNormalCase3(self):
                      ObjectList = []
                      ItemType = 'Pcd'
                      TSCName = 'TSCName'
                      CName = 'CName'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 868..885
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 906..923
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 928..945

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

              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 4 locations. Consider refactoring.
              Open

                  def testNormalCase5(self):
                      ObjectList = []
                      ItemType = 'Pcd'
                      TSCName = 'TSCName'
                      CName = 'CName'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 868..885
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 887..904
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 906..923

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

              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 4 locations. Consider refactoring.
              Open

                  def testNormalCase4(self):
                      ObjectList = []
                      ItemType = 'Pcd'
                      TSCName = 'TSCName'
                      CName = 'CName'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 868..885
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 887..904
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 928..945

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

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

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

                  def testNormalCase9(self):
                      ObjectList = []
                      ItemType = TAB_INF_FEATURE_PCD
                      TSCName = 'TSCName'
                      CName = 'CName'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1023..1042

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

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

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

                  def testNormalCase8(self):
                      ObjectList = []
                      ItemType = TAB_INF_FEATURE_PCD
                      TSCName = 'TSCName'
                      CName = 'CName'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1047..1064

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

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

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

                  def testNormalCase10(self):
                      GuidList = []
                              
                      CName = 'Guid1'
                      FFE = 'FFE1'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 315..332
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 337..354

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

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

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

                  def testNormalCase7(self):
                      GuidList = []
                              
                      CName = 'Guid1'
                      FFE = 'FFE1'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 315..332
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 403..420

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

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

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

                  def testNormalCase6(self):
                      GuidList = []
                              
                      CName = 'Guid1'
                      FFE = 'FFE1'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 337..354
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 403..420

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

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

                  def testNormalCase4(self):
                      ObjectList = []
                      
                      CName = 'Guid1'
                      FFE = 'FFE1'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 589..607
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 609..627
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 689..707
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 709..727
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 729..747
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 749..767

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

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

                  def testNormalCase8(self):
                      ObjectList = []
                      
                      CName = 'Guid1'
                      FFE = 'FFE1'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 589..607
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 609..627
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 629..647
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 689..707
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 729..747
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 749..767

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

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

                  def testNormalCase3(self):
                      ObjectList = []
                      
                      CName = 'Guid1'
                      FFE = 'FFE1'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 589..607
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 629..647
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 689..707
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 709..727
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 729..747
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 749..767

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

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

                  def testNormalCase7(self):
                      ObjectList = []
                      
                      CName = 'Guid1'
                      FFE = 'FFE1'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 589..607
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 609..627
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 629..647
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 709..727
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 729..747
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 749..767

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

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

                  def testNormalCaseA(self):
                      ObjectList = []
                      
                      CName = 'Guid1'
                      FFE = 'FFE1'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 589..607
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 609..627
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 629..647
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 689..707
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 709..727
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 729..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 95.

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

                  def testNormalCase9(self):
                      ObjectList = []
                      
                      CName = 'Guid1'
                      FFE = 'FFE1'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 589..607
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 609..627
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 629..647
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 689..707
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 709..727
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 749..767

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

              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 4 locations. Consider refactoring.
              Open

                  def testNormalCaseB(self):
                      ObjectList = []
                      
                      CName = 'Guid1'
                      FFE = 'FFE1'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 649..667
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 669..687
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 789..807

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

              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 4 locations. Consider refactoring.
              Open

                  def testNormalCaseC(self):
                      ObjectList = []
                      
                      CName = 'Guid1'
                      FFE = 'FFE1'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 649..667
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 669..687
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 769..787

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

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

                  def testNormalCase2(self):
                      ObjectList = []
                      
                      CName = 'Guid1'
                      FFE = 'FFE1'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 609..627
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 629..647
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 689..707
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 709..727
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 729..747
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 749..767

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

              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 4 locations. Consider refactoring.
              Open

                  def testNormalCase6(self):
                      ObjectList = []
                      
                      CName = 'Guid1'
                      FFE = 'FFE1'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 649..667
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 769..787
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 789..807

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

              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 4 locations. Consider refactoring.
              Open

                  def testNormalCase5(self):
                      ObjectList = []
                      
                      CName = 'Guid1'
                      FFE = 'FFE1'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 669..687
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 769..787
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 789..807

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

              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 11 locations. Consider refactoring.
              Open

                  def testNormalCase3(self):
                      ObjectList = []
                      SupArchList = ['X64']
                      Type = 'Foo'
                      Usage = 'UNDEFINED'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1122..1141
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1185..1204
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1206..1225
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1227..1243
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1245..1265
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1267..1289
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1291..1311
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1313..1332
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1334..1353
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1355..1375

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

              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 11 locations. Consider refactoring.
              Open

                  def testNormalCase1(self):
                      ObjectList = []
                      SupArchList = ['X64']
                      Type = 'Foo'
                      Usage = 'UNDEFINED'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1164..1183
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1185..1204
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1206..1225
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1227..1243
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1245..1265
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1267..1289
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1291..1311
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1313..1332
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1334..1353
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1355..1375

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

              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 11 locations. Consider refactoring.
              Open

                  def testNormalCase12(self):
                      ObjectList = []
                      SupArchList = ['X64']
                      Type = 'Foo'
                      Usage = 'UNDEFINED'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1122..1141
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1164..1183
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1185..1204
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1206..1225
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1227..1243
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1245..1265
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1267..1289
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1291..1311
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1313..1332
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1334..1353

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

              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 11 locations. Consider refactoring.
              Open

                  def testNormalCase5(self):
                      ObjectList = []
                      SupArchList = ['X64']
                      Type = 'Foo'
                      Usage = 'UNDEFINED'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1122..1141
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1164..1183
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1185..1204
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1227..1243
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1245..1265
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1267..1289
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1291..1311
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1313..1332
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1334..1353
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1355..1375

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

              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 11 locations. Consider refactoring.
              Open

                  def testNormalCase10(self):
                      ObjectList = []
                      SupArchList = ['X64']
                      Type = 'Foo'
                      Usage = 'UNDEFINED'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1122..1141
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1164..1183
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1185..1204
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1206..1225
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1227..1243
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1245..1265
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1267..1289
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1291..1311
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1334..1353
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1355..1375

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

              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 11 locations. Consider refactoring.
              Open

                  def testNormalCase4(self):
                      ObjectList = []
                      SupArchList = ['X64']
                      Type = 'Foo'
                      Usage = 'UNDEFINED'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1122..1141
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1164..1183
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1206..1225
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1227..1243
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1245..1265
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1267..1289
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1291..1311
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1313..1332
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1334..1353
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1355..1375

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

              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 11 locations. Consider refactoring.
              Open

                  def testNormalCase6(self):
                      ObjectList = []
                      SupArchList = ['X64']
                      Type = 'Foo'
                      Usage = 'UNDEFINED'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1122..1141
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1164..1183
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1185..1204
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1206..1225
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1245..1265
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1267..1289
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1291..1311
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1313..1332
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1334..1353
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1355..1375

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

              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 11 locations. Consider refactoring.
              Open

                  def testNormalCase9(self):
                      ObjectList = []
                      SupArchList = ['X64']
                      Type = 'Foo'
                      Usage = 'UNDEFINED'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1122..1141
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1164..1183
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1185..1204
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1206..1225
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1227..1243
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1245..1265
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1267..1289
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1313..1332
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1334..1353
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1355..1375

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

              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 11 locations. Consider refactoring.
              Open

                  def testNormalCase8(self):
                      ObjectList = []
                      SupArchList = ['X64']
                      Type = 'Foo'
                      Usage = 'UNDEFINED'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1122..1141
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1164..1183
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1185..1204
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1206..1225
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1227..1243
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1245..1265
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1291..1311
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1313..1332
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1334..1353
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1355..1375

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

              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 11 locations. Consider refactoring.
              Open

                  def testNormalCase7(self):
                      ObjectList = []
                      SupArchList = ['X64']
                      Type = 'Foo'
                      Usage = 'UNDEFINED'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1122..1141
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1164..1183
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1185..1204
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1206..1225
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1227..1243
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1267..1289
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1291..1311
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1313..1332
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1334..1353
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1355..1375

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

              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 11 locations. Consider refactoring.
              Open

                  def testNormalCase11(self):
                      ObjectList = []
                      SupArchList = ['X64']
                      Type = 'Foo'
                      Usage = 'UNDEFINED'
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1122..1141
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1164..1183
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1185..1204
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1206..1225
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1227..1243
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1245..1265
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1267..1289
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1291..1311
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1313..1332
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1355..1375

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

              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 5 locations. Consider refactoring.
              Open

                  def testNormalCase5(self):
                      CommentLines = 'coment line 1\n coment line 2\n'
                      Result = GenGenericCommentF(CommentLines)
                      Expected = '# coment line 1\n# coment line 2\n'
                      self.assertEqual(Result, Expected)          
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1387..1391
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1393..1397
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1399..1403
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1405..1409

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 35.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

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

                  def testNormalCase2(self):
                      CommentLines = '\n'
                      Result = GenGenericCommentF(CommentLines)
                      Expected = '#\n'
                      self.assertEqual(Result, Expected)        
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1387..1391
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1399..1403
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1405..1409
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1411..1415

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 35.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

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

                  def testNormalCase3(self):
                      CommentLines = '\n\n\n'
                      Result = GenGenericCommentF(CommentLines)
                      Expected = '#\n#\n#\n'
                      self.assertEqual(Result, Expected)  
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1387..1391
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1393..1397
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1405..1409
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1411..1415

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 35.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

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

                  def testNormalCase4(self):
                      CommentLines = 'coment line 1\n'
                      Result = GenGenericCommentF(CommentLines)
                      Expected = '# coment line 1\n'
                      self.assertEqual(Result, Expected)  
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1387..1391
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1393..1397
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1399..1403
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1411..1415

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 35.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

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

                  def testNormalCase1(self):
                      CommentLines = 'Comment Line 1'
                      Result = GenGenericCommentF(CommentLines)
                      Expected = '# Comment Line 1\n'
                      self.assertEqual(Result, Expected)
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1393..1397
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1399..1403
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1405..1409
              BaseTools/Source/Python/UPT/UnitTest/CommentGeneratingUnitTest.py on lines 1411..1415

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 35.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              There are no issues that match your filters.

              Category
              Status