]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/Python/Ecc/config.ini
Sync EDKII BaseTools to BaseTools project r1971
[mirror_edk2.git] / BaseTools / Source / Python / Ecc / config.ini
CommitLineData
30fdf114
LG
1## @file\r
2# This file is used to set configuration of ECC tool\r
3# For the items listed below, 1 means valid, 0 means invalid\r
4#\r
40d841f6
LG
5# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
6# This program and the accompanying materials\r
30fdf114
LG
7# are licensed and made available under the terms and conditions of the BSD License\r
8# which accompanies this distribution. The full text of the license may be found at\r
9# http://opensource.org/licenses/bsd-license.php\r
10#\r
11# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13#\r
14\r
15#\r
16# Identify the version of current configuration\r
17#\r
18Version = 0.1\r
19\r
20#\r
21# Identify to if check all items\r
22# 1 - Check all items and ignore all other detailed items\r
23# 0 - Not check all items, the tool will go through all other detailed items to decide to check or not\r
24# \r
25CheckAll = 0\r
26\r
27#\r
28# Identify to if automatically correct mistakes\r
29# 1 - Automatically correct\r
30# 0 - Not automatically correct\r
31# Only the following check points can be automatically corrected, others not listed below are not supported even it is 1\r
32#\r
33# GeneralCheckTab\r
34# GeneralCheckIndentation\r
35# GeneralCheckLine\r
36# GeneralCheckCarriageReturn\r
37# SpaceCheckAll\r
38#\r
39AutoCorrect = 1\r
40\r
41#\r
42# List customized Modifer here, split with ','\r
43#\r
44ModifierList = IN, OUT, OPTIONAL, UNALIGNED, EFI_RUNTIMESERVICE, EFI_BOOTSERVICE, EFIAPI, TPMINTERNALAPI\r
45\r
46#\r
47# General Checking\r
48#\r
49GeneralCheckAll = 0\r
50\r
51# Check whether NO Tab is used, replaced with spaces\r
52GeneralCheckNoTab = 1\r
53# The width of Tab\r
54GeneralCheckTabWidth = 2\r
55# Check whether the indentation is followed coding style\r
56GeneralCheckIndentation = 1\r
57# The width of indentation\r
58GeneralCheckIndentationWidth = 2\r
59# Check whether no line is exceeding defined widty\r
60GeneralCheckLine = 1\r
61# The width of a line\r
62GeneralCheckLineWidth = 120\r
63# Check whether no use of _asm in the source file\r
64GeneralCheckNo_Asm = 1\r
65# Check whether no use of "#progma" in source file except "#pragma pack(#)".\r
66GeneralCheckNoProgma = 1\r
67# Check whether there is a carriage return at the end of the file\r
68GeneralCheckCarriageReturn = 1\r
69# Check whether the file exists\r
70GeneralCheckFileExistence = 1\r
71\r
72#\r
73# Space Checking\r
74#\r
75SpaceCheckAll = 1\r
76\r
77#\r
78# Predicate Expression Checking\r
79#\r
80PredicateExpressionCheckAll = 0\r
81\r
82# Check whether Boolean values, variable type BOOLEAN not use explicit comparisons to TRUE or FALSE\r
83PredicateExpressionCheckBooleanValue = 1\r
84# Check whether Non-Boolean comparisons use a compare operator (==, !=, >, < >=, <=). \r
85PredicateExpressionCheckNonBooleanOperator = 1\r
86# Check whether a comparison of any pointer to zero must be done via the NULL type\r
87PredicateExpressionCheckComparisonNullType = 1\r
88\r
89#\r
90# Headers Checking\r
91#\r
92HeaderCheckAll = 0\r
93\r
94# Check whether File header exists\r
95HeaderCheckFile = 1\r
96# Check whether Function header exists\r
97HeaderCheckFunction = 1\r
98\r
99#\r
100# C Function Layout Checking\r
101#\r
102CFunctionLayoutCheckAll = 0\r
103\r
104# Check whether return type exists and in the first line\r
105CFunctionLayoutCheckReturnType = 1\r
106# Check whether any optional functional modifiers exist and next to the return type\r
107CFunctionLayoutCheckOptionalFunctionalModifier = 1\r
108# Check whether the next line contains the function name, left justified, followed by the beginning of the parameter list\r
109# Check whether the closing parenthesis is on its own line and also indented two spaces\r
110CFunctionLayoutCheckFunctionName = 1\r
111# Check whether the function prototypes in include files have the same form as function definitions\r
112CFunctionLayoutCheckFunctionPrototype = 1\r
113# Check whether the body of a function is contained by open and close braces that must be in the first column\r
114CFunctionLayoutCheckFunctionBody = 1\r
115# Check whether the data declarations is the first code in a module.\r
116CFunctionLayoutCheckDataDeclaration = 1\r
117# Check whether no initialization of a variable as part of its declaration\r
118CFunctionLayoutCheckNoInitOfVariable = 1\r
119# Check whether no use of STATIC for functions\r
120CFunctionLayoutCheckNoStatic = 1\r
121\r
122#\r
123# Include Files Checking\r
124#\r
125IncludeFileCheckAll = 0\r
126\r
127#Check whether having include files with same name\r
128IncludeFileCheckSameName = 1\r
129# Check whether all include file contents is guarded by a #ifndef statement.\r
130# the #ifndef must be the first line of code following the file header comment\r
131# the #endif must appear on the last line in the file\r
132IncludeFileCheckIfndefStatement = 1\r
133# Check whether include files contain only public or only private data\r
134# Check whether include files NOT contain code or define data variables\r
135IncludeFileCheckData = 1\r
136\r
137#\r
138# Declarations and Data Types Checking\r
139#\r
140DeclarationDataTypeCheckAll = 0\r
141\r
142# Check whether no use of int, unsigned, char, void, static, long in any .c, .h or .asl files.\r
143DeclarationDataTypeCheckNoUseCType = 1\r
144# Check whether the modifiers IN, OUT, OPTIONAL, and UNALIGNED are used only to qualify arguments to a function and should not appear in a data type declaration\r
145DeclarationDataTypeCheckInOutModifier = 1\r
146# Check whether the EFIAPI modifier should be used at the entry of drivers, events, and member functions of protocols\r
147DeclarationDataTypeCheckEFIAPIModifier = 1\r
148# Check whether Enumerated Type has a 'typedef' and the name is capital\r
149DeclarationDataTypeCheckEnumeratedType = 1\r
150# Check whether Structure Type has a 'typedef' and the name is capital\r
151DeclarationDataTypeCheckStructureDeclaration = 1\r
152# Check whether having same Structure\r
153DeclarationDataTypeCheckSameStructure = 1\r
154# Check whether Union Type has a 'typedef' and the name is capital\r
155DeclarationDataTypeCheckUnionType = 1\r
156\r
157\r
158#\r
159# Naming Conventions Checking\r
160#\r
161NamingConventionCheckAll = 0\r
162\r
163# Check whether only capital letters are used for #define declarations\r
164NamingConventionCheckDefineStatement = 1\r
165# Check whether only capital letters are used for typedef declarations\r
166NamingConventionCheckTypedefStatement = 1\r
167# Check whether the #ifndef at the start of an include file uses both prefix and postfix underscore characters, '_'.\r
168NamingConventionCheckIfndefStatement = 1\r
169# Rule for path name, variable name and function name\r
170# 1. First character should be upper case\r
171# 2. Existing lower case in a word\r
172# 3. No space existence\r
173# 4. Global variable name must start by a 'g'\r
174# Check whether the path name followed the rule\r
175NamingConventionCheckPathName = 1\r
176# Check whether the variable name followed the rule\r
177NamingConventionCheckVariableName = 1\r
178# Check whether the function name followed the rule\r
179NamingConventionCheckFunctionName = 1\r
180# Check whether NO use short variable name with single character\r
181NamingConventionCheckSingleCharacterVariable = 1\r
182\r
183#\r
184# Doxygen Checking\r
185#\r
186DoxygenCheckAll = 0\r
187\r
188# Check whether the file headers are followed Doxygen special documentation blocks in section 2.3.5\r
189DoxygenCheckFileHeader = 1\r
190# Check whether the function headers are followed Doxygen special documentation blocks in section 2.3.5\r
191DoxygenCheckFunctionHeader = 1\r
192# Check whether the first line of text in a comment block is a brief description of the element being documented. \r
193# The brief description must end with a period.\r
194DoxygenCheckCommentDescription = 1\r
195# Check whether comment lines with '///< ... text ...' format, if it is used, it should be after the code section.\r
196DoxygenCheckCommentFormat = 1\r
197# Check whether only Doxygen commands allowed to mark the code are @bug and @todo.\r
198DoxygenCheckCommand = 1\r
199\r
200#\r
201# Meta-Data File Processing Checking\r
202#\r
203MetaDataFileCheckAll = 0\r
204\r
205# Check whether each file defined in meta-data exists\r
206MetaDataFileCheckPathName = 1\r
207# Generate a list for all files defined in meta-data files\r
208MetaDataFileCheckGenerateFileList = 1\r
209# The path of log file\r
210MetaDataFileCheckPathOfGenerateFileList = File.log\r
211# Check whether all Library Instances defined for a given module (or dependent library instance) match the module's type. \r
212# Each Library Instance must specify the Supported Module Types in its INF file, \r
213# and any module specifying the library instance must be one of the supported types.\r
214MetaDataFileCheckLibraryInstance = 1\r
215# Check whether a Library Instance has been defined for all dependent library classes\r
216MetaDataFileCheckLibraryInstanceDependent = 1\r
217# Check whether the Library Instances specified by the LibraryClasses sections are listed in order of dependencies\r
218MetaDataFileCheckLibraryInstanceOrder = 1\r
219# Check whether the unnecessary inclusion of library classes in the INF file\r
220MetaDataFileCheckLibraryNoUse = 1\r
221# 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
222MetaDataFileCheckBinaryInfInFdf = 1\r
223# Not to report error and warning related OS include file such as "windows.h" and "stdio.h".\r
224# Check whether a PCD is set in a DSC file or the FDF file, but not in both.\r
225MetaDataFileCheckPcdDuplicate = 1\r
226# Check whether PCD settings in the FDF file can only be related to flash.\r
227MetaDataFileCheckPcdFlash = 1\r
228# Check whether PCDs used in INF files but not specified in DSC or FDF files\r
229MetaDataFileCheckPcdNoUse = 1\r
230# Check whether having duplicate guids defined for Guid/Protocol/Ppi\r
231MetaDataFileCheckGuidDuplicate = 1\r
232# Check whether all files under module directory are described in INF files\r
233MetaDataFileCheckModuleFileNoUse = 1\r
234# Check whether the PCD is correctly used in C function via its type\r
235MetaDataFileCheckPcdType = 1\r
40d841f6
LG
236# Check whether there are FILE_GUID duplication among different INF files\r
237MetaDataFileCheckModuleFileGuidDuplication = 1\r
30fdf114
LG
238\r
239#\r
240# The check points in this section are reserved\r
241#\r
242# GotoStatementCheckAll = 0\r
243# SpellingCheckAll = 0\r
244#\r