srclib is a polyglot code analysis library, built for hackability. It consists of language analysis toolchains (currently for Go and Java, with Python, JavaScript, and Ruby in beta) with a common output format, and a CLI tool for running the analysis.
excluding comments when counting lines of code, otherwise small thoroughly commented file (usually with the large copyright or license information) may be considered 'uncovered'