PurityAnalyzer icon indicating copy to clipboard operation
PurityAnalyzer copied to clipboard

Publish a NuGet package

Open sonnemaf opened this issue 3 years ago • 2 comments

The PurityAnalyzer is now only a Visual Studio Extension. Can you also publish a NuGet package for it? I want to use it without the need to install the extension. The NuGet (analyzer) package would allow me to analyze only certain projects in my solution.

Regards,

Fons

sonnemaf avatar Jan 20 '21 10:01 sonnemaf

I see value in deploying the analyzer via a NuGet package. One thing to solve though is how to get the settings. PurityAnalyzer has settings (that allow people to mark 3rd party methods as pure for example) that are currently managed via the VS extension.

One solution is to have a .txt (or json) file in the project to contain the settings, and use default settings if such a file does not exist.

ymassad avatar Jan 20 '21 19:01 ymassad

Great.

Maybe you can store the settings in the .editorconfig file. This would be the first place where I would look for.

sonnemaf avatar Jan 21 '21 07:01 sonnemaf