hackedteam/vector-edk

View on GitHub

Showing 9,525 of 13,510 total issues

Function run_cgi has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def run_cgi(self):
        """Execute a CGI script."""
        path = self.path
        dir, rest = self.cgi_info
Severity: Minor
Found in vector-uefi/fd/efi/StdLib/lib/python.27/CGIHTTPServer.py - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

        if BoolString == 'TRUE' or \
           BoolString == 'True' or \
           BoolString == 'true' or \
           BoolString == '0x1' or \
           BoolString == '0x01':
    Severity: Critical
    Found in BaseTools/Source/Python/UPT/Library/ParserValidate.py - About 1 hr to fix

      Consider simplifying this complex logical expression.
      Open

                              if LA36 == 58:
                                  LA36_2 = self.input.LA(2)
      
                                  if (self.synpred75()) :
                                      alt36 = 1
      Severity: Critical
      Found in BaseTools/Source/Python/Ecc/CParser.py - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

                    if self.__CurrentChar() == T_CHAR_LF:
                        if HashComment and PPDirectiveObj != None:
                            if PPDirectiveObj.Content.rstrip(T_CHAR_CR).endswith(T_CHAR_BACKSLASH):
                                PPDirectiveObj.Content += T_CHAR_LF
                                PPExtend = True
        Severity: Critical
        Found in BaseTools/Source/Python/Ecc/CodeFragmentCollector.py - About 1 hr to fix

          Consider simplifying this complex logical expression.
          Open

                      if self.__CurrentChar() == T_CHAR_LF:
                          if HashComment and PPDirectiveObj != None:
                              if PPDirectiveObj.Content.rstrip(T_CHAR_CR).endswith(T_CHAR_BACKSLASH):
                                  PPDirectiveObj.Content += T_CHAR_LF
                                  PPExtend = True
          Severity: Critical
          Found in BaseTools/Source/Python/Ecc/CodeFragmentCollector.py - About 1 hr to fix

            Consider simplifying this complex logical expression.
            Open

                                    if LA36 == 58:
                                        LA36_2 = self.input.LA(2)
            
                                        if (self.synpred75()) :
                                            alt36 = 1
            Severity: Critical
            Found in BaseTools/Source/Python/Eot/CParser.py - About 1 hr to fix

              Consider simplifying this complex logical expression.
              Open

                          if self.__CurrentChar() == T_CHAR_LF:
                              if HashComment and PPDirectiveObj != None:
                                  if PPDirectiveObj.Content.rstrip(T_CHAR_CR).endswith(T_CHAR_BACKSLASH):
                                      PPDirectiveObj.Content += T_CHAR_LF
                                      PPExtend = True
              Severity: Critical
              Found in BaseTools/Source/Python/Eot/CodeFragmentCollector.py - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                            if name == "infoset":
                                options = self._options
                                return (options.datatype_normalization
                                        and options.whitespace_in_element_content
                                        and options.comments
                Severity: Critical
                Found in AppPkg/Applications/Python/Python-2.7.2/Lib/xml/dom/xmlbuilder.py - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                          if stringprep.in_table_c12(c) or \
                             stringprep.in_table_c22(c) or \
                             stringprep.in_table_c3(c) or \
                             stringprep.in_table_c4(c) or \
                             stringprep.in_table_c5(c) or \
                  Severity: Critical
                  Found in AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/idna.py - About 1 hr to fix

                    Consider simplifying this complex logical expression.
                    Open

                                if name == "infoset":
                                    options = self._options
                                    return (options.datatype_normalization
                                            and options.whitespace_in_element_content
                                            and options.comments
                    Severity: Critical
                    Found in vector-uefi/fd/efi/StdLib/lib/python.27/xml/dom/xmlbuilder.py - About 1 hr to fix

                      Consider simplifying this complex logical expression.
                      Open

                              if stringprep.in_table_c12(c) or \
                                 stringprep.in_table_c22(c) or \
                                 stringprep.in_table_c3(c) or \
                                 stringprep.in_table_c4(c) or \
                                 stringprep.in_table_c5(c) or \
                      Severity: Critical
                      Found in vector-uefi/fd/efi/StdLib/lib/python.27/encodings/idna.py - About 1 hr to fix

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

                            def Insert(self, Model, Value1, Value2, Value3, Scope1='COMMON', Scope2='COMMON', BelongsToItem=-1, 
                        Severity: Major
                        Found in BaseTools/Source/Python/Workspace/MetaFileTable.py - About 1 hr to fix

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

                              def Insert(self, Model, Value1, Value2, Value3, Scope1, Scope2, BelongsToItem, BelongsToFile, StartLine, StartColumn, EndLine, EndColumn, Enabled):
                          Severity: Major
                          Found in BaseTools/Source/Python/Table/TableFdf.py - About 1 hr to fix

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

                                def Insert(self, Header, Modifier, Name, ReturnStatement, StartLine, StartColumn, EndLine, EndColumn, BodyStartLine, BodyStartColumn, BelongsToFile, FunNameStartLine, FunNameStartColumn):
                            Severity: Major
                            Found in BaseTools/Source/Python/Table/TableFunction.py - About 1 hr to fix

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

                                  def Insert(self, ModuleID = -1, ModuleName = '', ModuleGuid = '', SourceFileID = -1, SourceFileFullPath = '', \
                              Severity: Major
                              Found in BaseTools/Source/Python/Table/TableEotReport.py - About 1 hr to fix

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

                                    def Insert(self, Model, Value1, Value2, Value3, Scope1='COMMON', Scope2='COMMON',
                                Severity: Major
                                Found in BaseTools/Source/Python/Ecc/MetaFileWorkspace/MetaFileTable.py - About 1 hr to fix

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

                                      def Insert(self, Model, Value1, Value2, Value3, Scope1='COMMON', Scope2='COMMON',
                                  Severity: Major
                                  Found in BaseTools/Source/Python/Ecc/MetaFileWorkspace/MetaFileTable.py - About 1 hr to fix

                                    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 AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/ccompiler.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, target_desc, objects,
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language