generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Format all files before commit #52
Comments
It can be done with a pre-commit hook using Spotless and your build management tool of choice, in-depth discussion here: |
@pri-me tried the pre-commit in the past but didn't work great. Sometimes intellij hanged up and didn't figure out why. Anyway, I've already pulled the solution to https://github.com/lipiridi/spotless-applier. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I usually use my personal custom formatting while coding or fixing issues, but before commit I need to execute spotlessApply before committing as the remote build process will check the formatting. Would be nice that the formatting is applied before commit.
Example:
![image](https://private-user-images.githubusercontent.com/3064521/316267492-2e5845e2-7c55-4dc4-8bcb-d291111506e2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2MjEzNzcsIm5iZiI6MTcyMDYyMTA3NywicGF0aCI6Ii8zMDY0NTIxLzMxNjI2NzQ5Mi0yZTU4NDVlMi03YzU1LTRkYzQtOGJjYi1kMjkxMTExNTA2ZTIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTBUMTQxNzU3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjIwNmY4NWM1NWYxODgyOWY0NDY3ZjliOWRkY2NhNmVmMTBiNDYyMWQ5ZWUxMWM5NGE4YzA5YzFkNjgwNDk3ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.SRbOAenCK_4isHsjLgUrsMDdI331dfz2ge2MIiX6gVA)
The text was updated successfully, but these errors were encountered: