]> khamidou — GitHub mirrors - arcanist.git/commit
Improve the handling of `.arclint` files.
authorJoshua Spence <josh@joshuaspence.com>
Mon, 23 Jun 2014 23:24:30 +0000 (09:24 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Mon, 23 Jun 2014 23:24:30 +0000 (09:24 +1000)
commit30df78f64cd8c90b37100186ea3ec0c20f62fa76
treeeca16a537d7ac691e78740f3086811d2a5eaa98e
parent69cd86fa4f3e8c01ed4a242f28d3343699417762
Improve the handling of `.arclint` files.

Summary: Throw a useful error message when an `.arclint` file is not valid JSON.

Test Plan:
Modified an `.arclint` file to be invalid JSON.

```
> arc lint
Exception
Parse error on line 24 at column 5: Expected one of: 'EOF', '}', ',', ']'
(Run with --trace for a full exception trace.)
```

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9679
src/lint/engine/ArcanistConfigurationDrivenLintEngine.php