Answer the question
In order to leave comments, you need to log in
How to detect unused classes/fields?
The problem is this:
There is a project on angular 9, many classes have been created in it that describe the data. Some classes are combined in namespace.
How can you find all the classes that are not being used (classes are not instantiated)?
How to find class fields that are not used?
What I have already tried:
ts-prune - found one unused interface and five classes that I marked as "used in module" and which are used by
ng lint - a curious thing, but I could not find unused code.
Resharper - works badly. For example, for some reason it does not understand some of the imports (there is an import, but the use of an imported element is marked as unavailable). Unused code does not see.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question