I would look into Angular JS Linter, it should be what you're looking for. It's basically a set of ESLint rules to lint source code that uses the angular framework. Note that this software is still in development. It's licensed under the MIT License
To install, simply type this is a command line to do so,
$ npm install angular-lint
$ N/A ...
Depending on your platform you may go the route of using the link interface.
a) Your tests will import symbols. That's the used API.
b) Your software will export symbols. Substract a) to get unused API.
A tool simple as simple as nm would do the job then. Using the OpenSSL library on an ELF system as an example: this invocation gives you the imported ...
(Since you wrote I need a language with fixed resources like classes, types, namespaces, etc., arrays that can be resized and providing interface for accessing the Lua environment table. I'm gonna go out on a limb and recommend this scripting lang to you.)
Angelscript has all the OOP features you want and claims it's "extremely flexible" so I'm fairly sure ...
If you are developing Open Source projects then Coverity Scan is available free but if you are developing closed source code then you will have to pay for a licence.
Coverity performs a wide variety of static analysis including MISRA and there are plugins for a number of IDEs.