mikesart / inotify-info

Linux inotify info reporting app
MIT License
280 stars 29 forks source link

Specify a code style via `clang-format --style=webkit` #36

Closed motiejus closed 4 months ago

motiejus commented 4 months ago

clang-format --style=webkit is closest to the current style. Most notably, calling_a_function ( "has more spaces now" ) than calling_a_function("would have in this change")

Let me know what you think. The files were changed with make lint.

motiejus commented 4 months ago

@mikesart I understand there is a high chance you may not like it and I obviously respect that. Feel free to play around with different styles (clang-format --style=<...>) and see if you like anything more. Webkit is my favorite, but again, I am not a C programmer by the day.

I noticed there hasn't been anything to automated formatter, so let's see if anything sticks.

mikesart commented 4 months ago

I wind up working in a bunch of codebases, so as long as things are consistent I'm happy. If you like this one then +1 from me on applying to all the current files and committing. Thanks Motiejus.