]> source.dussan.org Git - redmine.git/commitdiff
add Layout/LineLength to .rubocop.yml
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 11 Dec 2020 14:17:11 +0000 (14:17 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 11 Dec 2020 14:17:11 +0000 (14:17 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20619 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop.yml

index 1d6cc8fb57d8e0483a40d680e301bdf7915a4f4f..d791b4d6eaa1952d0f451ac6238d663dc4ab08e9 100644 (file)
@@ -45,6 +45,16 @@ Layout/EmptyLinesAroundAccessModifier:
 Layout/EmptyLineBetweenDefs:
   AllowAdjacentOneLineDefs: true
 
+Layout/LineLength:
+  Enabled: true
+  IgnoredPatterns: ['\A\s+test \".+\" do\z', '\A\s*\#']
+  Exclude:
+    - 'db/migrate/0*.rb'
+    - 'db/migrate/1*.rb'
+    - 'db/migrate/201*.rb'
+    - 'db/migrate/20200*.rb'
+    - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
+
 Layout/RescueEnsureAlignment:
   Enabled: true
   Exclude: