-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align .editorconfig with WinForms (#10080)
This effectively copies the .editorconfig from WinForms to align the baseline. As there are many deviations from the rules in the sources, added a temporary .editorconfig in the product src directory. This will need to have rules pulled bit by bit as the projects are fixed. Most of the rules are pretty easy to fix, but would require some pretty massive codefix changes. They are reasonably safe to do, but they will create disruption for existing PRs as they'll need to rebase. Created another .editorconfig specifically for the cycle breaker projects. Fixed the headers in the cycle breakers, but otherwise mostly left them alone. Test projects were updated to pass without needing any overrides. As a general rule, we try to not disable rules for test projects as we want to keep good habits over the entire codebase. The sooner the automated fixes are done, the better. It is better to have this done before Preview 1 and it is better to aggressively push to do them. Don't wait for full test passes in between changes, do a full pass once they are committed. The recommendation: 1. For each rule where there is an automated fix, run the fix and create a PR that says that you ran the codefix 2. Sanity review and merge each as quickly as possible (check off, merge as soon as green) 3. Run a full test pass when finished Clearing the automated fixes should be able to be done in a couple weeks at most. Once the rules are turned on it will significantly improve the contribution process. Less clean up to review, less iteration over rules, etc. Co-authored-by: Harshit <[email protected]>
- Loading branch information
1 parent
d209c5c
commit d73dd1d
Showing
95 changed files
with
2,858 additions
and
2,198 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
<Project> | ||
<ItemGroup Condition="'$(IsTestProject)'!='true' AND '$(EnableAnalyzers)'=='true'"> | ||
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)CodeAnalysis\CodeAnalysis.src.globalconfig" /> | ||
<!-- Managed Code Reference analyzers --> | ||
<PackageReference Include="Microsoft.DotNet.CodeAnalysis" Version="$(MicrosoftDotNetCodeAnalysisPackageVersion)" /> | ||
<ItemGroup Condition="'$(EnableAnalyzers)'=='true'"> | ||
<!-- Managed Code analyzers --> | ||
|
||
<!-- https://github.com/DotNetAnalyzers/StyleCopAnalyzers --> | ||
<PackageReference Include="StyleCop.Analyzers" Version="$(StyleCopAnalyzersVersion)" PrivateAssets="all" /> | ||
|
||
<!-- https://github.com/dotnet/roslyn-analyzers --> | ||
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="$(MicrosoftCodeAnalysisNetAnalyzersVersion)" PrivateAssets="all" /> | ||
<PackageReference Include="System.Runtime.Analyzers" Version="1.1.0" /> | ||
<PackageReference Include="System.Runtime.InteropServices.Analyzers" Version="1.1.0" /> | ||
|
||
<!-- https://github.com/DotNetAnalyzers/DocumentationAnalyzers --> | ||
<PackageReference Include="DotNetAnalyzers.DocumentationAnalyzers" Version="$(DotNetAnalyzersDocumentationAnalyzersVersion)" PrivateAssets="all" /> | ||
|
||
<!-- https://github.com/AArnott/CSharpIsNull --> | ||
<PackageReference Include="CSharpIsNullAnalyzer" Version="$(CSharpIsNullAnalyzersVersion)" PrivateAssets="all" /> | ||
</ItemGroup> | ||
</Project> |
Oops, something went wrong.