conference-app-2022
conference-app-2022 copied to clipboard
[Need help] :sparkles: Add Ensure that spotlessApply is executed before commit
Issue
- Nothing.
Overview (Required)
- I have tried to run spotlessApply as appropriate at commit time because I often finally realize that I have not run spotlessApply after a failed CI check.
- However, this is incomplete because the content of this PR will eventually make it impossible to commit without manually fixing the problem if the number of lines exceeds 100.
- Also, it is difficult to understand why it cannot be committed, which is likely to confuse developers.
- Therefore, I would like to make it so that if the line count check fails, the file is automatically formatted, but I have not been able to figure out how to solve this problem myself.
- I need your help.
Usage
- Execute the following command in the root directory of the project
./scripts/setup_pre-commit.sh
Links
- https://qiita.com/a-Mana/items/f1f67b0aaaf7dc6c8e8c