Document IDE0410: Use labeled jump statement#54725
Merged
Merged
Conversation
Copilot
AI
changed the title
[WIP] Document missing IDE0043, IDE0390, IDE0391, and IDE1007 rules
Document IDE0410: Use labeled jump statement
Jul 9, 2026
gewarren
approved these changes
Jul 9, 2026
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds the missing documentation for code style rule IDE0410, which encourages using C# 15+ labeled break/continue statements instead of goto-based or flag-based nested-loop control flow, and wires the new page into the existing style-rules navigation and indexes.
Changes:
- Added a new rule reference page:
ide0410.md(overview, option details, examples, and suppression guidance). - Updated the style-rules overview index and the language rules list to include IDE0410.
- Added IDE0410 to the tools-diagnostics TOC so it appears in navigation.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| docs/navigate/tools-diagnostics/toc.yml | Adds IDE0410 entry to navigation under style rules. |
| docs/fundamentals/code-analysis/style-rules/language-rules.md | Adds IDE0410 to the C# style rules list and updates ms.date. |
| docs/fundamentals/code-analysis/style-rules/index.md | Adds IDE0410 to the rules table and updates ms.date. |
| docs/fundamentals/code-analysis/style-rules/ide0410.md | New documentation page for IDE0410, including option info and examples. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
adegeo
approved these changes
Jul 9, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds missing documentation for IDE0410, which flags code that can be simplified using C# 15's labeled
break/continuestatements.Changes
ide0410.md: Full rule reference covering:goto→break <label>,goto→continue <label>, and boolean flag pattern → labeled jumpcsharp_style_prefer_labeled_jump_statementsoption (default:true, C# 15+)index.md: Added IDE0410 row between IDE0391 and IDE1005language-rules.md: Added IDE0410 to the Code-block preferences sectiontoc.yml: Added IDE0410 navigation entryExample
The rule converts workarounds like this:
It also detects boolean flag patterns used to propagate breaks across loop levels, replacing them with a single
break <label>orcontinue <label>.Internal previews