alibaba / alibaba/p3c

代码模板对流式代码的排版太差,难以阅读

Open
#901 5 comments 5 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
30.8k
Forks
8k
PR merge metrics
No merged PRs in 30d

Description

idea 使用 eclipse code formatter导入了eclipse-codestyle.xml模板。

流的格式化变成了这样:

![图片](https://user-images.githubusercontent.com/21364503/165876247-ae912a91-e029-45a2-a71b-635a8629b589.png)

几乎没有什么美观和阅读性可言。

正常来说人的阅读习惯肯定自上而下,换行以明确段落。

希望能改成这样:
![图片](https://user-images.githubusercontent.com/21364503/165876229-a58be567-ee90-4d6e-aa23-14425dec4797.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the eclipse-codestyle.xml formatter template referenced in the report and compare the stream formatting in the two linked images. Trace where this template is used by the IDE plugin, then verify that formatted stream code follows the requested readable line breaks and does not regress other formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.