chingu-voyage4 / Bears-Team-18

Voyage-4
0 stars 1 forks source link

Code formatting #8

Closed Jarrku closed 6 years ago

Jarrku commented 6 years ago

At work i see a lot of meaningless diffs due to different formatters. This can be solved with a precommit hook setup that runs the code you're about to commit through a predefined formatter before it gets send to github. This way everyone uses the same formatter with just one setup which I think is a nice addition. Anyone has issues with this?

LydiaVuj commented 6 years ago

i think its a nice idea. Unified formatting would optimize the code no?

hienng commented 6 years ago

Yep, sounds good. Also solves annoying, CLRF / LF issues.

Jarrku commented 6 years ago

Unified formatting would optimize the code no?

I'm not sure what you mean by this @LydiaVuj but it seems no one has issues with this I can include it as well :)

LydiaVuj commented 6 years ago

No issues here :)