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

Handle multiline spaced comments #298

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

Conversation

Bartheleway
Copy link
Contributor

This is my attempt to fix #297

To easily check the difference between old and new check, you can go to the code on line 107 and put in comment the insideComment = true flag so it never adapt to comment section. In such case it will fail like the old code.

It should handle all sorts of multiline spaced comments:

/**
 * Like this
 */

/**
* Or this
*/

/**
*Even this
*/

/**
 *And finally that
*/

Copy link

codecov bot commented Oct 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.71%. Comparing base (f1a96e0) to head (5bef387).
Report is 30 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #298      +/-   ##
==========================================
+ Coverage   99.68%   99.71%   +0.02%     
==========================================
  Files           7        7              
  Lines         320      347      +27     
  Branches       90      108      +18     
==========================================
+ Hits          319      346      +27     
  Misses          1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Inconsistent indentation checking
1 participant