microsoft / sarif-sdk

.NET code and supporting files for working with the 'Static Analysis Results Interchange Format' (SARIF, see https://github.com/oasis-tcs/sarif-spec)
Other
192 stars 90 forks source link

Add realized configuration peristence mechanism. Namespace removal. #2706

Closed michaelcfanning closed 1 year ago

michaelcfanning commented 1 year ago

Provides a mechanism to persist all realized configuration, as specified on the command-line (including any serialized config file that's been loaded) to an output file.

This persisted configuration file can be round-tripped to the tool to render the identical analysis configuration.

This allows users to render a very complex command-line, and then to capture it in a single file that can provide a simplified command-line experience (i.e., you simply pass the XML via the -c switch) or so that the detailed configuration can be manually adjusted (for example, to create a specialized min-bar of analysis checks, by disabling certain rules). Currently not all of our settings (and rule disablement is a good example) is available on the command-line.