From 9dd964f5e5c5595a1acd5eb438fb088327db86fa Mon Sep 17 00:00:00 2001 From: Yi Li Date: Tue, 10 May 2022 15:19:07 +0800 Subject: [PATCH 1/1] CryptoPkg/openssl: disable codestyle checks for generated files Files generated by process_files.pl from openssl sources should not be checked for edk2 code style. Signed-off-by: Gerd Hoffmann Signed-off-by: Yi Li Cc: Jiewen Yao Cc: Jian J Wang Cc: Xiaoyu Lu Cc: Guomin Jiang Reviewed-by: Jiewen Yao --- CryptoPkg/CryptoPkg.ci.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/CryptoPkg/CryptoPkg.ci.yaml b/CryptoPkg/CryptoPkg.ci.yaml index 396ca93dbe..bb52ceb547 100644 --- a/CryptoPkg/CryptoPkg.ci.yaml +++ b/CryptoPkg/CryptoPkg.ci.yaml @@ -10,7 +10,8 @@ "IgnoreFiles": [ # These directories contain auto-generated OpenSSL content "Library/OpensslLib/X64", - "Library/OpensslLib/X64Gcc" + "Library/OpensslLib/X64Gcc", + "Library/Include/openssl" ] }, "EccCheck": { @@ -26,6 +27,8 @@ ## Both file path and directory path are accepted. "IgnoreFiles": [ "Library/OpensslLib/openssl", + "Library/Include/openssl", + "Library/Include/crypto", # The unit testing folder is not to be checked "Test/UnitTest", # This has OpenSSL interfaces that aren't UEFI spec compliant @@ -89,5 +92,14 @@ "ExtendWords": [], # words to extend to the dictionary for this package "IgnoreStandardPaths": [], # Standard Plugin defined paths that should be ignore "AdditionalIncludePaths": [] # Additional paths to spell check (wildcards supported) + }, + + # options defined in .pytool/Plugin/UncrustifyCheck + "UncrustifyCheck": { + "IgnoreFiles": [ + "opensslconf.h", + "dso_conf.h", + "opensslconf_generated.h" + ] } } -- 2.39.2