Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add analyzer 'Add/remove blank line between switch sections' #1302

Merged
merged 41 commits into from
Dec 5, 2023

Conversation

josefpihrt
Copy link
Collaborator

fixes #1142

@josefpihrt josefpihrt self-assigned this Nov 30, 2023
@josefpihrt josefpihrt changed the title Add analyzer 'Blank line between switch sections' Add analyzer 'Add/remove blank line between switch sections' Nov 30, 2023
josefpihrt and others added 13 commits December 5, 2023 03:48
# Conflicts:
#	src/Formatting.Analyzers.CodeFixes/CSharp/AddBlankLineBeforeAndAfterUsingDirectiveListCodeFixProvider.cs
#	src/Formatting.Analyzers.CodeFixes/CSharp/BlankLineBetweenDeclarationsCodeFixProvider.cs
#	src/Formatting.Analyzers.CodeFixes/CSharp/CodeFixHelpers.cs
#	src/Formatting.Analyzers.CodeFixes/CSharp/EnumDeclarationCodeFixProvider.cs
#	src/Formatting.Analyzers.CodeFixes/CSharp/FileScopedNamespaceDeclarationCodeFixProvider.cs
#	src/Formatting.Analyzers.CodeFixes/CSharp/MemberDeclarationCodeFixProvider.cs
#	src/Formatting.Analyzers.CodeFixes/CSharp/StatementCodeFixProvider.cs
#	src/Formatting.Analyzers.CodeFixes/CSharp/SwitchSectionCodeFixProvider.cs
#	src/Formatting.Analyzers.CodeFixes/CSharp/SyntaxTokenCodeFixProvider.cs
#	src/Formatting.Analyzers.CodeFixes/CSharp/SyntaxTriviaCodeFixProvider.cs
#	src/Formatting.Analyzers.CodeFixes/CSharp/TypeParameterConstraintClauseSyntaxCodeFixProvider.cs
#	src/Formatting.Analyzers/CSharp/AddBlankLineAfterEmbeddedStatementAnalyzer.cs
#	src/Formatting.Analyzers/CSharp/AddBlankLineAfterTopCommentAnalyzer.cs
#	src/Formatting.Analyzers/CSharp/AddBlankLineAfterUsingDirectiveListAnalyzer.cs
#	src/Formatting.Analyzers/CSharp/AddBlankLineBeforeTopDeclarationAnalyzer.cs
#	src/Formatting.Analyzers/CSharp/AddBlankLineBetweenClosingBraceAndNextStatementAnalyzer.cs
#	src/Formatting.Analyzers/CSharp/AddBlankLineBetweenSwitchSectionsAnalyzer.cs
#	src/Formatting.Analyzers/CSharp/AddNewLineAfterSwitchLabelAnalyzer.cs
#	src/Formatting.Analyzers/CSharp/AddOrRemoveNewLineBeforeWhileInDoStatementAnalyzer.cs
#	src/Formatting.Analyzers/CSharp/BlankLineAfterFileScopedNamespaceDeclarationAnalyzer.cs
#	src/Formatting.Analyzers/CSharp/BlankLineBetweenAccessorsAnalyzer.cs
#	src/Formatting.Analyzers/CSharp/BlankLineBetweenDeclarationsAnalyzer.cs
#	src/Formatting.Analyzers/CSharp/BlankLineBetweenUsingDirectivesAnalyzer.cs
#	src/Formatting.Analyzers/CSharp/PutAttributeListOnItsOwnLineAnalyzer.cs
#	src/Formatting.Analyzers/CSharp/PutConstructorInitializerOnItsOwnLineAnalyzer.cs
#	src/Formatting.Analyzers/CSharp/PutEmbeddedStatementOnItsOwnLineAnalyzer.cs
#	src/Formatting.Analyzers/CSharp/PutEnumMemberOnItsOwnLineAnalyzer.cs
#	src/Formatting.Analyzers/CSharp/PutStatementOnItsOwnLineAnalyzer.cs
#	src/Formatting.Analyzers/CSharp/PutTypeParameterConstraintOnItsOwnLineAnalyzer.cs
#	src/Formatting.Analyzers/CSharp/RemoveNewLineBeforeBaseListAnalyzer.cs
#	src/Formatting.Analyzers/CSharp/RemoveNewLineBetweenIfKeywordAndElseKeywordAnalyzer.cs
#	src/Tests/Formatting.Analyzers.Tests/RCS0003AddBlankLineAfterUsingDirectiveListTests.cs
#	src/Workspaces.Common/CSharp/CodeActionFactory.cs
@josefpihrt josefpihrt merged commit 1039445 into main Dec 5, 2023
15 checks passed
@josefpihrt josefpihrt deleted the feature/switch-section-blank-line branch December 5, 2023 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add analyzer "Add/remove blank line after switch section"
1 participant