diff options
Diffstat (limited to '.rubocop.yml')
-rw-r--r-- | .rubocop.yml | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index 2b874d8419..2889acfdd1 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -28,10 +28,6 @@ Layout/CommentIndentation: Layout/EmptyLineAfterMagicComment: Enabled: true -# No extra empty lines. -Layout/EmptyLines: - Enabled: true - # In a regular class definition, no empty lines around the body. Layout/EmptyLinesAroundClassBody: Enabled: true @@ -44,6 +40,9 @@ Layout/EmptyLinesAroundMethodBody: Layout/EmptyLinesAroundModuleBody: Enabled: true +Layout/FirstParameterIndentation: + Enabled: true + # Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }. Style/HashSyntax: Enabled: true @@ -85,7 +84,18 @@ Style/FrozenStringLiteralComment: EnforcedStyle: always Include: - 'activesupport/**/*' + - 'activemodel/**/*' + - 'actioncable/**/*' - 'activejob/**/*' + - 'activerecord/**/*' + - 'actionmailer/**/*' + - 'actionview/**/*' + - 'actionpack/**/*' + Exclude: + - 'actionview/test/**/*.builder' + - 'actionview/test/**/*.ruby' + - 'actionpack/test/**/*.builder' + - 'actionpack/test/**/*.ruby' # Use `foo {}` not `foo{}`. Layout/SpaceBeforeBlockBraces: |