Rur - Rubocop reports
Rur gem will produce Rubocop results by html
format.
It uses
- Rubocop gem to outputs
html
format. - High_voltage to links
html
result in your app (static page
)
Installation
Add this line to your application's Gemfile:
...
group :development do
gem 'rur'
end
...
And then execute:
$ bundle install
Or install it yourself as:
$ gem install rur
And then add require 'rur'
into config/application.rb
:
# config/application.rb
...
require 'rails/all'
require 'rur'
...
Usage
1. Init Rur
$ rails generate rur
It generates some necessary files
$ rails g rur
create config/initializers/high_voltage.rb
create app/views/rur/home.html.erb
route scope :rur do
# Rur for all folders
get '/' => 'high_voltage/pages#show', id: 'home'
end
append .gitignore
2. Produce views
2.1 For your app
$ rake rur:produce
2.2 For specify folder(r) you want
$ rake rur:produce controllers models views lib
3. View results:
Go to http://localhost:3000/rur to see your results.
Testing
TODO
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/nguyentamphu/rur. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
The gem is available as open source under the terms of the MIT License.
updating...