There's this really nice tool called pre-commit, which can be used to run little checking programs on your code at the moment you hit git commit. For example, you can configure it to run a little script that would ensure all indentation is consistent.
This can be setup up to run locally or via github on each PR. I use it all the time in python projects, but I need to look and see if similar formatting tools exist for fortran code.
It's likely that the first time we add such a tool it will make a significant number of changes to the existing code, as it tidies up all the inconsistent formatting it finds. But none of these changes would make any functional difference.
There's this really nice tool called
pre-commit
, which can be used to run little checking programs on your code at the moment you hitgit commit
. For example, you can configure it to run a little script that would ensure all indentation is consistent.This can be setup up to run locally or via github on each PR. I use it all the time in python projects, but I need to look and see if similar formatting tools exist for fortran code.
It's likely that the first time we add such a tool it will make a significant number of changes to the existing code, as it tidies up all the inconsistent formatting it finds. But none of these changes would make any functional difference.