]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Lint JSON files with `ArcanistJSONLinter`.
authorJoshua Spence <josh@joshuaspence.com>
Sun, 22 Jun 2014 15:55:48 +0000 (01:55 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Sun, 22 Jun 2014 15:55:48 +0000 (01:55 +1000)
Summary: After D9628, we can lint JSON files natively.

Test Plan: Linted a few JSON files manually (i.e. `arc lint --trace -- $FILE`).

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9652

.arclint

index 019225f64fe54c2b4a1d4106affe3838b0b7fa46..ac66b697347d150c41d616a447d6156195a63d0e 100644 (file)
--- a/.arclint
+++ b/.arclint
     "generated": {
       "type": "generated"
     },
+    "json": {
+      "type": "json",
+      "include": [
+        "(^resources/arclint/.*\\.arclint\\.example$)",
+        "(^\\.arcconfig$)",
+        "(^\\.arclint$)",
+        "(\\.json$)"
+      ]
+    },
     "merge-conflict": {
       "type": "merge-conflict"
     },