Sha256: 92ecdf7a8b643c8336c218944965bc87b783b90744e14171ca536a6a86a5c8ce
Contents?: true
Size: 1.47 KB
Versions: 41
Compression:
Stored size: 1.47 KB
Contents
# armitage-rubocop · [![Gem Version](https://badge.fury.io/rb/armitage-rubocop.svg)](https://badge.fury.io/rb/armitage-rubocop) - [Installation](#installation) - [Usage](#usage) - [Build](#build) --- Configured rules: - **Common** (`.rubocop.general.yml`) (`.rubocop.rails.yml`) (`.rubocop.rake.yml`) - Bundler - Rake - Gemspec - Layout - Lint - Metrics - Migration - Naming - Performance - Rails (isn't included in `.rubocop.general.yml`) - Security - Style - Rake (isn't included in `.rubocop.general.yml`) - **RSpec** (`.rubocop.rspec.yml`) (`.rubocop.rails.yml`) - Capybara - FactoryBot - Rails - RSpec --- ### Installation ```ruby gem 'armitage-rubocop' ``` ```shell $ bundle install # --- or --- $ gem install 'armitage-rubocop' ``` ```ruby require 'armitage-rubocop' ``` --- ### Usage - edit your `.rubocop.yml` file: ```yaml # --- vanilla --- inherit_gem: armitage-rubocop: - lib/rubocop.general.yml - lib/rubocop.rspec.yml - lib/rubocop.rake.yml ``` ```yaml # --- rails --- inherit_gem: # rails-specific cops + general + rspec armitage-rubocop: lib/rubocop.rails.yml ``` --- ### Build ```ruby # --- full build --- bundle exec rake armitage_rubocop:build # --- validate code style --- bundle exec rake rubocop # --- validate yaml files --- bundle exec rake armitage_rubocop:validation:valid_yamls # --- validate rubocop cops (existence and params) --- bundle exec rake armitage_rubocop:validation:recognizable_cops ```
Version data entries
41 entries across 41 versions & 1 rubygems