]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Ecc/config.ini
BaseTools: Replace StandardError with Expression
[mirror_edk2.git] / BaseTools / Source / Python / Ecc / config.ini
index 973bc68b3867f9135b98cece2558e4d1a688bc57..9a431bf1245d28ae261ad4f1edd45367ab92f2d0 100644 (file)
@@ -2,7 +2,7 @@
 # This file is used to set configuration of ECC tool\r
 # For the items listed below, 1 means valid, 0 means invalid\r
 #\r
-# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2007 - 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
@@ -21,7 +21,7 @@ Version = 0.1
 # Identify to if check all items\r
 # 1 - Check all items and ignore all other detailed items\r
 # 0 - Not check all items, the tool will go through all other detailed items to decide to check or not\r
-# \r
+#\r
 CheckAll = 0\r
 \r
 #\r
@@ -41,7 +41,7 @@ AutoCorrect = 1
 #\r
 # List customized Modifer here, split with ','\r
 #\r
-ModifierList = IN, OUT, OPTIONAL, UNALIGNED, EFI_RUNTIMESERVICE, EFI_BOOTSERVICE, EFIAPI, TPMINTERNALAPI\r
+ModifierList = IN, OUT, OPTIONAL, UNALIGNED, EFI_RUNTIMESERVICE, EFI_BOOTSERVICE, EFIAPI, TPMINTERNALAPI, STATIC\r
 \r
 #\r
 # General Checking\r
@@ -68,6 +68,10 @@ GeneralCheckNoProgma = 1
 GeneralCheckCarriageReturn = 1\r
 # Check whether the file exists\r
 GeneralCheckFileExistence = 1\r
+# Check whether file has non ACSII char\r
+GeneralCheckNonAcsii = 1\r
+# Check whether UNI file is valid\r
+GeneralCheckUni = 1\r
 \r
 #\r
 # Space Checking\r
@@ -81,7 +85,7 @@ PredicateExpressionCheckAll = 0
 \r
 # Check whether Boolean values, variable type BOOLEAN not use explicit comparisons to TRUE or FALSE\r
 PredicateExpressionCheckBooleanValue = 1\r
-# Check whether Non-Boolean comparisons use a compare operator (==, !=, >, < >=, <=). \r
+# Check whether Non-Boolean comparisons use a compare operator (==, !=, >, < >=, <=).\r
 PredicateExpressionCheckNonBooleanOperator = 1\r
 # Check whether a comparison of any pointer to zero must be done via the NULL type\r
 PredicateExpressionCheckComparisonNullType = 1\r
@@ -95,6 +99,14 @@ HeaderCheckAll = 0
 HeaderCheckFile = 1\r
 # Check whether Function header exists\r
 HeaderCheckFunction = 1\r
+# Check whether Meta data File header Comment End with '##'\r
+HeaderCheckFileCommentEnd = 0\r
+# Check whether C File header Comment content start with two spaces\r
+HeaderCheckCFileCommentStartSpacesNum = 0\r
+# Check whether C File header Comment's each reference at list should begin with a bullet character '-'\r
+HeaderCheckCFileCommentReferenceFormat = 0\r
+# Check whether C File header Comment have the License immediately after the ""Copyright"" line\r
+HeaderCheckCFileCommentLicenseFormat = 0\r
 \r
 #\r
 # C Function Layout Checking\r
@@ -189,7 +201,7 @@ DoxygenCheckAll = 0
 DoxygenCheckFileHeader = 1\r
 # Check whether the function headers are followed Doxygen special documentation blocks in section 2.3.5\r
 DoxygenCheckFunctionHeader = 1\r
-# Check whether the first line of text in a comment block is a brief description of the element being documented. \r
+# Check whether the first line of text in a comment block is a brief description of the element being documented.\r
 # The brief description must end with a period.\r
 DoxygenCheckCommentDescription = 1\r
 # Check whether comment lines with '///< ... text ...' format, if it is used, it should be after the code section.\r
@@ -208,8 +220,8 @@ MetaDataFileCheckPathName = 1
 MetaDataFileCheckGenerateFileList = 1\r
 # The path of log file\r
 MetaDataFileCheckPathOfGenerateFileList = File.log\r
-# Check whether all Library Instances defined for a given module (or dependent library instance) match the module's type.  \r
-# Each Library Instance must specify the Supported Module Types in its INF file, \r
+# Check whether all Library Instances defined for a given module (or dependent library instance) match the module's type.\r
+# Each Library Instance must specify the Supported Module Types in its INF file,\r
 # and any module specifying the library instance must be one of the supported types.\r
 MetaDataFileCheckLibraryInstance = 1\r
 # Check whether a Library Instance has been defined for all dependent library classes\r
@@ -218,6 +230,8 @@ MetaDataFileCheckLibraryInstanceDependent = 1
 MetaDataFileCheckLibraryInstanceOrder = 1\r
 # Check whether the unnecessary inclusion of library classes in the INF file\r
 MetaDataFileCheckLibraryNoUse = 1\r
+# Check the header file in Include\Library directory whether be defined in the package DEC file.\r
+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
 MetaDataFileCheckBinaryInfInFdf = 1\r
 # Not to report error and warning related OS include file such as "windows.h" and "stdio.h".\r
@@ -226,7 +240,7 @@ MetaDataFileCheckPcdDuplicate = 1
 # Check whether PCD settings in the FDF file can only be related to flash.\r
 MetaDataFileCheckPcdFlash = 1\r
 # Check whether PCDs used in INF files but not specified in DSC or FDF files\r
-MetaDataFileCheckPcdNoUse = 1\r
+MetaDataFileCheckPcdNoUse = 0\r
 # Check whether having duplicate guids defined for Guid/Protocol/Ppi\r
 MetaDataFileCheckGuidDuplicate = 1\r
 # Check whether all files under module directory are described in INF files\r
@@ -236,9 +250,32 @@ MetaDataFileCheckPcdType = 1
 # Check whether there are FILE_GUID duplication among different INF files\r
 MetaDataFileCheckModuleFileGuidDuplication = 1\r
 \r
+#\r
+# Uni File Processing Checking\r
+#\r
+UniCheckAll = 0\r
+# Check INF or DEC file whether defined the localized information in the associated UNI file.\r
+UniCheckHelpInfo = 1\r
+# Check PCD whether defined the prompt, help in the DEC file and localized information in the associated UNI file.\r
+UniCheckPCDInfo = 1\r
+# Uncheck whether UNI file is in UTF-16 format\r
+GeneralCheckUni = -1\r
+\r
+#\r
+# SMM Communicate Function Parameter Checking\r
+#\r
+SmmCommParaCheckAll = 0\r
+# Check if the EFI_SMM_COMMUNICATION_PROTOCOL parameter buffer type is Reserved / ACPI NVS or UEFI RT code/data\r
+SmmCommParaCheckBufferType = 1\r
+\r
 #\r
 # The check points in this section are reserved\r
 #\r
 # GotoStatementCheckAll = 0\r
 # SpellingCheckAll = 0\r
 #\r
+\r
+# A list for binary file ext name\r
+BinaryExtList = EXE, EFI, FV, ROM, DLL, COM, BMP, GIF, PYD, CMP, BIN, JPG, UNI, RAW, COM2, LIB, DEPEX, SYS, DB\r
+# A list for only scanning dirs, the dirs should be the top folder(s) under workspace\r
+ScanOnlyDirList = ScanFolder1 ScanFolder2\r