Skip to content

Commit 4e86d5f

Browse files
committed
Update rulesets, remove report setting
1 parent 73da4af commit 4e86d5f

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ ENV PHPCS_VERSION=3.6.2
99
# https://github.com/sirbrillig/phpcs-variable-analysis/releases
1010
# https://github.com/phpcompatibility/phpcompatibility/releases
1111
# https://github.com/phpcompatibility/phpcompatibilitywp/releases
12-
ENV RULESET_WP_CODING_STANDARDS_VERSION=2.3.0 \
13-
RULESET_VIP_CODING_STANDARDS_VERSION=2.3.2 \
14-
RULESET_PHPCS_VARIABLE_ANALYSIS_VERSION=2.11.0 \
12+
ENV RULESET_WP_CODING_STANDARDS_VERSION=3.1.0 \
13+
RULESET_VIP_CODING_STANDARDS_VERSION=3.0.1 \
14+
RULESET_PHPCS_VARIABLE_ANALYSIS_VERSION=2.11.19 \
1515
RULESET_PHP_COMPATIBILITY_VERSION=9.3.5 \
16-
RULESET_PHP_COMPATIBILITY_WP_VERSION=2.1.1
16+
RULESET_PHP_COMPATIBILITY_WP_VERSION=2.1.5
1717

1818
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
1919

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,18 @@ The following sniffs are currently available. You can configure the standard(s)
6363

6464
- MySource
6565
- PEAR
66-
- PHPCompatibility
67-
- PHPCompatibilityWP
66+
- PHPCompatibility: `9.3.5`
67+
- PHPCompatibilityWP: `2.1.5`
6868
- PSR1
6969
- PSR12
7070
- PSR2
7171
- Squiz
72-
- WordPress
73-
- WordPress-Core
74-
- Wordpress-Docs
75-
- WordPress-Extra
76-
- WordPress-VIP-Go
77-
- WordPressVIPMinimum
72+
- WordPress: `3.1.0`
73+
- WordPress-Core: `3.1.0`
74+
- Wordpress-Docs: `3.1.0`
75+
- WordPress-Extra: `3.1.0`
76+
- WordPress-VIP-Go: `3.0.1`
77+
- WordPressVIPMinimum: `3.0.1`
7878
- Zend
7979
- (Soon) WooCommerce
8080

entrypoint.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ fi
1010
run_phpcs() {
1111
if [ "${INPUT_USE_DEFAULT_CONFIGURATION_FILE}" = true ]; then
1212
/usr/local/bin/phpcs.phar \
13-
--report-checkstyle \
1413
"${INPUT_PHPCS_ARGS:-\.}"
1514
else
1615
/usr/local/bin/phpcs.phar \
17-
--report-checkstyle \
1816
--standard="${INPUT_PHPCS_STANDARD}" \
1917
"${INPUT_PHPCS_ARGS:-\.}"
2018
fi
@@ -56,6 +54,7 @@ if [ "${RESULT}" -ne 0 ]; then
5654
run_phpcbf
5755

5856
# rerun phpcs
57+
echo "Running phpcs again"
5958
run_phpcs
6059

6160
SECOND_PHPCS_RESULT=$?

0 commit comments

Comments
 (0)