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 recent regression in MaxLinesIn* rules #667

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

Mersho
Copy link
Contributor

@Mersho Mersho commented Jan 5, 2024

PR #644 accidentally introduced a bug that would render the MaxLinesIn* rules useless.

@Mersho Mersho force-pushed the FixMaxLineRules-squashed branch 7 times, most recently from 59cef2d to db0e3e6 Compare January 5, 2024 10:47
Mersho and others added 2 commits January 5, 2024 19:02
The MaxLinesIn* rules skip blank lines since PR#644 [1], but we
forgot to change `generateNewLines()` function to generate NOP
lines instead of blank lines.

Co-authored-by: webwarrior <[email protected]>

[1] fsprojects#644
Fix `blankLinesCount` bug to count the amount of blank
lines correctly (regression accidentally introduced in
PR#644[1]).

[1] fsprojects#644

Co-authored-by: webwarrior <[email protected]>
@knocte knocte force-pushed the FixMaxLineRules-squashed branch from c5292c5 to 649389f Compare January 5, 2024 11:06
@knocte knocte merged commit 3f6aada into fsprojects:master Jan 5, 2024
4 checks passed
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.

2 participants