diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-07-20 00:35:11 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-07-20 00:35:11 -0300 |
commit | 0f96d01758c24def396f485f53471e34b87321e9 (patch) | |
tree | 8f87fca92000189840fa34d93a99712edc64db52 /.rubocop.yml | |
parent | d8bc0964d29837407efe425d7a65ab9a27d96e82 (diff) | |
download | rails-0f96d01758c24def396f485f53471e34b87321e9.tar.gz rails-0f96d01758c24def396f485f53471e34b87321e9.tar.bz2 rails-0f96d01758c24def396f485f53471e34b87321e9.zip |
Add a new rule to rubocop
Diffstat (limited to '.rubocop.yml')
-rw-r--r-- | .rubocop.yml | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index de355eeb13..62fb263c9e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -4,37 +4,40 @@ AllCops: # Two spaces, no tabs (for indentation). Style/IndentationWidth: - enabled: true + Enabled: true # No trailing whitespace. Style/TrailingWhitespace: - enabled: true + Enabled: true # Blank lines should not have any spaces. Style/TrailingBlankLines: - enabled: true + Enabled: true # Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }. Style/HashSyntax: - enabled: true + Enabled: true # Prefer &&/|| over and/or. Style/AndOr: - enabled: true + Enabled: true # Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg. Lint/RequireParentheses: - enabled: true + Enabled: true Style/BracesAroundHashParameters: - enabled: true + Enabled: true Style/IndentationConsistency: - enabled: true + Enabled: true EnforcedStyle: rails Style/EmptyLinesAroundClassBody: - enabled: true + Enabled: true Style/EmptyLinesAroundModuleBody: - enabled: true + Enabled: true + +Lint/EndAlignment: + AlignWith: variable |