Open goneall opened 4 years ago
@goneall Quick suggestion: The pre-commit cross platform hooks framework is a fantastic tool for automating this and many other such things; it supports installing, running and updating hundreds of hooks in isolated environments across a dozen or so supported languages (including built in hooks for common things like whitespace), including many that support automated dependency installation and several (including the most popular) that don't even need the language runtime to be installed, which greatly eases the workflow for developers and contributors, as initial setup only requires one command and everything after that is automated, plus it ensures every developer is using consistent tool versions to avoid commits failing on some machines but not others. It can also be run in CI, either in any CI or via the pre-commit.ci service.
There is a significant amount of trailing white space in the java files.
We can use git-stripspace as a consistent method of stripping white space.
This will need to be applied to all .java files in the repo. After which, we can include git-stripspace as a git hook before committing changes to keep things consistent.