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

fix: Diagnostic on empty regions #715

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

ynsehoornenborg
Copy link
Contributor

Empty is defined here, as no TypeDeclaration or MemberDeclaration inside the region.

Please note that regions inside methods are allowed now.

@ynsehoornenborg ynsehoornenborg linked an issue Nov 15, 2023 that may be closed by this pull request
Documentation/Diagnostics/PH2141.md Outdated Show resolved Hide resolved
Documentation/Diagnostics/PH2141.md Outdated Show resolved Hide resolved
| Diagnostic ID | PH2140 |
| Category | [Readability](../Readability.md) |
| Analyzer | [EnforceRegionsAnalyzer](https://github.com/philips-software/roslyn-analyzers/blob/main/Philips.CodeAnalysis.MaintainabilityAnalyzers/Readability/EnforceRegionsAnalyzer.cs)
| CodeFix | No |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No fixer?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we should add one here...

Copy link

sonarcloud bot commented Nov 28, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

Copy link

sonarcloud bot commented Jan 2, 2024

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.

Avoid Empty Regions
2 participants