Skip to content

Commit

Permalink
rubocop-0.76: updating cop names based on 0.76 release - rubocop/rubo…
Browse files Browse the repository at this point in the history
  • Loading branch information
joebrislin committed Sep 23, 2020
1 parent 48d59e6 commit 023b23e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'

# IDE Configs
.idea/
.vscode/
.rubocop-*
21 changes: 19 additions & 2 deletions rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
AllCops:
Exclude:
- bin/**/*
- config/environments/*
- config/deploy/*
- db/schema.rb
- node_modules/**/*
Expand All @@ -25,8 +26,8 @@ Layout/EndOfLine:
EnforcedStyle: lf

# Allow less whitespace in indentation
# https://github.com/rubocop-hq/rubocop/blob/master/manual/cops_layout.md#layoutalignparameters
Layout/AlignParameters:
# https://github.com/rubocop-hq/rubocop/blob/master/manual/cops_layout.md#layoutparameteralignment
Layout/ParameterAlignment:
EnforcedStyle: with_fixed_indentation

# Don't require empty lines between module and class lines
Expand Down Expand Up @@ -56,6 +57,7 @@ Lint/AmbiguousBlockAssociation:
# Allows lengthy describes in specs
# https://github.com/rubocop-hq/rubocop/blob/master/manual/cops_metrics.md#metricsblocklength
Metrics/BlockLength:
ExcludedMethods: ["included"]
Exclude:
- 'spec/**/*'

Expand Down Expand Up @@ -95,6 +97,21 @@ Style/BlockDelimiters:
Exclude:
- 'spec/**/*'

# This cop checks for uses of each_key and each_value Hash methods
# https://rubocop.readthedocs.io/en/latest/cops_style/#stylehasheachmethods
Style/HashEachMethods:
Enabled: true

# transforming the keys of a hash - Ruby 2.5 and newer
# https://rubocop.readthedocs.io/en/latest/cops_style/#stylehashtransformkeys
Style/HashTransformKeys:
Enabled: true

# transforming the values of a hash - Ruby 2.4 and newer
# https://rubocop.readthedocs.io/en/latest/cops_style/#stylehashtransformvalues
Style/HashTransformValues:
Enabled: true

# Prefer compact style over exploded.
# https://github.com/rubocop-hq/rubocop/blob/master/manual/cops_style.md#styleraiseargs
Style/RaiseArgs:
Expand Down

0 comments on commit 023b23e

Please sign in to comment.