From e15574ed8141ed49376fd70bbe0dc10d413c5004 Mon Sep 17 00:00:00 2001 From: Craig Duncan Date: Sun, 11 Feb 2018 16:56:42 +0000 Subject: [PATCH] Ensure all the files lint on supported versions of PHP --- .github/workflows/buildcheck.yml | 3 +++ .gitignore | 1 + composer.json | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/buildcheck.yml b/.github/workflows/buildcheck.yml index 07160511..b83a1551 100644 --- a/.github/workflows/buildcheck.yml +++ b/.github/workflows/buildcheck.yml @@ -40,6 +40,9 @@ jobs: - name: Coding Standards run: docker exec ci vendor/bin/phpcs + - name: Static Analysis + run: docker exec ci vendor/bin/phplint src tests + - name: Composer Validate run: docker exec ci composer validate --strict diff --git a/.gitignore b/.gitignore index bc959c53..7435d65b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/.phplint-cache /composer.lock /phpunit.xml /vendor diff --git a/composer.json b/composer.json index f7cf58a6..2ce7d5a9 100644 --- a/composer.json +++ b/composer.json @@ -24,6 +24,7 @@ "require-dev": { "mockery/mockery": "^1.6.12", "mikey179/vfsstream": "^1.6.12", + "overtrue/phplint": "^1.0", "squizlabs/php_codesniffer": "^3.10", "phpunit/phpunit": "^9.5.10" }, @@ -44,6 +45,7 @@ "test": [ "vendor/bin/phpunit", "vendor/bin/phpcs", + "vendor/bin/phplint src tests", "@composer validate --strict" ] }