sds / overcommit

A fully configurable and extendable Git hook manager
MIT License
3.92k stars 281 forks source link

Precommit: Ktlint runs on unmodified files #787

Open hkhan-iengineering opened 2 years ago

hkhan-iengineering commented 2 years ago

Ktlint throws errors from unmodified files when running pre-commit. Below is my Ktlint configuration: Ktlint: problem_on_unmodified_line: report enabled: true description: 'Analyze with Ktlint' required_executable: 'ktlint' install_command: 'brew install ktlint' include: '**/*.kt' flags: []

I searched the Ktlint repository for any flags specific to this issue but couldn't find one, any help?