-
Notifications
You must be signed in to change notification settings - Fork 755
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
Maintain minimum number of new lines when formatting methods in a class/service #41523
Maintain minimum number of new lines when formatting methods in a class/service #41523
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #41523 +/- ##
=========================================
Coverage 76.71% 76.71%
- Complexity 53085 53101 +16
=========================================
Files 2882 2882
Lines 200043 200116 +73
Branches 26050 26063 +13
=========================================
+ Hits 153455 153517 +62
- Misses 38138 38144 +6
- Partials 8450 8455 +5 ☔ View full report in Codecov by Sentry. |
347afc5
to
1c937ed
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.
It seems these minimum/maximum line numbers are not configurable via FormattingOptions
. Is that expected? Are there any plans to support that in the future?
.../src/test/resources/declarations/class-definition/source/class_definition_declaration_18.bal
Outdated
Show resolved
Hide resolved
We can add a formatting option here to configure the minimum number newline after method definitions. This also be added in the formatting configuration feature. WDYT |
...es/formatter-core/src/main/java/org/ballerinalang/formatter/core/FormattingTreeModifier.java
Show resolved
Hide resolved
This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the |
This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the |
This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the |
This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the |
This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the |
This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the |
This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the |
...es/formatter-core/src/main/java/org/ballerinalang/formatter/core/FormattingTreeModifier.java
Outdated
Show resolved
Hide resolved
...es/formatter-core/src/main/java/org/ballerinalang/formatter/core/FormattingTreeModifier.java
Outdated
Show resolved
Hide resolved
...es/formatter-core/src/main/java/org/ballerinalang/formatter/core/FormattingTreeModifier.java
Outdated
Show resolved
Hide resolved
a059057
to
bd1416a
Compare
bd1416a
to
ada86d6
Compare
1f5e6ee
to
f26132e
Compare
a998644
into
ballerina-platform:poorna_formatter
Merged to a feature branch due to tests failing in the |
Sending to master in #42370 |
Purpose
Fixes #41462
Approach
Samples
Remarks
Check List