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

Apply only specific whitelist of transformations #238

Open
ryan-williams opened this issue Jan 6, 2017 · 0 comments
Open

Apply only specific whitelist of transformations #238

ryan-williams opened this issue Jan 6, 2017 · 0 comments

Comments

@ryan-williams
Copy link

Cross-posting from https://github.com/sbt/sbt-scalariform/issues/52…

I recently wanted to only enforce the "spaces inside curly-braces in multi-import statements" Scalariform transformation (using the SBT plugin, though I suspect the cause is upstream / in this repo).

I couldn't find a way to do that; all my attempts made other changes to the codebase that I didn't want, e.g. to arguments' spacing/line-wrapping.

I resorted to:

git ls-files | xargs perl -pi -e 's/^import (.*)\{([^ ].*[^ ])\}/import \1\{ \2 \}/'

😢

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

No branches or pull requests

1 participant