Sha256: 4f04b420a7d5fb9db8a962cae939c37034cc9b4f69571d16b770c9f0f6600c61
Contents?: true
Size: 934 Bytes
Versions: 2
Compression:
Stored size: 934 Bytes
Contents
# nxt_cop Getsafe shared Rubocop Config. ## Installation Add this line to your application's Gemfile: ```ruby group :test, :development do gem 'nxt_cop' end ``` Or, for a Ruby library, add this to your gemspec: ```ruby spec.add_development_dependency 'nxt_cop' ``` And then run: ```bash $ bundle install ``` ## Usage Create a `.rubocop.yml` with the following directives: ```yaml inherit_gem: nxt_cop: - default.yml ``` Now, run: ```bash $ bundle exec rubocop ``` You do not need to include rubocop directly in your application's dependencies. nxt_cop will include a specific version of `rubocop` that is shared across all projects. It is also possible to override styles or add styles to your application. **NOTE:** Don't configure `AllCops` as it will override many of the rules in this gem. ``` inherit_gem: nxt_cop: - default.yml Lint/Style: Exclude: - db/schema.rb - db/migrate/*.rb ```
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nxt_cop-1.0.12 | README.md |
nxt_cop-1.0.10 | README.md |