Sha256: a7050e1285fabda78a1ec5ce74b85243d410448bee926491b09ef697f4ed0bb0
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 KB
Contents
# Rubocop::Rules A common place to house rubocop rule enforcement across projects. ## Installation Add this line to your application's Gemfile: ```ruby gem 'rubocop_rules', require: false ``` And then execute: $ bundle Or install it yourself as: $ gem install rubocop_rules ## Usage After installing the gem, you need to initialize your project using the provided CLI. ### Initializing a project Initialize your project with the cli: `rubocop-rules init` This will create `.rubocop.yml` and `rubucop_common.yml`, it will then run `rubucop -a` to automatically fix what can be fixed for you. In addition to this it will create `rubucop_todo.yml` to put what cannot be fixed in quarantine for you to fix later. Finally, a linter spec to make sure your code is following the common conventions. ### Updating a project Whenever a new version of the gem is deployed, you may update your project configuration using the command: `rubocop-rules update`. This command will get a fresh copy of `rubucop_common.yml`, it will run autofixes and regenerate a new `rubucop_todo.yml` for you. ## Development Bug reports and pull requests are welcome on GitHub at https://github.com/klarna/rubocop_rules.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubocop_rules-1.0.2 | README.md |
rubocop_rules-1.0.1 | README.md |