-
Notifications
You must be signed in to change notification settings - Fork 49
Conversation
@MS-TimothyMothra this approach never works. I'd suggest merge fixes as you go. So you will not end up with enormous merge conflict in a few weeks. |
@SergeyKanzhelev I'm open to suggestions for a better approach. Across all our repos there are over 700 errors. It will almost certainly be required to resolve these before our next SDL review. We can discuss more offline. |
I'm suggesting to send fixes in separate PRs and merge them as you making them. Like you did 3 fixes - send them as a separate PR. Perhaps this may be a good instruction:
Maybe fixing everything in one PR will also work as this repo has low traffic overall. Thanks again for starting it! 👍 |
9801d05
to
1fc352c
Compare
fix warnings as errors
Only 4 remaining issues. @SergeyKanzhelev this is ready to be reviewed. |
@Dmitry-Matveev this is a medium PR. :) |
@@ -21,7 +21,8 @@ | |||
<Optimize>true</Optimize> | |||
<RunCodeAnalysis>true</RunCodeAnalysis> | |||
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors> | |||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | |||
<!-- Need to disable WarningsAsErrors until all FxCop issues are fixed. --> | |||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you have work item for this so we wouldn't forget?
src/NLogTarget/NLogTarget.csproj
Outdated
@@ -29,6 +29,10 @@ | |||
<PackageReference Include="Desktop.Analyzers" Version="1.1.0"> | |||
<PrivateAssets>All</PrivateAssets> | |||
</PackageReference> | |||
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.1"> | |||
<PrivateAssets>all</PrivateAssets> | |||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is default as I understand. Why you need it explicitly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was inserted by default. I haven't tested without.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest to remove to avoid confusion
Add the FxCop Analyzer to Non-Test projects.
This analyzer identifies SEVERAL compiler errors.
If you're bored one afternoon, feel free to pull this branch and fix a couple! :)