## @file\r
# This file is used to define class Configuration\r
#\r
-# Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2008 - 2015, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
##\r
# Import Modules\r
#\r
-import os\r
+import Common.LongFilePathOs as os\r
import Common.EdkLogger as EdkLogger\r
from Common.DataType import *\r
from Common.String import *\r
+from Common.LongFilePathSupport import OpenLongFilePath as open\r
\r
## Configuration\r
#\r
self.GeneralCheckFileExistence = 1\r
# Check whether file has non ACSII char\r
self.GeneralCheckNonAcsii = 1\r
+ # Check whether UNI file is valid\r
+ self.GeneralCheckUni = 1\r
\r
## Space Checking\r
self.SpaceCheckAll = 1\r
self.HeaderCheckFile = 1\r
# Check whether Function header exists\r
self.HeaderCheckFunction = 1\r
-\r
+ # Check whether Meta data File header Comment End with '##'\r
+ self.HeaderCheckFileCommentEnd = 1\r
+ # Check whether C File header Comment content start with two spaces\r
+ self.HeaderCheckCFileCommentStartSpacesNum = 1\r
+ # Check whether C File header Comment's each reference at list should begin with a bullet character '-'\r
+ self.HeaderCheckCFileCommentReferenceFormat = 1\r
+ # Check whether C File header Comment have the License immediately after the ""Copyright"" line\r
+ self.HeaderCheckCFileCommentLicenseFormat = 1\r
+ \r
## C Function Layout Checking\r
self.CFunctionLayoutCheckAll = 0\r
\r
self.MetaDataFileCheckLibraryInstanceOrder = 1\r
# Check whether the unnecessary inclusion of library classes in the INF file\r
self.MetaDataFileCheckLibraryNoUse = 1\r
+ # Check the header file in Include\Library directory whether be defined in the package DEC file.\r
+ self.MetaDataFileCheckLibraryDefinedInDec = 1\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
self.MetaDataFileCheckBinaryInfInFdf = 1\r
# Not to report error and warning related OS include file such as "windows.h" and "stdio.h"\r
# Check whether there are FILE_GUID duplication among different INF files\r
self.MetaDataFileCheckModuleFileGuidDuplication = 1\r
\r
+ # Check Guid Format in INF files\r
+ self.MetaDataFileCheckModuleFileGuidFormat = 1\r
+ # Check Protocol Format in INF files\r
+ self.MetaDataFileCheckModuleFileProtocolFormat = 1\r
+ # Check Ppi Format in INF files\r
+ self.MetaDataFileCheckModuleFilePpiFormat = 1\r
+ # Check Pcd Format in INF files\r
+ self.MetaDataFileCheckModuleFilePcdFormat = 1\r
+ \r
+ # Check UNI file\r
+ self.UniCheckAll = 0\r
+ # Check INF or DEC file whether defined the localized information in the associated UNI file.\r
+ self.UniCheckHelpInfo = 1\r
+ # Check PCD whether defined the prompt, help in the DEC file and localized information in the associated UNI file.\r
+ self.UniCheckPCDInfo = 1\r
+\r
#\r
# The check points in this section are reserved\r
#\r
\r
# The directory listed here will not be parsed, split with ','\r
self.SkipDirList = []\r
+ \r
+ # The file listed here will not be parsed, split with ','\r
+ self.SkipFileList = []\r
\r
# A list for binary file ext name\r
self.BinaryExtList = []\r
+ \r
+ # A list for only scanned folders\r
+ self.ScanOnlyDirList = []\r
+ \r
+ # A list for Copyright format\r
+ self.Copyright = []\r
\r
self.ParseConfig()\r
\r
continue\r
if List[0] == 'SkipDirList':\r
List[1] = GetSplitValueList(List[1], TAB_COMMA_SPLIT)\r
+ if List[0] == 'SkipFileList':\r
+ List[1] = GetSplitValueList(List[1], TAB_COMMA_SPLIT)\r
if List[0] == 'BinaryExtList':\r
List[1] = GetSplitValueList(List[1], TAB_COMMA_SPLIT)\r
+ if List[0] == 'Copyright':\r
+ List[1] = GetSplitValueList(List[1], TAB_COMMA_SPLIT)\r
self.__dict__[List[0]] = List[1]\r
\r
def ShowMe(self):\r