

If You want to know the causes You can click on the code lens to list all the entries for a given method or class. (content assist is provided for all of them for easier configuration).įor example if one prefers guard clauses,Īnd is ok with all the branches in switch statements then the following could be applied: "": 0, Project / team / personal taste by adjusting the relevant configuration entries Please also note that it is possible to balance the complexity calculation for the Please note that it is not a standard metric, but it is a close approximation show the sum of complexity of child nodes for methods and the maximum of child nodes for classes.a textual representation for the node, complexity increment, child nodes etc.) This entry contains everything necessary for further use depending on the type of the node and the configuration associated with it create a new entry about the node.create an AST from the input source file.

Code Metrics - Visual Studio Code ExtensionĬomputes complexity in TypeScript / JavaScript / Lua files.
