Skip to content

Styleguide for Ruby on Rails projects at emotionsAR

License

Notifications You must be signed in to change notification settings

emotionsAR/rubocop-emotionsar

Repository files navigation

emotionsAR Style guide

Gem Version

emotionsAR style guide for Ruby on Rails projects

Installation

Add this line to your application's Gemfile:

group :development, :test do
  gem 'rubocop-emotionsar'
end

And then run

$ bundle install

Usage

Create a .rubocop.yml file and include the following directives at the top of it:

inherit_gem:
  rubocop-emotionsar: style.yml

Also the target ruby and rails versions should be specifier per each project:

AllCops:
  TargetRubyVersion: 2.4   # default as per rubocop:0.81.0
  TargetRailsVersions: 5.0 # default as per rubocop-rails:2.5.2

And run:

bundle exec rubocop

Rubocop does not need to be installed in your dependencies, rubocop-emotionsar already includes a specific rubocop version in its dependencies.

License

The gem is available as open source under the terms of the MIT License.

About

Styleguide for Ruby on Rails projects at emotionsAR

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages