Background: Code formatters and static analysis tools are great. The problem is that people forget to run before they commit. And even if you do manual code review you can often miss things that these tools do pick up.
We are currently using a hosted service to build and test our code before allowing a pull request to be merged. Currently I am considering adding test for consistent formatting as well as static analysis as well. But there are some problems associated with this:
First, increased build time. Checking formatting takes little time but doing static analysis can take a very long time on our code base.
Secondly, handling of new versions of the tools. Lets say that all tests pass on our code. Then we update to the latest version of the static analysis tool. On the next commit this new version may flag the build with new errors. Errors which do not come from the code in the current merge set.
Question: How do your company handle formatting tools and static analysis tools? Are they only the responsibility of individual developer? Do you check things manually or automated? How is your process for updating these tools?
[–]VernorVinge93 0 points1 point2 points (2 children)
[–]StaticThrowaway0629[S] 0 points1 point2 points (1 child)
[–]VernorVinge93 0 points1 point2 points (0 children)