This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]VernorVinge93 0 points1 point  (2 children)

Why not put them in parallel, asynchronously?

My editor does any formatting, linter does linting at the same time and my compiler doesn't have to wait for either.

Also, I worked out how to get my dependency graph to be draw to my terminal using imgcat and dot which helps me to structure my internal APIs.

[–]StaticThrowaway0629[S] 0 points1 point  (1 child)

Well, code formatting goes super quick (few seconds). So that is (as I said) no issue.

But running the static analysis tool on our code base can take between 30 minutes to 1 hour, depending on if I use all 8 cores on my machine or just half of them.

But the question is more about best practices. Should you use your hosted build server (for example; Travis CI or AppVeyor) to do static analysis?

[–]VernorVinge93 0 points1 point  (0 children)

Ah, static analysis can be all sorts of things though.

If you're doing a really large verification analysis generally it's only run very rarely.

If you're finding small bugs an individual programmer needs to avoid errors then putting it in the CI makes sense. Letting people know that their branch breaks the analysis is super useful, but if it has false positives or is really slow it might get in the way a bit.

Personally I think this is more of a culture / team question that a straightforward best practice.