[GH-ISSUE #1567] All the recent whitespace problems #1025

Closed
opened 2026-10-14 03:32:15 +07:00 by bsakaguchi · 9 comments
Owner

Originally created by @kholia on GitHub (Jul 21, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1567

@jfoug @Sayantan2048

It would be awesome if you could fix your editor to not introduce whitespace errors. I do "git log -p" every morning, and seeing all those whitespace errors (in glorious red color) isn't very pleasant ;)

@loverszhaokai

How far did you get in "enforcing" coding style? It would be great to have something like https://github.com/DynamoRIO/dynamorio/blob/master/make/git/devsetup.sh for JtR.

Originally created by @kholia on GitHub (Jul 21, 2015). Original GitHub issue: https://github.com/openwall/john/issues/1567 @jfoug @Sayantan2048 It would be awesome if you could fix your editor to not introduce whitespace errors. I do "git log -p" every morning, and seeing all those whitespace errors (in glorious red color) isn't very pleasant ;) @loverszhaokai How far did you get in "enforcing" coding style? It would be great to have something like https://github.com/DynamoRIO/dynamorio/blob/master/make/git/devsetup.sh for JtR.
bsakaguchi 2026-10-14 03:32:15 +07:00
Author
Owner

@sayan1an commented on GitHub (Jul 21, 2015):

I'm using kwrite with the editor configured to remove trailing white spaces while saving. Strangely it's not doing its job very well. I'll update to a newer version and hope it'll fix the issue.

<!-- gh-comment-id:123454227 --> @sayan1an commented on GitHub (Jul 21, 2015): I'm using kwrite with the editor configured to remove trailing white spaces while saving. Strangely it's not doing its job very well. I'll update to a newer version and hope it'll fix the issue.
Author
Owner

@jfoug commented on GitHub (Jul 21, 2015):

I just found this, and will see how it works http://editorconfig.org/ They have a plugin for both VC, and for Notepad++ so hopefully I can get these working in a consistent manner and avoid this crap.

<!-- gh-comment-id:123468945 --> @jfoug commented on GitHub (Jul 21, 2015): I just found this, and will see how it works http://editorconfig.org/ They have a plugin for both VC, and for Notepad++ so hopefully I can get these working in a consistent manner and avoid this crap.
Author
Owner

@jfoug commented on GitHub (Jul 21, 2015):

Many github projects have their own .editorconfig file..

https://github.com/editorconfig/editorconfig/wiki/Projects-Using-EditorConfig

<!-- gh-comment-id:123469813 --> @jfoug commented on GitHub (Jul 21, 2015): Many github projects have their own .editorconfig file.. https://github.com/editorconfig/editorconfig/wiki/Projects-Using-EditorConfig
Author
Owner

@magnumripper commented on GitHub (Jul 21, 2015):

That doesn't look too bad, it might be something for @loverszhaokai to pick up. I think we use a good number of different editors.

On a side note I have tried several times getting Jumbo into an Xcode project but always fail and I hate spending time learning proprietary crap. I did a couple of one-shot imports to Eclipse just for tricky rebasing, but that is easy enough I always dropped the project after doing the task at hand.

<!-- gh-comment-id:123472555 --> @magnumripper commented on GitHub (Jul 21, 2015): That doesn't look too bad, it might be something for @loverszhaokai to pick up. I think we use a good number of different editors. On a side note I have tried several times getting Jumbo into an Xcode project but always fail and I hate spending time learning proprietary crap. I did a couple of one-shot imports to Eclipse just for tricky rebasing, but that is easy enough I always dropped the project after doing the task at hand.
Author
Owner

@jfoug commented on GitHub (Jul 21, 2015):

I will add a .editorconfig to our project. I am installing this plugin in my editors.

The nice thing, is that for code in other areas I work in, there will not be a .editorconfig, so it will use my 'normal' config that is used for other things.

<!-- gh-comment-id:123472927 --> @jfoug commented on GitHub (Jul 21, 2015): I will add a .editorconfig to our project. I am installing this plugin in my editors. The nice thing, is that for code in other areas I work in, there will not be a .editorconfig, so it will use my 'normal' config that is used for other things.
Author
Owner

@kholia commented on GitHub (Jul 21, 2015):

I now remember @magnumripper telling me to fix my editor configuration some years back (2010?). I spent a fair bit of time reading about "Indent with tabs, align with spaces" thing, and tweaking my Vim. I fuck up less now :-)

Thanks for taking care of this! :)

<!-- gh-comment-id:123476589 --> @kholia commented on GitHub (Jul 21, 2015): I now remember @magnumripper telling me to fix my editor configuration some years back (2010?). I spent a fair bit of time reading about "Indent with tabs, align with spaces" thing, and tweaking my Vim. I fuck up less now :-) Thanks for taking care of this! :)
Author
Owner

@magnumripper commented on GitHub (Jul 27, 2015):

We should add info about this editorconfig thingy to the devel wiki

<!-- gh-comment-id:125324021 --> @magnumripper commented on GitHub (Jul 27, 2015): We should add info about this editorconfig thingy to the devel wiki
Author
Owner

@jfoug commented on GitHub (Aug 10, 2015):

Can we stick a fork in this issue, and call it done?

<!-- gh-comment-id:129481745 --> @jfoug commented on GitHub (Aug 10, 2015): Can we stick a fork in this issue, and call it done?
Author
Owner

@magnumripper commented on GitHub (Aug 11, 2015):

Yep

<!-- gh-comment-id:129844529 --> @magnumripper commented on GitHub (Aug 11, 2015): Yep
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1025
No description provided.