hackedteam/vector-edk

View on GitHub

Showing 9,525 of 13,510 total issues

Function link has 13 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def link (self,

    Function link has 13 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def link (self,

      Function link has 13 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def link (self,

        Function link has 13 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def link(self,

          Function link has 13 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def link(self, target_desc, objects, output_filename, output_dir=None,
          Severity: Major
          Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/ccompiler.py - About 1 hr to fix

            Function link has 13 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def link(self, target_desc, objects,
            Severity: Major
            Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/unixccompiler.py - About 1 hr to fix

              Function link has 13 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def link (self,
              Severity: Major
              Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/bcppcompiler.py - About 1 hr to fix

                Function link has 13 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def link (self,

                  Function link has 13 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def link (self,
                  Severity: Major
                  Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/emxccompiler.py - About 1 hr to fix

                    Function link has 13 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def link (self,
                    Severity: Major
                    Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/msvccompiler.py - About 1 hr to fix

                      Function link has 13 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def link(self,
                      Severity: Major
                      Found in vector-uefi/fd/efi/StdLib/lib/python.27/distutils/msvc9compiler.py - About 1 hr to fix

                        Function __init__ has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            def __init__(self, parent, root=webchecker.DEFROOT):
                                self.__parent = parent
                        
                                self.__topcontrols = Frame(parent)
                                self.__topcontrols.pack(side=TOP, fill=X)
                        Severity: Minor
                        Found in AppPkg/Applications/Python/Python-2.7.2/Tools/webchecker/wcgui.py - About 1 hr to fix

                          Function MigrationOptionParser has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                          Open

                          def MigrationOptionParser(Source, Destinate, ToolName, VersionNumber = 1.0):
                              # use clearer usage to override default usage message
                              UsageString = "%s [-a] [-v|-q] [-o <output_file>] <input_file>" % ToolName
                              Version = "%s Version %.2f" % (ToolName, VersionNumber)
                              Copyright = "Copyright (c) 2007, Intel Corporation. All rights reserved."
                          Severity: Minor
                          Found in BaseTools/Source/Python/Common/MigrationUtilities.py - About 1 hr to fix

                          Cognitive Complexity

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

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

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

                          Further reading

                          Function __GetRule has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                          Open

                              def __GetRule(self):
                                  
                                  if not self.__GetNextToken():
                                      return False
                          
                          Severity: Minor
                          Found in BaseTools/Source/Python/Common/FdfParserLite.py - About 1 hr to fix

                          Cognitive Complexity

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

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

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

                          Further reading

                          Function _Parse has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                          Open

                              def _Parse(self, Template):
                                  SectionStart = 0
                                  SearchFrom = 0
                                  MatchEnd = 0
                                  PlaceHolderList = []
                          Severity: Minor
                          Found in BaseTools/Source/Python/Common/Misc.py - About 1 hr to fix

                          Cognitive Complexity

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

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

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

                          Further reading

                          Function __GetDefines has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                          Open

                              def __GetDefines(self):
                          
                                  if not self.__GetNextToken():
                                      return False
                          
                          Severity: Minor
                          Found in BaseTools/Source/Python/Common/FdfParserLite.py - About 1 hr to fix

                          Cognitive Complexity

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

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

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

                          Further reading

                          Function __setitem__ has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                          Open

                              def __setitem__(self, key, value):
                                  KeyType = type(key)
                                  RestKeys = None
                                  if KeyType == self._ListType or KeyType == self._TupleType:
                                      FirstKey = key[0]
                          Severity: Minor
                          Found in BaseTools/Source/Python/Common/Misc.py - About 1 hr to fix

                          Cognitive Complexity

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

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

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

                          Further reading

                          Function __GetCapsule has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                          Open

                              def __GetCapsule(self):
                                  
                                  if not self.__GetNextToken():
                                      return False
                          
                          Severity: Minor
                          Found in BaseTools/Source/Python/Common/FdfParserLite.py - About 1 hr to fix

                          Cognitive Complexity

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

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

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

                          Further reading

                          Function ConvertTextFileToDictionary has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                          Open

                          def ConvertTextFileToDictionary(FileName, Dictionary, CommentCharacter, KeySplitCharacter, ValueSplitFlag, ValueSplitCharacter):
                              try:
                                  F = open(FileName,'r')
                              except:
                                  return False
                          Severity: Minor
                          Found in BaseTools/Source/Python/Common/EdkIIWorkspace.py - About 1 hr to fix

                          Cognitive Complexity

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

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

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

                          Further reading

                          Function ConvertTextFileToDictionary has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                          Open

                          def ConvertTextFileToDictionary(FileName, Dictionary, CommentCharacter, KeySplitCharacter, ValueSplitFlag, ValueSplitCharacter):
                              try:
                                  F = open(FileName,'r')
                                  Keys = []
                                  for Line in F:
                          Severity: Minor
                          Found in BaseTools/Source/Python/Common/Dictionary.py - About 1 hr to fix

                          Cognitive Complexity

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

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

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

                          Further reading

                          Severity
                          Category
                          Status
                          Source
                          Language