## @file\r
-# Standardized Error Hanlding infrastructures.\r
+# Standardized Error Handling infrastructures.\r
#\r
-# Copyright (c) 2008 - 2015, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2008 - 2018, 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
ERROR_GENERAL_CHECK_NON_ACSII = 1008\r
ERROR_GENERAL_CHECK_UNI = 1009\r
ERROR_GENERAL_CHECK_UNI_HELP_INFO = 1010\r
+ERROR_GENERAL_CHECK_INVALID_LINE_ENDING = 1011\r
+ERROR_GENERAL_CHECK_TRAILING_WHITE_SPACE_LINE = 1012\r
\r
ERROR_SPACE_CHECK_ALL = 2000\r
\r
ERROR_META_DATA_FILE_CHECK_FORMAT_PROTOCOL = 10019\r
ERROR_META_DATA_FILE_CHECK_FORMAT_PPI = 10020\r
ERROR_META_DATA_FILE_CHECK_FORMAT_PCD = 10021\r
+ERROR_META_DATA_FILE_CHECK_LIBRARY_NOT_DEFINED = 10022\r
\r
ERROR_SPELLING_CHECK_ALL = 11000\r
\r
+ERROR_SMM_COMM_PARA_CHECK_BUFFER_TYPE = 12001\r
+\r
gEccErrorMessage = {\r
ERROR_GENERAL_CHECK_ALL : "",\r
- ERROR_GENERAL_CHECK_NO_TAB : "'TAB' character is not allowed in source code, please replace each 'TAB' with two spaces",\r
+ ERROR_GENERAL_CHECK_NO_TAB : "'TAB' character is not allowed in source code, please replace each 'TAB' with two spaces.",\r
ERROR_GENERAL_CHECK_INDENTATION : "Indentation does not follow coding style",\r
ERROR_GENERAL_CHECK_LINE : "The width of each line does not follow coding style",\r
ERROR_GENERAL_CHECK_NO_ASM : "There should be no use of _asm in the source file",\r
ERROR_GENERAL_CHECK_NON_ACSII : "File has invalid Non-ACSII char",\r
ERROR_GENERAL_CHECK_UNI : "File is not a valid UTF-16 UNI file",\r
ERROR_GENERAL_CHECK_UNI_HELP_INFO : "UNI file that is associated by INF or DEC file need define the prompt and help information.",\r
+ ERROR_GENERAL_CHECK_INVALID_LINE_ENDING : "Only CRLF (Carriage Return Line Feed) is allowed to line ending.",\r
+ ERROR_GENERAL_CHECK_TRAILING_WHITE_SPACE_LINE : "There should be no trailing white space in one line.",\r
\r
ERROR_SPACE_CHECK_ALL : "",\r
\r
ERROR_INCLUDE_FILE_CHECK_IFNDEF_STATEMENT_2 : "The #ifndef must be the first line of code following the file header comment",\r
ERROR_INCLUDE_FILE_CHECK_IFNDEF_STATEMENT_3 : "The #endif must appear on the last line in the file",\r
ERROR_INCLUDE_FILE_CHECK_DATA : "Include files should contain only public or only private data and cannot contain code or define data variables",\r
- ERROR_INCLUDE_FILE_CHECK_NAME : "No permission for the inlcude file with same names",\r
+ ERROR_INCLUDE_FILE_CHECK_NAME : "No permission for the include file with same names",\r
\r
ERROR_DECLARATION_DATA_TYPE_CHECK_ALL : "",\r
ERROR_DECLARATION_DATA_TYPE_CHECK_NO_USE_C_TYPE : "There should be no use of int, unsigned, char, void, static, long in any .c, .h or .asl files",\r
ERROR_DOXYGEN_CHECK_FUNCTION_HEADER : "The function headers should follow Doxygen special documentation blocks in section 2.3.5",\r
ERROR_DOXYGEN_CHECK_COMMENT_DESCRIPTION : """The first line of text in a comment block should be a brief description of the element being documented and the brief description must end with a period.""",\r
ERROR_DOXYGEN_CHECK_COMMENT_FORMAT : "For comment line with '///< ... text ...' format, if it is used, it should be after the code section",\r
- ERROR_DOXYGEN_CHECK_COMMAND : "Only Doxygen commands '@bug', '@todo', '@example', '@file', '@attention', '@param', '@post', '@pre', '@retval', '@return', '@sa', '@since', '@test', '@note', '@par' are allowed to mark the code",\r
+ ERROR_DOXYGEN_CHECK_COMMAND : "Only Doxygen commands '@bug', '@todo', '@example', '@file', '@attention', '@param', '@post', '@pre', '@retval', '@return', '@sa', '@since', '@test', '@note', '@par', '@endcode', '@code', '@{', '@}' are allowed to mark the code",\r
\r
ERROR_META_DATA_FILE_CHECK_ALL : "",\r
ERROR_META_DATA_FILE_CHECK_PATH_NAME : "The file defined in meta-data does not exist",\r
ERROR_META_DATA_FILE_CHECK_FORMAT_PROTOCOL : "Wrong Protocol Format used in Module file",\r
ERROR_META_DATA_FILE_CHECK_FORMAT_PPI : "Wrong Ppi Format used in Module file",\r
ERROR_META_DATA_FILE_CHECK_FORMAT_PCD : "Wrong Pcd Format used in Module file",\r
+ ERROR_META_DATA_FILE_CHECK_LIBRARY_NOT_DEFINED : "Not defined LibraryClass used in the Module file.",\r
ERROR_SPELLING_CHECK_ALL : "",\r
+\r
+ ERROR_SMM_COMM_PARA_CHECK_BUFFER_TYPE : "SMM communication function may use wrong parameter type",\r
}\r
\r