Justin Tuchek
05/12/2020, 10:48 PM./ktlint check <git-commit-range>
and returns back an exit code of 0/1 based on the files in the diff. Maybe somebody has a better way for handling this? Or a solution already exist I’m unaware 🤔
Incremental would be great to minimize build impact, running with --format takes ~25 sec. If it was fast enough would consider just leaving it in to catch environments that haven’t set up hooks yet and post a comment on the PRSha Sha Chu
05/12/2020, 10:56 PMktlint
does support a precommit hook via the installGitPreCommitHook
command. i believe it only checks the files in your commitJustin Tuchek
05/12/2020, 11:07 PMColton Idle
05/15/2020, 1:35 AMJustin Tuchek
05/17/2020, 3:39 PMCraig Berry
06/03/2020, 8:40 PMColton Idle
06/03/2020, 9:20 PMCraig Berry
06/03/2020, 9:22 PMJustin Tuchek
06/03/2020, 9:33 PMCraig Berry
06/03/2020, 9:35 PMCraig Berry
06/03/2020, 9:36 PMColton Idle
06/04/2020, 1:45 PM