pre-commit / pre-commit-hooks

Some out-of-the-box hooks for pre-commit
MIT License
5.2k stars 694 forks source link

feature request: block adding of TODO lines #1075

Closed ericfrederich closed 1 month ago

ericfrederich commented 1 month ago

I don't remember what editor or IDE I was using but it would give a warning when you'd try to commit new code with a TODO in it.

This would be a nice hook to have available.

Obviously there are times where that might be your intention in which case you could do SKIP="check-todos" git commit -m "rough implementation of feature-xyz"

asottile commented 1 month ago

please search, this has been rejected at least twice before