osu-particle-astrophysics / Shared-Code

This is a storage directory designed to house and develop any code that is shared by multiple projects.
0 stars 0 forks source link

Try to settle on a coding style convention regarding: #13

Open Machtay opened 1 year ago

Machtay commented 1 year ago
          Try to settle on a coding style convention regarding:

Once a convention is set, it will be easier for everyone to be consistent, to configure their editors to follow it, and to move/share code around.

There are probably tools that can apply these changes automatically, but I'm not familiar with such tools for C++. If you find one, it can also be configured to run automatically before you commit locally and also when a PR is created.

_Originally posted by @ezio-melotti in https://github.com/osu-particle-astrophysics/Shared-Code/pull/11#discussion_r1202370331_

ezio-melotti commented 1 year ago

This is one of the tools you could use: https://github.com/cpp-linter/ It works both as a stand-alone tool, as a GitHub action, and as a precommit hook.