tldr-pages / tldr-c-client

C command-line client for tldr pages
MIT License
293 stars 50 forks source link

chore: add .editorconfig #98

Closed SethFalco closed 1 year ago

SethFalco commented 1 year ago

What does it do?

Why the change?

EditorConfig is an editor/vendor agnostic configuration file to make following project conventions easier. Afaik (at least looking at the largest C projects on GitHub) there aren't clear conventions on things like indentation.

Rather than having to find out manually what a project uses, or just choosing to fight with my editor preferences, I think it'd be better to use a conventional format that most editors support to handle it.

Reviewers shouldn't need to put out comments like:

Please adjust your editor settings to keep the current formatting.

https://github.com/tldr-pages/tldr-c-client/pull/9#issuecomment-168494209

How can this be tested?

N/A

Where to start code review?

N/A

Relevant tickets?

N/A

Questions?

N/A