Skip to content

Commit

Permalink
Update .rubocop.yml
Browse files Browse the repository at this point in the history
Where we've excluded the spec folder, exclude the test folder too.
  • Loading branch information
robkilby authored Apr 17, 2017
1 parent 9218e52 commit 3fee06e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Style/CaseIndentation:
Style/ClassAndModuleChildren:
Exclude:
- '**/spec/**/*'
- '**/test/**/*'

# Mapping from undesired method to desired method e.g. to use `detect` over `find`.
Style/CollectionMethods:
Expand All @@ -97,6 +98,7 @@ Style/Documentation:
- '**/config/**/*.rb'
- '**/db/migrate/*.rb'
- '**/spec/**/*'
- '**/test/**/*'

# This cop checks for missing documentation comments for all methods.
#
Expand All @@ -107,6 +109,7 @@ Style/DocumentationMethod:
- '**/config/**/*.rb'
- '**/db/migrate/*.rb'
- '**/spec/**/*'
- '**/test/**/*'

# Warn on empty else statements
#
Expand All @@ -125,6 +128,7 @@ Style/EmptyMethod:
EnforcedStyle: expanded
Exclude:
- '**/spec/**/*'
- '**/test/**/*'

# Checks whether the source file has a utf-8 encoding comment or not.
#
Expand Down Expand Up @@ -297,6 +301,7 @@ Metrics/BlockLength:
- '**/config/initializers/**/*.rb'
- '**/config/environments/**/*.rb'
- '**/spec/**/*'
- '**/test/**/*'
- '**/*.gemspec'

# Checks if the length a class exceeds some maximum value. Ignores comment-only lines.
Expand Down

0 comments on commit 3fee06e

Please sign in to comment.