]> git.openstreetmap.org Git - rails.git/blobdiff - .erb-lint.yml
Fix erblint warnings
[rails.git] / .erb-lint.yml
index 9c3d6b0824a8df1960f1d8aa7ff6093c459836a7..ca95fb0d7616981c119e9f118708fbed0f957fce 100644 (file)
@@ -1,9 +1,8 @@
 ---
 linters:
-  SelfClosingTag:
-    enabled: false
-  SpaceInHtmlTag:
-    enabled: false # TODO
+  AllowedScriptType:
+    enabled: true
+    disallow_inline_scripts: true
   Rubocop:
     enabled: true
     rubocop_config:
@@ -11,7 +10,7 @@ linters:
         - .rubocop.yml
       Layout/InitialIndentation:
         Enabled: false
-      Layout/TrailingBlankLines:
+      Layout/TrailingEmptyLines:
         Enabled: false
       Layout/TrailingWhitespace:
         Enabled: false
@@ -25,21 +24,9 @@ linters:
         Enabled: false
       Rails/OutputSafety:
         Enabled: false
-      Rails/DynamicFindBy:
-        Enabled: false # TODO
-      Style/WordArray:
-        Enabled: false # TODO
-      Layout/LeadingBlankLines:
-        Enabled: false # TODO
-      Style/NestedParenthesizedCalls:
-        Enabled: false # TODO
-      Rails/LinkToBlank:
-        Enabled: false # TODO
-      Style/SymbolProc:
-        Enabled: false # TODO
-      Style/NegatedIf:
-        Enabled: false # TODO
-      Style/ConditionalAssignment:
-        Enabled: false # TODO
+  SelfClosingTag:
+    enabled: false
+  SpaceInHtmlTag:
+    enabled: true
 exclude:
   - '**/vendor/**'