]> git.openstreetmap.org Git - rails.git/commitdiff
Exclude most views from string literal checks
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 27 Mar 2019 09:42:16 +0000 (10:42 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 27 Mar 2019 09:42:16 +0000 (10:42 +0100)
This allows us to work through them slowly, while preventing errors
from creeping into directories that already pass.

.erb-lint.yml

index 0861b74a2cac367766d49b1a3c3f24414edd0441..a002cdafa46b60535e272a61f25c6f4dafc8998a 100644 (file)
@@ -26,7 +26,25 @@ linters:
       Rails/OutputSafety:
         Enabled: false
       Style/StringLiterals:
-        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: