Qmeter
Qmeter fetch data from the already generated application reports through brakeman and metric_fu. Before every commit it checks your code quality and gives you the status of some major areas. Based on some thresholds it checks for some major areas like security issues, test coverage and Rails best practices etc.
Also Qmeter has a provision to save report data into CSV and based on the previous report's data it shows up the graphs.
Installation
Add below line to your Gemfile:
gem 'qmeter', :git => 'git://github.com/rohit-clarion/qmeter.git', :group => :development
Runtime dependancies
brakeman
metric_fu
terminal-table
And then execute:
$ bundle
Usage
Run Qmeter
Add below commands into '.git/hook/post-commit' file to save current quality status.
current_dir=$(pwd)
brakeman -o report.html -o report.json
metric_fu --out $current_dir/public/metric_fu
rake qmeter:run
Then you’ll have to give it execute permission
$ chmod +x .git/hooks/post-commit
It's ready to perform now. On every git commit it will check the code quality and saves the result.
To get detailed analysis report visit '/qmeter'
localhost:3000/qmeter
Contributing
- Fork it ( https://github.com/[my-github-username]/qmeter/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request