codemetrics-idea icon indicating copy to clipboard operation
codemetrics-idea copied to clipboard

Code metrics is a simple Cyclomatic complexity annotator

Results 11 codemetrics-idea issues
Sort by recently updated
recently updated
newest added

java.lang.NullPointerException: Cannot invoke "Object.equals(Object)" because the return value of "com.intellij.openapi.editor.event.EditorMouseEvent.getArea()" is null at com.github.kisstkondoros.codemetrics.inlay.InlayHighlighter$2.mouseClicked(InlayHighlighter.java:62) EditorMouseEvent.getArea() is nullable. Can be easily fixed with switching equals. `if (EditorMouseEventArea.EDITING_AREA.equals(event.getArea())) { `

I would love to be able to use this for my JavaScript/Typescript projects. If I'm not mistaken, the VSCode version of this plugin does, so I was surprised to find...

Hi, I know this is not really an issue than more a feature request. I am using IntelliJ remote development with WSL and the (host) plugin sometimes show the metrics...

if there is a break in the default branch of the if, an additional level of complexity is added. The control flow hasn't changed: ```java private void test(int x) {...

when refactoring a old school switch case to the enhanced the calculation of the complexity changes even if the logic is equally complex. Here two examples. I added the if...

``` int a(int b) { if (var == b && var != NAN) { return var; } return var; } ``` Absolutely it's complexity was 3 (only 3 paths), but...

Let's compare the two functions below ``` void fun1(List ints) { ints.stream() .filter(it -> it > 100) .map(it -> it + 10) .map(it -> it / 2) .forEach(System.out::println) } ```...

Null pointer exception was thrown as I was browsing a project. IDEA didn't yet fully start, as JDK indexing was not finished. Another plugin update has just finished and I...

Hi, It would be great if this plugin could compute the code complexity on a kotlin class file. Best regards !

Currently to see which lines introduce complexity I have to click on one of the items in "Complexity increasing elements" popup and it will put my cursor on the corresponding...