]> git.openstreetmap.org Git - rails.git/blobdiff - .erb-lint.yml
Exclude most views from string literal checks
[rails.git] / .erb-lint.yml
index bc722c218997b00d1175843e2265c4126adac4bd..a002cdafa46b60535e272a61f25c6f4dafc8998a 100644 (file)
@@ -26,9 +26,25 @@ linters:
       Rails/OutputSafety:
         Enabled: false
       Style/StringLiterals:
-        Enabled: false # TODO
-      Style/BracesAroundHashParameters:
-        Enabled: false # TODO
+        Exclude: # TODO
+          - app/views/browse/*
+          - app/views/changesets/*
+          - app/views/changeset_comments/*
+          - app/views/diary_entries/*
+          - app/views/geocoder/*
+          - app/views/issues/*
+          - app/views/layouts/*
+          - app/views/messages/*
+          - app/views/notes/*
+          - app/views/notifier/*
+          - app/views/oauth/*
+          - app/views/oauth_clients/*
+          - app/views/redactions/*
+          - app/views/reports/*
+          - app/views/site/*
+          - app/views/traces/*
+          - app/views/user_blocks/*
+          - app/views/users/*
       Rails/DynamicFindBy:
         Enabled: false # TODO
       Style/AndOr:
@@ -43,8 +59,6 @@ linters:
         Enabled: false # TODO
       Rails/LinkToBlank:
         Enabled: false # TODO
-      Style/HashSyntax:
-        Enabled: false # TODO
       Style/SymbolProc:
         Enabled: false # TODO
       Style/Not:
@@ -53,3 +67,5 @@ linters:
         Enabled: false # TODO
       Style/ConditionalAssignment:
         Enabled: false # TODO
+exclude:
+  - '**/vendor/**'