You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enable Analyzers disabled as a part of globalconfig merge from runtime #7887
changed the title [-]Enable Analyzer disabled as a part of globalconfig merge from runtime[/-][+]Enable Analyzers disabled as a part of globalconfig merge from runtime[/+]on Oct 5, 2022
Activity
elachlan commentedon Oct 5, 2022
I started investigating
CA1416(https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1416). Winforms would have to swap out its OsVersion static class with OperatingSystem.IsWindowsVersionAtLeast().@JeremyKuhne Coincidently this would remove the need for us to convert the NtDll PInvoke.
Edit: runtime does cache the OSVersion.
[-]Enable Analyzer disabled as a part of globalconfig merge from runtime[/-][+]Enable Analyzers disabled as a part of globalconfig merge from runtime[/+]elachlan commentedon Oct 19, 2022
@RussKie CA2007 has single violation:
winforms/src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/ApplicationServices/WindowsFormsApplicationBase.vb
Lines 883 to 886 in e9a1042
I am unsure if
ConfigureAwait(false)is correct. I am pretty sure it is, since it should be resolved inside theTask.Run().elachlan commentedon Jan 24, 2023
@dreddy-work IDE0059 is complimented by CA1804. Can I enable CA1804 (Remove unused locals)?
elachlan commentedon Jan 24, 2023
Turns out CA1804 is replaced by IDE0059? But IDE0059 is replacing values with underscores.
dreddy-work commentedon Apr 4, 2023
elachlan commentedon Apr 4, 2023
JeremyKuhne commentedon Jul 24, 2024
@elachlan I think we're good here now, aren't we?
elachlan commentedon Jul 24, 2024
The ones that need to be addressed are marked as
TODOinCodeAnalysis.src.globalconfigandCodeAnalysis.test.globalconfig