Add make targets for common checks + fixes#661
Conversation
This is to make it easier for existing and new maintainers and contributors to run checks on the codebase.
| @@ -0,0 +1,18 @@ | |||
| fmtcheck: | |||
There was a problem hiding this comment.
I can't help but notice that this file is itself missing a copyright header 😆 I don't know if that matters - the copywrite tool doesn't seem unhappy about it so maybe there's a global allowlist.
There was a problem hiding this comment.
Good catch! I don't think it matters at this point.
The reason is that the tool basically does not know how to add the header to makefiles, it's not that it would be intentionally ignored.
Also the same issue applies to the upstream project our copywrite has forked, although it does have some pending PRs:
- feat: add headers to Makefiles also google/addlicense#147
- Add headers to Makefiles also google/addlicense#104
- Adding Makefile to the license tool. google/addlicense#54
To be fair there is support for *.cmake but I don't have enough context/knowledge to tell what that is and what's the relationship with Makefile or GNUMakefile and I am not quite convinced there's a value in learning that just to add the license headers. I would perceive the licensing risk with makefiles in general to be relatively low in comparison with the rest of the codebase.
Feel free to correct me if I'm wrong in any of the above though!
There was a problem hiding this comment.
Agreed, it seems pretty harmless to leave the Makefile un-headered!
This is to make it easier for existing and new maintainers and contributors to run checks on the codebase.
These targets can also run from CI which can be implemented as part of a separate PR.
Examples
Notes
Please note that the license checks specifically are currently failing. That is being fixed in #659