Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: c4130fc591f2a85beb92c0ac3135029ec9df9538
      
https://github.com/tianocore/edk2/commit/c4130fc591f2a85beb92c0ac3135029ec9df9538
  Author: Michael Kubacki <[email protected]>
  Date:   2026-06-24 (Wed, 24 Jun 2026)

  Changed paths:
    M .pytool/Plugin/EccCheck/EccCheck.py

  Log Message:
  -----------
  .pytool/EccCheck: Report package-relative paths in ECC findings

The EccCheck plugin currently reports incorrect paths that are
confusing to a user, such as:

```
*file: C:\src\edk2\Build\.pytool\Plugin\EccCheck\MdePkg\Include\
       Protocol\AuthenticationInfo.h
```

This is because the EccCheck plugin does not scan the package in
place. Before running ECC, it copies the package into
`Build/.pytool/Plugin/EccCheck/` and points the ECC tool at that
temporary location. As a result, the paths ECC records in its report
refer to the temporary copy rather than the file in the actual source
tree.

This affected two fields that are printed:

  - The "file:" line is taken from ECC's File column (`row[3]`), which
    holds the absolute path of the scanned file. It always pointed
    into the temporary scan directory.

  - The descriptive message (`row[5]`) paths were prefixed with
    `Build/.pytool/Plugin/EccCheck/`.

The temporary path is an internal build detail and prevents resolution
against the actual source file.

This change translates the reported paths back to the package-relative
path before printing.

Signed-off-by: Michael Kubacki <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to