mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 08:34:07 +02:00
BaseTools: fix consistent Ecc misspelling of ASCII
Ecc concistently referred to ASCII/Ascii as ACSII/Acsii, which bugged me to no end when trying to figure out how those tests worked. Fix all instances. Signed-off-by: Leif Lindholm <quic_llindhol@quicinc.com>
This commit is contained in:
parent
8bb9145ad1
commit
8ade6d7bd1
@ -181,7 +181,7 @@ class Check(object):
|
|||||||
|
|
||||||
# General Checking
|
# General Checking
|
||||||
def GeneralCheck(self):
|
def GeneralCheck(self):
|
||||||
self.GeneralCheckNonAcsii()
|
self.GeneralCheckNonAscii()
|
||||||
self.UniCheck()
|
self.UniCheck()
|
||||||
self.GeneralCheckNoTab()
|
self.GeneralCheckNoTab()
|
||||||
self.GeneralCheckLineEnding()
|
self.GeneralCheckLineEnding()
|
||||||
@ -238,10 +238,10 @@ class Check(object):
|
|||||||
OtherMsg = "File %s has trailing white spaces at line %s" % (Record[1], IndexOfLine)
|
OtherMsg = "File %s has trailing white spaces at line %s" % (Record[1], IndexOfLine)
|
||||||
EccGlobalData.gDb.TblReport.Insert(ERROR_GENERAL_CHECK_TRAILING_WHITE_SPACE_LINE, OtherMsg=OtherMsg, BelongsToTable='File', BelongsToItem=Record[0])
|
EccGlobalData.gDb.TblReport.Insert(ERROR_GENERAL_CHECK_TRAILING_WHITE_SPACE_LINE, OtherMsg=OtherMsg, BelongsToTable='File', BelongsToItem=Record[0])
|
||||||
|
|
||||||
# Check whether file has non ACSII char
|
# Check whether file has non ASCII char
|
||||||
def GeneralCheckNonAcsii(self):
|
def GeneralCheckNonAscii(self):
|
||||||
if EccGlobalData.gConfig.GeneralCheckNonAcsii == '1' or EccGlobalData.gConfig.GeneralCheckAll == '1' or EccGlobalData.gConfig.CheckAll == '1':
|
if EccGlobalData.gConfig.GeneralCheckNonAscii == '1' or EccGlobalData.gConfig.GeneralCheckAll == '1' or EccGlobalData.gConfig.CheckAll == '1':
|
||||||
EdkLogger.quiet("Checking Non-ACSII char in file ...")
|
EdkLogger.quiet("Checking Non-ASCII char in file ...")
|
||||||
SqlCommand = """select ID, FullPath, ExtName from File where ExtName in ('.dec', '.inf', '.dsc', 'c', 'h')"""
|
SqlCommand = """select ID, FullPath, ExtName from File where ExtName in ('.dec', '.inf', '.dsc', 'c', 'h')"""
|
||||||
RecordSet = EccGlobalData.gDb.TblFile.Exec(SqlCommand)
|
RecordSet = EccGlobalData.gDb.TblFile.Exec(SqlCommand)
|
||||||
for Record in RecordSet:
|
for Record in RecordSet:
|
||||||
@ -255,7 +255,7 @@ class Check(object):
|
|||||||
IndexOfChar += 1
|
IndexOfChar += 1
|
||||||
if ord(Char) > 126:
|
if ord(Char) > 126:
|
||||||
OtherMsg = "File %s has Non-ASCII char at line %s column %s" % (Record[1], IndexOfLine, IndexOfChar)
|
OtherMsg = "File %s has Non-ASCII char at line %s column %s" % (Record[1], IndexOfLine, IndexOfChar)
|
||||||
EccGlobalData.gDb.TblReport.Insert(ERROR_GENERAL_CHECK_NON_ACSII, OtherMsg=OtherMsg, BelongsToTable='File', BelongsToItem=Record[0])
|
EccGlobalData.gDb.TblReport.Insert(ERROR_GENERAL_CHECK_NON_ASCII, OtherMsg=OtherMsg, BelongsToTable='File', BelongsToItem=Record[0])
|
||||||
|
|
||||||
# C Function Layout Checking
|
# C Function Layout Checking
|
||||||
def FunctionLayoutCheck(self):
|
def FunctionLayoutCheck(self):
|
||||||
|
@ -59,7 +59,7 @@ _ConfigFileToInternalTranslation = {
|
|||||||
"GeneralCheckNoProgma":"GeneralCheckNoProgma",
|
"GeneralCheckNoProgma":"GeneralCheckNoProgma",
|
||||||
"GeneralCheckNoTab":"GeneralCheckNoTab",
|
"GeneralCheckNoTab":"GeneralCheckNoTab",
|
||||||
"GeneralCheckNo_Asm":"GeneralCheckNo_Asm",
|
"GeneralCheckNo_Asm":"GeneralCheckNo_Asm",
|
||||||
"GeneralCheckNonAcsii":"GeneralCheckNonAcsii",
|
"GeneralCheckNonAscii":"GeneralCheckNonAscii",
|
||||||
"GeneralCheckTabWidth":"GeneralCheckTabWidth",
|
"GeneralCheckTabWidth":"GeneralCheckTabWidth",
|
||||||
"GeneralCheckTrailingWhiteSpaceLine":"GeneralCheckTrailingWhiteSpaceLine",
|
"GeneralCheckTrailingWhiteSpaceLine":"GeneralCheckTrailingWhiteSpaceLine",
|
||||||
"GeneralCheckUni":"GeneralCheckUni",
|
"GeneralCheckUni":"GeneralCheckUni",
|
||||||
@ -179,8 +179,8 @@ class Configuration(object):
|
|||||||
self.GeneralCheckCarriageReturn = 1
|
self.GeneralCheckCarriageReturn = 1
|
||||||
# Check whether the file exists
|
# Check whether the file exists
|
||||||
self.GeneralCheckFileExistence = 1
|
self.GeneralCheckFileExistence = 1
|
||||||
# Check whether file has non ACSII char
|
# Check whether file has non ASCII char
|
||||||
self.GeneralCheckNonAcsii = 1
|
self.GeneralCheckNonAscii = 1
|
||||||
# Check whether UNI file is valid
|
# Check whether UNI file is valid
|
||||||
self.GeneralCheckUni = 1
|
self.GeneralCheckUni = 1
|
||||||
# Check Only use CRLF (Carriage Return Line Feed) line endings.
|
# Check Only use CRLF (Carriage Return Line Feed) line endings.
|
||||||
|
@ -14,7 +14,7 @@ ERROR_GENERAL_CHECK_NO_ASM = 1004
|
|||||||
ERROR_GENERAL_CHECK_NO_PROGMA = 1005
|
ERROR_GENERAL_CHECK_NO_PROGMA = 1005
|
||||||
ERROR_GENERAL_CHECK_CARRIAGE_RETURN = 1006
|
ERROR_GENERAL_CHECK_CARRIAGE_RETURN = 1006
|
||||||
ERROR_GENERAL_CHECK_FILE_EXISTENCE = 1007
|
ERROR_GENERAL_CHECK_FILE_EXISTENCE = 1007
|
||||||
ERROR_GENERAL_CHECK_NON_ACSII = 1008
|
ERROR_GENERAL_CHECK_NON_ASCII = 1008
|
||||||
ERROR_GENERAL_CHECK_UNI = 1009
|
ERROR_GENERAL_CHECK_UNI = 1009
|
||||||
ERROR_GENERAL_CHECK_UNI_HELP_INFO = 1010
|
ERROR_GENERAL_CHECK_UNI_HELP_INFO = 1010
|
||||||
ERROR_GENERAL_CHECK_INVALID_LINE_ENDING = 1011
|
ERROR_GENERAL_CHECK_INVALID_LINE_ENDING = 1011
|
||||||
@ -113,7 +113,7 @@ gEccErrorMessage = {
|
|||||||
ERROR_GENERAL_CHECK_NO_PROGMA : """There should be no use of "#progma" in source file except "#pragma pack(#)\"""",
|
ERROR_GENERAL_CHECK_NO_PROGMA : """There should be no use of "#progma" in source file except "#pragma pack(#)\"""",
|
||||||
ERROR_GENERAL_CHECK_CARRIAGE_RETURN : "There should be a carriage return at the end of the file",
|
ERROR_GENERAL_CHECK_CARRIAGE_RETURN : "There should be a carriage return at the end of the file",
|
||||||
ERROR_GENERAL_CHECK_FILE_EXISTENCE : "File not found",
|
ERROR_GENERAL_CHECK_FILE_EXISTENCE : "File not found",
|
||||||
ERROR_GENERAL_CHECK_NON_ACSII : "File has invalid Non-ACSII char",
|
ERROR_GENERAL_CHECK_NON_ASCII : "File has invalid Non-ASCII char",
|
||||||
ERROR_GENERAL_CHECK_UNI : "File is not a valid UTF-16 UNI file",
|
ERROR_GENERAL_CHECK_UNI : "File is not a valid UTF-16 UNI file",
|
||||||
ERROR_GENERAL_CHECK_UNI_HELP_INFO : "UNI file that is associated by INF or DEC file need define the prompt and help information.",
|
ERROR_GENERAL_CHECK_UNI_HELP_INFO : "UNI file that is associated by INF or DEC file need define the prompt and help information.",
|
||||||
ERROR_GENERAL_CHECK_INVALID_LINE_ENDING : "Only CRLF (Carriage Return Line Feed) is allowed to line ending.",
|
ERROR_GENERAL_CHECK_INVALID_LINE_ENDING : "Only CRLF (Carriage Return Line Feed) is allowed to line ending.",
|
||||||
|
@ -62,8 +62,8 @@ GeneralCheckNoProgma = 1
|
|||||||
GeneralCheckCarriageReturn = 1
|
GeneralCheckCarriageReturn = 1
|
||||||
# Check whether the file exists
|
# Check whether the file exists
|
||||||
GeneralCheckFileExistence = 1
|
GeneralCheckFileExistence = 1
|
||||||
# Check whether file has non ACSII char
|
# Check whether file has non ASCII char
|
||||||
GeneralCheckNonAcsii = 1
|
GeneralCheckNonAscii = 1
|
||||||
# Check whether UNI file is valid
|
# Check whether UNI file is valid
|
||||||
GeneralCheckUni = 1
|
GeneralCheckUni = 1
|
||||||
# Check Only use CRLF (Carriage Return Line Feed) line endings.
|
# Check Only use CRLF (Carriage Return Line Feed) line endings.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user