From f7ca82806feb8cfbca00de8466537cb36d5c8de4 Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Thu, 18 Jun 2020 19:53:24 +0200 Subject: [PATCH 1/2] Add PHP linting foundation --- .automation/test/php/README.md | 13 ++++++++ .automation/test/php/php_bad_1.php | 5 +++ .automation/test/php/php_good_1.php | 5 +++ Dockerfile | 4 ++- README.md | 2 ++ docs/disabling-linters.md | 18 ++++++++++ lib/linter.sh | 51 ++++++++++++++++++++++++++++- 7 files changed, 96 insertions(+), 2 deletions(-) create mode 100644 .automation/test/php/README.md create mode 100644 .automation/test/php/php_bad_1.php create mode 100644 .automation/test/php/php_good_1.php diff --git a/.automation/test/php/README.md b/.automation/test/php/README.md new file mode 100644 index 00000000..7ab89f43 --- /dev/null +++ b/.automation/test/php/README.md @@ -0,0 +1,13 @@ +# PHP Test Cases +This folder holds the test cases for **PHP**. + +## Additional Docs +No Additional information is needed for this test case. + +## Good Test Cases +The test cases denoted: `LANGUAGE_good_FILE.EXTENSION` are all valid, and should pass successfully when linted. +- **Note:** They are linted utilizing the default linter rules. + +## Bad Test Cases +The test cases denoted: `LANGUAGE_bad_FILE.EXTENSION` are **NOT** valid, and should trigger errors when linted. +- **Note:** They are linted utilizing the default linter rules. diff --git a/.automation/test/php/php_bad_1.php b/.automation/test/php/php_bad_1.php new file mode 100644 index 00000000..9c2999f6 --- /dev/null +++ b/.automation/test/php/php_bad_1.php @@ -0,0 +1,5 @@ + Date: Mon, 22 Jun 2020 14:42:49 -0500 Subject: [PATCH 2/2] removing hard coded errors --- .automation/test/php/php_bad_1.php | 2 -- .automation/test/php/php_good_1.php | 2 -- 2 files changed, 4 deletions(-) diff --git a/.automation/test/php/php_bad_1.php b/.automation/test/php/php_bad_1.php index 9c2999f6..e564fc66 100644 --- a/.automation/test/php/php_bad_1.php +++ b/.automation/test/php/php_bad_1.php @@ -1,5 +1,3 @@