]> source.dussan.org Git - redmine.git/commitdiff
rubocop: enable Layout/AlignArguments
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 18:17:25 +0000 (18:17 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 18:17:25 +0000 (18:17 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19058 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop.yml
.rubocop_todo.yml

index 358474c9613762937a2e82cbd0a050d1eaa4d9ca..a893304dea41fff0b0b7a490e17e3918a3bd91af 100644 (file)
@@ -26,10 +26,6 @@ require:
 Bundler/OrderedGems:
   Enabled: false
 
-# You can see results by changing "Enabled: true" and "rubocop --only Layout/AlignArguments"
-Layout/AlignArguments:
-  Enabled: false
-
 Layout/EmptyLineBetweenDefs:
   AllowAdjacentOneLineDefs: true
 
index 5415f220548958b296a1a6fe098e2a49aacecada..349506676e1ee68e9dd0439977e9be6295081c57 100644 (file)
@@ -6,6 +6,32 @@
 # Note that changes in the inspected code, or installation of new
 # versions of RuboCop, may require this file to be generated again.
 
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle, IndentationWidth.
+# SupportedStyles: with_first_argument, with_fixed_indentation
+Layout/AlignArguments:
+  Exclude:
+    - 'config/application.rb'
+    - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
+    - 'lib/redmine/scm/adapters/subversion_adapter.rb'
+    - 'test/functional/journals_controller_test.rb'
+    - 'test/functional/my_controller_test.rb'
+    - 'test/functional/roles_controller_test.rb'
+    - 'test/integration/api_test/attachments_test.rb'
+    - 'test/integration/api_test/groups_test.rb'
+    - 'test/integration/api_test/issue_relations_test.rb'
+    - 'test/integration/api_test/memberships_test.rb'
+    - 'test/integration/api_test/projects_test.rb'
+    - 'test/integration/api_test/wiki_pages_test.rb'
+    - 'test/test_helper.rb'
+    - 'test/unit/changeset_test.rb'
+    - 'test/unit/lib/redmine/field_format/version_field_format_test.rb'
+    - 'test/unit/lib/redmine/wiki_formatting/html_parser_test.rb'
+    - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
+    - 'test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb'
+    - 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
+    - 'test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb'
+
 # Cop supports --auto-correct.
 # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
 # SupportedHashRocketStyles: key, separator, table