Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Which plugin to use check cyclomatic complexity in Java project?  RSS feed

 
Ranch Hand
Posts: 1292
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Eclips IDE for my Java projects. So how we check the cyclomatic complexity of those projects?
 
Sheriff
Posts: 4568
286
Clojure IntelliJ IDE Java
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not an IDE plugin, but SonarQube is pretty useful for static code analysis that includes cyclomatic complexity.
 
author & internet detective
Posts: 38909
684
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sonar has an Eclipse plugin called SonarLint that also tells if the cyclomatic complexity is too hight. For "good" methods, it doesn't tell you the cyclomatic complexity though.
 
Saloon Keeper
Posts: 5040
134
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's also an open source project called JavaNCSS which measures this.
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Our jenkins build's use a combination of sonar and PMD for builds. I think PMD might be getting phased in favour of just sonar now.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!