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

Multi-stage formatting #179

Open
srhickma opened this issue Jun 23, 2019 · 2 comments
Open

Multi-stage formatting #179

srhickma opened this issue Jun 23, 2019 · 2 comments
Labels
difficulty/hard This is a difficult or large issue enhancement New feature or request

Comments

@srhickma
Copy link
Owner

After #126, allow formatters to be pipelined to apply multiple stages of formatting.
For example, the formatting of a java file could have the following stages:
main formatting -> break long lines -> eliminate trailing whitespace -> done.

@srhickma srhickma added the enhancement New feature or request label Jun 23, 2019
@srhickma srhickma added the difficulty/hard This is a difficult or large issue label Jun 23, 2019
@srhickma
Copy link
Owner Author

It will be desirable to have all stages for a single file applied in succession, rather than running each stage on all files before proceeding. This will help to ensure that files are left in possibly invalid states for the smallest amount of time.

@srhickma srhickma changed the title Milti-stage formatting Multi-stage formatting Jul 8, 2019
@srhickma
Copy link
Owner Author

srhickma commented Aug 4, 2019

Special care will need to given to ensure that tracking information is correct when using multiple formatters. We could use the sha256 of the combined specifications (in order, with some separators) to determine the combined version.

@srhickma srhickma pinned this issue Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/hard This is a difficult or large issue enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant