diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-03 07:58:28 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-03 07:58:28 +0300 |
commit | c427bf08e41342957632289e084604f53e65e353 (patch) | |
tree | 66407d2769df4eba034e7f20ff84b176cabebaec | |
parent | 9fbdbf8b3fff72ae37a320e7e9fac3b9224e3c53 (diff) |
Rubocop: Style/AlignArray enabled
-rw-r--r-- | .rubocop.yml | 2 | ||||
-rw-r--r-- | lib/gitlab/diff/parser.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index c80c9bf907a..46634eb2337 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -17,7 +17,7 @@ Style/AlignArray: Align the elements of an array literal if they span more than one line. StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays' - Enabled: false + Enabled: true Style/AlignHash: Description: >- diff --git a/lib/gitlab/diff/parser.rb b/lib/gitlab/diff/parser.rb index f7c1f20d762..0242e09a515 100644 --- a/lib/gitlab/diff/parser.rb +++ b/lib/gitlab/diff/parser.rb @@ -4,7 +4,7 @@ module Gitlab include Enumerable def parse(lines) - @lines = lines, + @lines = lines lines_obj = [] line_obj_index = 0 line_old = 1 |