We have been searching for good tools for measuring the quality of our TypeScript code. Mainly, we are interested in measuring Cyclomatic Complexity, LCOM, Instability and similar metrics. A tool for visualizing dependencies between modules would also be nice.
A sort of "NDepend for typescript" would be great - but we haven't been able to find anything like it...
Can anyone point us in the direction of any tools that provide some such functionality?
If you were to use an existing JavaScript analyser, such as JSHint (or any similar alternative if it doesn't have all the metrics you want), the results would not be far wrong for your TypeScript code. TypeScript makes very few code transformations, so you would find minor differences in the following areas:
But none of these would throw off the analysis by a great margin.
Sample metrics from the JSHint site: