From f239ec23d385669d39fd7bcefd44a07cb9d2d694 Mon Sep 17 00:00:00 2001 From: Fred Emmott Date: Sat, 9 Dec 2017 19:18:53 -0800 Subject: [PATCH] add linter --- composer.json | 3 ++- composer.lock | 35 ++++++++++++++++++++++++++++++++++- hhast-lint.json | 3 +++ 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 hhast-lint.json diff --git a/composer.json b/composer.json index e0ae766a7..f0cffb91b 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,8 @@ "facebook/hack-codegen": "^3.0.1", "facebook/hack-router-codegen": "^0.10.1", "facebook/hack-router": "^0.10", - "hhvm/hsl": "^1.0" + "hhvm/hsl": "^1.0", + "hhvm/hhast": "^0.4.0" }, "require-dev": { "facebook/definition-finder": "^1.5.1", diff --git a/composer.lock b/composer.lock index a74915769..83eb6e018 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "71af4f5c04ec0104f6e2123dcf424339", + "content-hash": "1a2561d89d554de53ba08a1165a2d5f6", "packages": [ { "name": "facebook/definition-finder", @@ -312,6 +312,39 @@ ], "time": "2016-09-22T15:18:26+00:00" }, + { + "name": "hhvm/hhast", + "version": "v0.4", + "source": { + "type": "git", + "url": "https://github.com/hhvm/hhast.git", + "reference": "4405a33582d3700c18ab30d1202e994e084b0849" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hhvm/hhast/zipball/4405a33582d3700c18ab30d1202e994e084b0849", + "reference": "4405a33582d3700c18ab30d1202e994e084b0849", + "shasum": "" + }, + "require": { + "hhvm": "^3.21.0", + "hhvm/hsl": "^1.0.0", + "hhvm/type-assert": "^3.1" + }, + "require-dev": { + "91carriage/phpunit-hhi": "^5.7", + "facebook/fbexpect": "^0.3.0", + "facebook/hack-codegen": "dev-master", + "hhvm/hhvm-autoload": "^1.5", + "phpunit/phpunit": "^5.7" + }, + "bin": [ + "bin/hhast-lint" + ], + "type": "library", + "notification-url": "https://packagist.org/downloads/", + "time": "2017-11-09T18:37:23+00:00" + }, { "name": "hhvm/hhvm-autoload", "version": "v1.5.3", diff --git a/hhast-lint.json b/hhast-lint.json new file mode 100644 index 000000000..6a389c6d3 --- /dev/null +++ b/hhast-lint.json @@ -0,0 +1,3 @@ +{ + "roots": [ "src/", "tests/" ] +}