com.bovinelabs.analyzers icon indicating copy to clipboard operation
com.bovinelabs.analyzers copied to clipboard

Allow to exclude assemblies from including RoslynAnalyzers in them.

Open SolidAlloy opened this issue 4 years ago • 6 comments

Currently, RoslynAnalyzers is referenced in every project generated by Unity. When I add a package or asset that has code in its own assembly, Unity generates a project for it and RoslynAnalyzers gets referenced there. It produces a lot of warnings that are not relevant to me as I don't plan to change code in the packages I am using.

It would be helpful if it was possible to exclude certain assemblies so that RoslynAnalyzers is not referenced in the projects generated with those assemblies. This way, RoslynAnalyzers could produce warnings only for the code I own.

SolidAlloy avatar Jun 30 '20 12:06 SolidAlloy