-
Notifications
You must be signed in to change notification settings - Fork 0
Fix indentation drift after single-line IFs #2
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
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||
PR Code Suggestions ✨Latest suggestions up to 8487922
Previous suggestionsSuggestions up to commit 01e2850
Suggestions up to commit 85c3890
|
||||||||||||||||||||||||||||||||
85c3890 to
01e2850
Compare
Address Qodo review comments: - Add level and end_of_delim checks to avoid formatting // inside strings/comments - Remove unsafe trailing rstrip that could strip string literal whitespace - Enable concat spacing at whitespace level 4 - Add comprehensive test coverage for concat operator formatting
01e2850 to
b2c3fb7
Compare
b2c3fb7 to
8487922
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't reproduce the problem before this change, so please provide an example of the actual problem.
| DO j = 1, 2 | ||
| WRITE (*, *) test_function(m, r, k, l) + i | ||
| END DO | ||
| DO j = 1, 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated, remove
User description
Summary
Testing
PR Type
Bug fix, Enhancement
Description
Fix indentation drift after single-line IF statements
Add string concatenation whitespace formatting option
Realign mis-indented nested blocks properly
Expand test suite with indentation reproducer
Diagram Walkthrough
File Walkthrough
__init__.py
Core indentation and whitespace formatting fixesfprettify/init.py
formatting
example.f90
Updated example with corrected indentationfortran_tests/after/example.f90
example_swapcase.f90
Updated swapcase example with corrected indentationfortran_tests/after/example_swapcase.f90
indent_single_line_if.f90
Expected output for single-line IF testfortran_tests/after/indent_single_line_if.f90
indent_single_line_if.f90
Test input for single-line IF indentation bugfortran_tests/before/indent_single_line_if.f90
expected_results
Update test result hashesfortran_tests/test_results/expected_results
README.md
Document string concatenation whitespace optionREADME.md
--whitespace-concatoption for string concatenationformatting