Skip to content

add TooManyCommentsViolation #3689

Description

@Khabib73

Rule request

Thesis

Nowadays, developers often use an excessive number of comments, which leads to unclear code, loss of readability, increased cognitive load, trying replace good documentation.

This rule complements WPS 402..
Let's be honest: people often write comments because their code is less readable and overly complex.

Reasoning

The most appropriate solution is to introduce a new violation called TooManyCommentsViolation.
This violation would enforce a maximum of N comments inside functions or methods (and in the future, we could extend it to all files).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions