Earlier quoted context omitted.
+1. I'm a huge fan of custom linter rules. Instead of going through PRs and nit-picking stuff, I just create new custom linter rules that catch those team-specific or project-specific things. This has the positive effect of making things way more welcoming for junior devs and newcomers. Nothing replaces getting the first PR with almost no PR comments thanks to a linter. I hate that a lot of people read the assertion…
Which tools are you using that allow custom linter rules? I'd like to try this on some of my repos
For golang I just use go/ast directly and make a small tool.