How do I maintain a large ageing codebase?

So, this code base is 2-3 year old by now.

Are there any tools which I can run on this codebase and figure out what got deprecated? Which part needs immediate attention and need to be fixed to prevent future breakage?

LOC: 10,000

https://staticcheck.io checks for use of deprecated functions, variables, constants, and fields. https://github.com/alecthomas/gometalinter is also helpful for finding problem areas as it runs a bunch of linters.

Another thing to watch for is making sure you have consistent access to the code’s dependencies. A practical solution for now is to vendor them with https://golang.github.io/dep/. This will take care of you short term and will have a clean upgrade path when versioning is added to the go tools.

3 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.