]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Ecc/Check.py
BaseTools: Clean up source files
[mirror_edk2.git] / BaseTools / Source / Python / Ecc / Check.py
index ea739043e0bca88c58b52d2e5025941e938e15d5..540d9cb7edc742984ff72b69161fdd44f0366106 100644 (file)
@@ -563,17 +563,17 @@ class Check(object):
                         op = open(FullName).readlines()\r
                         FileLinesList = op\r
                         LineNo             = 0\r
-                        CurrentSection     = MODEL_UNKNOWN \r
+                        CurrentSection     = MODEL_UNKNOWN\r
                         HeaderSectionLines       = []\r
-                        HeaderCommentStart = False \r
+                        HeaderCommentStart = False\r
                         HeaderCommentEnd   = False\r
-                        \r
+\r
                         for Line in FileLinesList:\r
                             LineNo   = LineNo + 1\r
                             Line     = Line.strip()\r
                             if (LineNo < len(FileLinesList) - 1):\r
                                 NextLine = FileLinesList[LineNo].strip()\r
-            \r
+\r
                             #\r
                             # blank line\r
                             #\r
@@ -600,8 +600,8 @@ class Check(object):
                                     #\r
                                     HeaderSectionLines.append((Line, LineNo))\r
                                     HeaderCommentStart = True\r
-                                    continue        \r
-            \r
+                                    continue\r
+\r
                             #\r
                             # Collect Header content.\r
                             #\r
@@ -635,7 +635,7 @@ class Check(object):
                                 if EccGlobalData.gConfig.HeaderCheckFileCommentEnd == '1' or EccGlobalData.gConfig.HeaderCheckAll == '1' or EccGlobalData.gConfig.CheckAll == '1':\r
                                     EccGlobalData.gDb.TblReport.Insert(ERROR_DOXYGEN_CHECK_FILE_HEADER, Msg, "File", Result[0])\r
 \r
-                                     \r
+\r
 \r
     # Check whether the function headers are followed Doxygen special documentation blocks in section 2.3.5\r
     def DoxygenCheckFunctionHeader(self):\r
@@ -827,7 +827,7 @@ class Check(object):
                     for FilePath in FilePathList:\r
                         if not EccGlobalData.gException.IsException(ERROR_META_DATA_FILE_CHECK_LIBRARY_NAME_DUPLICATE, Record[1]):\r
                             EccGlobalData.gDb.TblReport.Insert(ERROR_META_DATA_FILE_CHECK_LIBRARY_NAME_DUPLICATE, OtherMsg="The Library Class [%s] is duplicated in '%s' line %s and line %s." % (Record[1], FilePath, Record[3], Record[4]), BelongsToTable='Dsc', BelongsToItem=Record[0])\r
-    \r
+\r
     # Check the header file in Include\Library directory whether be defined in the package DEC file.\r
     def MetaDataFileCheckLibraryDefinedInDec(self):\r
         if EccGlobalData.gConfig.MetaDataFileCheckLibraryDefinedInDec == '1' or EccGlobalData.gConfig.MetaDataFileCheckAll == '1' or EccGlobalData.gConfig.CheckAll == '1':\r
@@ -842,9 +842,9 @@ class Check(object):
                 if not LibraryDec:\r
                     if not EccGlobalData.gException.IsException(ERROR_META_DATA_FILE_CHECK_LIBRARY_NOT_DEFINED, LibraryInInf):\r
                         EccGlobalData.gDb.TblReport.Insert(ERROR_META_DATA_FILE_CHECK_LIBRARY_NOT_DEFINED, \\r
-                                            OtherMsg="The Library Class [%s] in %s line is not defined in the associated package file." % (LibraryInInf, Line), \r
+                                            OtherMsg="The Library Class [%s] in %s line is not defined in the associated package file." % (LibraryInInf, Line),\r
                                             BelongsToTable='Inf', BelongsToItem=ID)\r
-    \r
+\r
     # Check whether an Inf file is specified in the FDF file, but not in the Dsc file, then the Inf file must be for a Binary module only\r
     def MetaDataFileCheckBinaryInfInFdf(self):\r
         if EccGlobalData.gConfig.MetaDataFileCheckBinaryInfInFdf == '1' or EccGlobalData.gConfig.MetaDataFileCheckAll == '1' or EccGlobalData.gConfig.CheckAll == '1':\r
@@ -1244,7 +1244,7 @@ class Check(object):
                      group by A.ID\r
                      """ % (Table.Table, Table.Table, Model, Model)\r
         RecordSet = Table.Exec(SqlCommand)\r
-        for Record in RecordSet:     \r
+        for Record in RecordSet:\r
             if not EccGlobalData.gException.IsException(ErrorID, Record[2]):\r
                 EccGlobalData.gDb.TblReport.Insert(ErrorID, OtherMsg="The %s value [%s] is used more than one time" % (Name.upper(), Record[2]), BelongsToTable=Table.Table, BelongsToItem=Record[0])\r
 \r