Forum: Ruby on Rails Code Review Tool

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4dd75353dff93de29b53a1ac890a1771?d=identicon&s=25 Karthi kn (karthikeyan7585)
on 2008-11-25 05:39
Hi,

I am looking for a code review tool for my ROR application.
Can you suggest something?


Thanks in advance...
247cd3d37084a3d6794076207bd9fbd7?d=identicon&s=25 Bobnation (Guest)
on 2008-11-25 08:27
(Received via mailing list)
What do you mean by a "code review tool?"

On Nov 24, 10:39 pm, Karthi kn <rails-mailing-l...@andreas-s.net>
4dd75353dff93de29b53a1ac890a1771?d=identicon&s=25 Karthi kn (karthikeyan7585)
on 2008-11-25 09:35
A tool which can test the quality of our all ruby code in our rails
application.
I tried with the gem called "Roodi" to check my code. Is there any other
effective tool for this?
F193e52d0a812b1429d51412bee21cdc?d=identicon&s=25 gundestrup@gmail.com (Guest)
on 2008-11-25 10:31
(Received via mailing list)
try netbeans IDE.
It checks my code.

regards
svend

On Nov 25, 9:35 am, Karthi kn <rails-mailing-l...@andreas-s.net>
9a2a53db8e9b4476038c94a64b32833f?d=identicon&s=25 Ryan Bigg (ryan-bigg)
on 2008-11-25 11:56
(Received via mailing list)
Or you could hire a REAL PERSON (I know, shocking, isn't it?) to check
your code for you!
-----
Ryan Bigg
Freelancer
http://frozenplague.net
Da2b3f821255aeabea0a49c30b328cc1?d=identicon&s=25 Matt Grande (Guest)
on 2008-11-25 14:33
(Received via mailing list)
Ryan, the average code review tool for .Net is under $1000, and RoR
apps are generally cheaper than that or free.  Can you hire someone
for under $1000?  Sure, you don't have the hands-on approach of a real
person, but running a script is exactly one hell of a lot faster.

- Matt.
247cd3d37084a3d6794076207bd9fbd7?d=identicon&s=25 Bobnation (Guest)
on 2008-11-25 15:18
(Received via mailing list)
The only thing that comes to mind would be rcov, but that is for
checking testing coverage of your application. Testing is the best way
to test the code of your application.

On Nov 25, 2:35 am, Karthi kn <rails-mailing-l...@andreas-s.net>
Ef3aa7f7e577ea8cd620462724ddf73b?d=identicon&s=25 Rob Biedenharn (Guest)
on 2008-11-25 15:23
(Received via mailing list)
Is that tool going to explain how to make your code better?  Or just
how to make your code get a better score?  If this wonderful script
tells you that your code needs some serious help, will you  be hiring
someone then??

-Rob
D0e7a53bc25c2827451d9f5b14561e05?d=identicon&s=25 Attila Györffy (liquideclm)
on 2008-11-25 15:31
(Received via mailing list)
I've done some Googlin' and found this blog post:
http://devver.net/blog/2008/10/ruby-code-quality-tools/

It features some Ruby code quality checking tools:
- Roodi
- Dust
- Flog
- Saikuro

Maybe some of 'em will be helpful.

Attila

On Nov 25, 2:22 pm, Rob Biedenharn <R...@AgileConsultingLLC.com>
5ff576dcf253c4469b51e7245c22808a?d=identicon&s=25 Diogo Lisboa (Guest)
on 2008-11-25 15:32
(Received via mailing list)
On Tue, Nov 25, 2008 at 2:39 AM, Karthi kn
<rails-mailing-list@andreas-s.net> wrote:
>
> Hi,
>
> I am looking for a code review tool for my ROR application.
> Can you suggest something?
>
>
> Thanks in advance...



rcov is a gem that shows test coverage.

Flog measures the testability of your code. Flay "analyzes ruby code
for structural similarities". For more on those, and more, see
http://ruby.sadi.st .

Other than that, there are some tools that show you dead code (crufty,
towelie), but I never saw them in action.

But none of them will prove your code has quality, obviously.


Diogo
D1f1c20467562fc1d8c8aa0d328def62?d=identicon&s=25 Florian Gilcher (skade)
on 2008-11-25 16:02
(Received via mailing list)
>

Have a look at this video. It explains most techniques you can use for
gaining metrics.

http://lsrc2008.confreaks.com/04-jake-scruggs-usin...

One comment from the video is very important: metrics can guide your
view, but you still need
a good human to interpret them. Just because the score of a method is
high, that does not mean
that the implementation is bad - maybe it is just solving a hard
problem. Metrics have no meaning
without context - and that context has to be provided by a human.

Regards,
Florian Gilcher
Aafa8848c4b764f080b1b31a51eab73d?d=identicon&s=25 Phlip (Guest)
on 2008-11-28 02:34
(Received via mailing list)
Karthi kn wrote:

> I am looking for a code review tool for my ROR application.
> Can you suggest something?

What does 'rake stats' return for your project?

--
   Phlip
   http://broadcast.oreilly.com/2008/10/testing-rails...
9a2a53db8e9b4476038c94a64b32833f?d=identicon&s=25 Ryan Bigg (ryan-bigg)
on 2008-11-28 05:47
(Received via mailing list)
Matt, I would gladly review code for $1000. That's... 20 hours paid
work.
-----
Ryan Bigg
Freelancer
http://frozenplague.net
This topic is locked and can not be replied to.