Skip to content

Refactor/exported #1299

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

Merged
merged 4 commits into from
Apr 7, 2025
Merged

Refactor/exported #1299

merged 4 commits into from
Apr 7, 2025

Conversation

chavacava
Copy link
Collaborator

IMO the rule deserved a refactoring to keep it under control.

The main modification introduced by this PR is the replacement of hasDocComment, normalizeText and isOnlyDeprecationComment by a single method firstCommentLine. This replacement is based on the fact that the only thing of interest when doing the check on comments is the first line of the actual documentation; that is the first line of comment that is neither a directive nor a deprecation comment block.

The PR introduces other changes to reduce the complexity of some methods and gain in clarity.

@chavacava chavacava merged commit 343da9f into master Apr 7, 2025
8 checks passed
mfederowicz pushed a commit to mfederowicz/revive that referenced this pull request Apr 18, 2025
* simplify comment analysis by just checking the first comment line with documentation information

* nit refactorings: common func for adding failures, reduce the use of "stutter", and other nitties

* removes use of "stutter" in test code

* move string interpolation into addFailuref
@chavacava chavacava deleted the refactor/exported branch April 27, 2025 11:28
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.

3 participants