Skip to content

Commit

Permalink
Add *.gemfile to Bundler cop target
Browse files Browse the repository at this point in the history
  • Loading branch information
sue445 authored and bbatsov committed Dec 31, 2017
1 parent ae65b14 commit 7c749d8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -24,6 +24,7 @@

* [#3394](https://github.com/bbatsov/rubocop/issues/3394): Remove `Style/TrailingCommmaInLiteral` in favor of two new cops. ([@garettarrowood][])
* Rename `Lint/UnneededDisable` to `Lint/UnneededCopDisableDirective`. ([@garettarrowood][])
* [#5365](https://github.com/bbatsov/rubocop/pull/5365): Add *.gemfile to Bundler cop target. ([@sue445][])

## 0.52.1 (2017-12-27)

Expand Down
1 change: 1 addition & 0 deletions config/default.yml
Expand Up @@ -11,6 +11,7 @@ AllCops:
Include:
- '**/*.builder'
- '**/*.fcgi'
- '**/*.gemfile'
- '**/*.gemspec'
- '**/*.god'
- '**/*.jb'
Expand Down
3 changes: 3 additions & 0 deletions config/enabled.yml
Expand Up @@ -6,6 +6,7 @@ Bundler/DuplicatedGem:
Description: 'Checks for duplicate gem entries in Gemfile.'
Enabled: true
Include:
- '**/*.gemfile'
- '**/Gemfile'
- '**/gems.rb'

Expand All @@ -16,6 +17,7 @@ Bundler/InsecureProtocolSource:
'https://rubygems.org' if possible, or 'http://rubygems.org' if not.
Enabled: true
Include:
- '**/*.gemfile'
- '**/Gemfile'
- '**/gems.rb'

Expand All @@ -24,6 +26,7 @@ Bundler/OrderedGems:
Gems within groups in the Gemfile should be alphabetically sorted.
Enabled: true
Include:
- '**/*.gemfile'
- '**/Gemfile'
- '**/gems.rb'

Expand Down
6 changes: 3 additions & 3 deletions manual/cops_bundler.md
Expand Up @@ -37,7 +37,7 @@ gem 'rubocop', groups: [:development, :test]

Name | Default value | Configurable values
--- | --- | ---
Include | `**/Gemfile`, `**/gems.rb` | Array
Include | `**/*.gemfile`, `**/Gemfile`, `**/gems.rb` | Array

## Bundler/InsecureProtocolSource

Expand Down Expand Up @@ -75,7 +75,7 @@ source 'http://rubygems.org'

Name | Default value | Configurable values
--- | --- | ---
Include | `**/Gemfile`, `**/gems.rb` | Array
Include | `**/*.gemfile`, `**/Gemfile`, `**/gems.rb` | Array

## Bundler/OrderedGems

Expand Down Expand Up @@ -112,5 +112,5 @@ gem 'rspec'

Name | Default value | Configurable values
--- | --- | ---
Include | `**/Gemfile`, `**/gems.rb` | Array
Include | `**/*.gemfile`, `**/Gemfile`, `**/gems.rb` | Array
TreatCommentsAsGroupSeparators | `true` | Boolean

0 comments on commit 7c749d8

Please sign in to comment.