Repository navigation
Fix location of CodeAnalysis.ruleset - #59
Conversation
ViktorHofer
left a comment
There was a problem hiding this comment.
Did you consider moving the ruleset file under src instead as it's shared?
| <!-- Analyzers --> | ||
| <PropertyGroup> | ||
| <CodeAnalysisRuleset>$(CoreLibSharedDir)CodeAnalysis.ruleset</CodeAnalysisRuleset> | ||
| <CodeAnalysisRuleset>$(LibrariesProjectRoot)CodeAnalysis.ruleset</CodeAnalysisRuleset> |
There was a problem hiding this comment.
Please remove that property in favor of the one in the repo root
There was a problem hiding this comment.
Please remove that property in favor of the one in the repo root
Not following. You mean replace LibrariesProjectRoot with something else? (LibrariesProjectRoot is defined by the Directory.Build.props in the repo root.)
There was a problem hiding this comment.
Oh... do you mean just remove this whole analyzers section, from both here and the libraries build props, and add it instead to the root Directory.Build.props?
There was a problem hiding this comment.
Exactly. I believed that property was already there but I was wrong. Please do that.
There was a problem hiding this comment.
@ViktorHofer, I just took a look at doing this, and there's a bunch of analyzer stuff that needs to be consolidated, not just this one property. For example, eng\Analyzers.props has the PackageReferences used by corefx, but those same PackageReferences are in System.Private.CoreLib.csproj for coreclr. I think we should separately consolidate everything to do with analyzers, rather than moving this one property and doing it piecemeal. The root Directory.Build.props is currently very sparse.
There was a problem hiding this comment.
Thanks for letting me know of that, I wasn't aware how CoreLib references these analyzers. I agree, let's do that separately.
Yes, but I like that src is so clean, and would like to avoid adding additional files there unless it's really valuable. Also, libraries is where almost all of the managed code is that's being analyzed; there's only a tiny amount that's specific to runtime/src/coreclr/System.Private.CoreLib, and the project there already needs to reach across to src/libraries to get the bulk of the CoreLib implementation, so it seems fine for it to also access the analysis file here as well. |
|
That sounds reasonable. Thanks. |
|
Seems we are still hitting the FreeBSD issue with System.IO.Ports. cc @wfurt |
* Disable more warnings for latest 5.0-rc SDK * Delete using nuint/nint * Delete redundant or no longer necessary build properties Port dotnet#41051 * Add ObjectWriter feed to global NuGet.config for now
No description provided.