-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recommend setting up check_line_lengths
as a pre-commit script
#889
Conversation
Maybe we could also suggest setting up the editor to do the formatting? |
I'm not sure how to do that - in vim I use |
ping @spastorino - can we get this merged? I find it really useful and I'm sure others would too. |
@jyn514 did you solve the "does this work on Windows" question? |
It looks like the fix is |
I've run into lots of annoying failures from this. - Make it runnable without arguments - Add it in the README
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
Updated! |
Looks great now, thanks! |
@jyn514 👍, does the script check files when the ignore directive is used?. |
It works the same way as it did before. I don't see any logic for ignoring lines, that seems like a useful follow-up though. |
Just in case, I was referring to |
@spastorino hmm, I'm not sure this makes sense to add. |
I should've read what this was about 😂, I thought it was a script to check Rust source files length before commit, that's why I was thinking about ignoring those. Anyway, nevermind. |
I've run into lots of annoying failures from this.
Open questions: How does this work on Windows (if at all)?