]> khamidou — GitHub mirrors - arcanist.git/commit
Add a native JSON linter.
authorJoshua Spence <josh@joshuaspence.com>
Sat, 21 Jun 2014 20:41:22 +0000 (06:41 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Sat, 21 Jun 2014 20:41:22 +0000 (06:41 +1000)
commitcf998db5e07e6f3c263913a446ab25e060012ad8
treec80094e150591bbd4ad36fe094b587fbf5f939e3
parenta428f22cbf0702581e6220399b9c6f50228a73da
Add a native JSON linter.

Summary:
Ref T5297. Utilize `PhutilJSONParser` to create a native JSON linter (native in that it is pure PHP with no external dependencies).

Since [[https://github.com/Seldaek/jsonlint | JsonLint]] is literally a PHP port of [[https://github.com/zaach/jsonlint | jsonlint]], I figured that we should also deprecate `ArcanistJSONLintLinter`. `ArcanistJSONLinter` //should// behave identically to `ArcanistJSONLintLinter`.

Depends on D9634.

Test Plan: Ran the `ArcanistJSONLintLinter` unit tests.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T5297

Differential Revision: https://secure.phabricator.com/D9628
src/__phutil_library_map__.php
src/lint/linter/ArcanistJSONLinter.php [new file with mode: 0644]
src/lint/linter/__tests__/ArcanistJSONLinterTestCase.php [new file with mode: 0644]