• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Free Automatic CodeReview tool

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I was looking for a free automactic code review tool which can help me generate code review reports. Kindly help me with the same

Thanks,
Aditya
 
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure what exactly you are looking for, but I would suggest to have a look at: Checkstyle, Findbugs, PMD and maybe Testability Explorer.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Agreed; it depends on what you mean by "code review". To me, a "code review" is a collaborative gathering of people's opinions about the code, potential issues, and things like that--something automated tools can't really do (although FindBugs can... well, find bugs, and Checkstyle can enforce coding standards, and PMD does a bit of both).
 
Adi Kulkarni
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Joachim and David,

I'm looking for a code review tool which will check the coding standards,efficient use of the data structures, check if the code is optimised. If there is some unused variable etc. I tried PMD bug unfortunately the binary for that is continuously crashing. Also Findbugs doesnt generate a report(please correct me if I'm wrong).

I also tried downloading Hammurapi, but the same problem that the executable is crashing

Thanks,
Aditya
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've started to use Sonar at both work and at home. Very useful for:
  • rules compliance
  • code coverage
  • identifying standard "problems" as per FindBugs and PMD (e.g. unused variables)
  • identifying duplicated code
  • identifying too complex code


  • And more.

    Note that it is a relatively heavyweight application, and by default it requires your projects to use Maven (although there is a way around that by using a Hudson Sonar plugin).

    Hudson itself has many plugins that will give you some of the reports that Sonar provides. But not all of them. I tend to use Hudson as my CI tool with Sonar triggered by Hudson each night (the creators of Sonar recommend it run as a daily build).

    FindBugs does generate reports in many formats - take a look at this sample report on the JBoss codebase as an example. Personally I don't like the way they do reports - it is non intuitive to me that the top 4 items work as tabs that you can click on, or that there is drill-down information on some screens (e.g. the "List bugs by bug category" screen). I tend to use FindBugs within Eclipse itself (there are plugins for most IDEs) and also generate a more generic XML report from the standalone FindBugs report that Hudson understands and can incorporate into it's daily build information.
     
    Adi Kulkarni
    Ranch Hand
    Posts: 86
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Thanks a lot,

    Can I use SONAR as a stand alone tool for generating reports ?

    Thanks,
    Aditya
     
    David Newton
    Author
    Posts: 12617
    IntelliJ IDE Ruby
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    FindBugs creates reports; otherwise what use would it be?
     
    Ranch Hand
    Posts: 46
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hi,

    Sorry to dredge up this old post but you can use Hudson and Serenity(http://wiki.hudson-ci.org/display/HUDSON/Serenity+Plugin) for code coverage, complexity, dependency, abstractness and distance. And of course FindBugs plugs in to Hudson as well, the two together will give you more than enough metrics to judge the code quality.

    Hope this helps,
    Michael
     
    reply
      Bookmark Topic Watch Topic
    • New Topic