0

I came across https://codeclimate.com. Super awesome, but I'm working on a project whose code I cannot share with others or Code Climate.

Now I would like to be able to improve my code quality and wonder if anyone can suggest tools that do what codeclimate.com does but locally in development mode, without me having to share my code.

Dave Schweisguth
  • 36,475
  • 10
  • 98
  • 121
Rubytastic
  • 15,001
  • 18
  • 87
  • 175

3 Answers3

0

The metric_fu gem seems to be the best option combining all known test tools into 1 an generate a neat report although its not as nice and fully featured as code climate.com

Rubytastic
  • 15,001
  • 18
  • 87
  • 175
  • Not yet! 5.0 is coming! – BF4 Sep 27 '13 at 15:14
  • For a roll-your-own, you can use Flog, Flay, Brakeman, and Simplecov and make a code styler such as rubocop, tailor, or cane, or even Rails best practices. See https://github.com/metricfu/metric_fu/wiki/Code-Tools – BF4 Sep 27 '13 at 15:16
  • @BF4: Sorry what do you mean with "5.0 is coming"? EDIT: Ah sorry your the author of metric_fu ;) What features do you plan in 5.0 that make it more like code metrics? – Rubytastic Sep 27 '13 at 15:48
  • Well, firstly, I'm not trying to make it like anything else. For me, 5.0 means pluggable metrics which means the api is clean enough that all the various aspects of running the metrics, storing its output, graphing, formatting, and weighting as a hotspot are easy enough to do and can be configured in one place. – BF4 Sep 30 '13 at 21:46
0

We can use Fog gem which give code complexity at class and method level. To check code duplications we can use Flay gem.

Both give same result that code climate gives.

scs
  • 119
  • 7
0

Now there's an exact answer: Last year Code Climate released a new platform which includes a command-line interface, Code Climate CLI. It runs entirely on your computer (in a Docker container) and doesn't require a Code Climate account.

Dave Schweisguth
  • 36,475
  • 10
  • 98
  • 121