]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UnitTestFrameworkPkg: Add configuration for Ecc check in yaml file
authorShenglei Zhang <shenglei.zhang@intel.com>
Wed, 10 Jun 2020 06:20:22 +0000 (14:20 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 17 Aug 2020 03:28:09 +0000 (03:28 +0000)
Add configuration ExceptionList and IgnoreFiles for package config
files. So users can rely on this to ignore some Ecc issues.
Besides, add submodule path in IgnoreFiles section.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
UnitTestFrameworkPkg/UnitTestFrameworkPkg.ci.yaml

index fc5b3b387664b7e7f64f0fdd394167d1a8179add..9e9ffc1af113a621fb96014ee12f3ceebac7eb0b 100644 (file)
@@ -9,6 +9,18 @@
     "LicenseCheck": {\r
         "IgnoreFiles": []\r
     },\r
+    "EccCheck": {\r
+        ## Exception sample looks like below:\r
+        ## "ExceptionList": [\r
+        ##     "<ErrorID>", "<KeyWord>"\r
+        ## ]\r
+        "ExceptionList": [\r
+        ],\r
+        ## Both file path and directory path are accepted.\r
+        "IgnoreFiles": [\r
+            "Library/CmockaLib/cmocka"\r
+        ]\r
+    },\r
     ## options defined .pytool/Plugin/CompilerPlugin\r
     "CompilerPlugin": {\r
         "DscPath": "UnitTestFrameworkPkg.dsc"\r