Add a notification about BuildCheck enabled for the current build
Fixes #10135
Context
The users have to be notified if BuildCheck got invoked during the build.
Changes Made
The message got logged once the logger service is available and custom analyzers are defiled:
The original requirement from the security review was to be able to locate all the check names (and respective package names that contained them) that were enabled in the build, despite the checks might not have produced any outputs.
Sample simplisitc possible output:
The BuildCheck is enabled for this build. Following Checks were enabled on at least one of the projects:
| name | source |
| SharedOutputPathsCheck | builtin |
| ContosoProjectStructureCheck | Contoso.BuildChecks 0.0.2 |
The original requirement from the security review was to be able to locate all the check names (and respective package names that contained them) that were enabled in the build, despite the checks might not have produced any outputs.
Sample simplisitc possible output:
The BuildCheck is enabled for this build. Following Checks were enabled on at least one of the projects: | name | source | | SharedOutputPathsCheck | builtin | | ContosoProjectStructureCheck | Contoso.BuildChecks 0.0.2 |
done, in a different way.