aboutsummaryrefslogtreecommitdiffstats
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2018-01-19 17:49:21 +1030
committerGitHub <noreply@github.com>2018-01-19 17:49:21 +1030
commitacbcef6094d61eb8c4820295620d170743a4bd71 (patch)
treef0a6d4d0d145464307c2578a7fb43d799bb8d337 /.rubocop.yml
parent6559577d1d3fdb16187eda124bb71dd48d217c9d (diff)
parent5ac6ec54a673e493cddf6bf2eff5b98e52b3c268 (diff)
downloadrails-acbcef6094d61eb8c4820295620d170743a4bd71.tar.gz
rails-acbcef6094d61eb8c4820295620d170743a4bd71.tar.bz2
rails-acbcef6094d61eb8c4820295620d170743a4bd71.zip
Merge pull request #31732 from koic/enable_autocorrect_for_lint_end_alignment_cop
Enable autocorrect for `Lint/EndAlignment` cop
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index a04de4b497..3b4dd79e81 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -26,6 +26,9 @@ Layout/CaseIndentation:
Layout/CommentIndentation:
Enabled: true
+Layout/ElseAlignment:
+ Enabled: true
+
Layout/EmptyLineAfterMagicComment:
Enabled: true
@@ -140,6 +143,7 @@ Style/UnneededPercentQ:
Lint/EndAlignment:
Enabled: true
EnforcedStyleAlignWith: variable
+ AutoCorrect: true
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
Lint/RequireParentheses: