Skip to content

Feature: Implement Maximum Public Methods Per Class Check - #272

Merged
MO2k4 merged 2 commits into
masterfrom
feature/implement-maximum-public-methods
Jul 15, 2025
Merged

Feature: Implement Maximum Public Methods Per Class Check#272
MO2k4 merged 2 commits into
masterfrom
feature/implement-maximum-public-methods

Conversation

@MO2k4

@MO2k4 MO2k4 commented Jul 15, 2025

Copy link
Copy Markdown
Owner
  • Added new configurable setting for maximum public methods per class
  • Added string resources for UI and warning messages
  • Created TooManyPublicMethods feature with highlighting
  • Implemented C# and VB analyzers to detect classes with too many public methods
  • Integrated the new check into the Single Responsibility section of options page

This feature helps enforce better encapsulation and adherence to the Single Responsibility Principle by limiting the public API surface of classes.

MO2k4 added 2 commits July 15, 2025 13:20
- Added new configurable setting for maximum public methods per class
- Added string resources for UI and warning messages
- Created TooManyPublicMethods feature with highlighting
- Implemented C# and VB analyzers to detect classes with too many public methods
- Integrated the new check into the Single Responsibility section of options page

This feature helps enforce better encapsulation and adherence to the
Single Responsibility Principle by limiting the public API surface of classes.
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
3.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

This was linked to issues Jul 15, 2025
@MO2k4
MO2k4 merged commit 3f5264b into master Jul 15, 2025
@MO2k4
MO2k4 deleted the feature/implement-maximum-public-methods branch July 15, 2025 12:04
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.

Maximum Public Methods per Class Maximum methods per class

1 participant