Git Hook to detect invalid code formatting/standards

61 Views Asked by At

I'm trying to design a pre-push git hook for some kind of static code analysis. I've read about the topic and seems that some people go down the route of executing a maven/gradle goal and then checking the exit code but haven't found one that's a bit more insert software management tool here agnostic (or able to detect one for that matter and handle accordingly). Mainly, I'm looking for suggestions of what would be the best approach of writing a hook like that from people who have done it in the past. Thanks in advance!

0

There are 0 best solutions below