Skip to content

Commit 69b781c

Browse files
committed
add PHPCSExtra
1 parent 28601b3 commit 69b781c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ ENV PHPCS_VERSION=3.6.2
1010
# https://github.com/phpcompatibility/phpcompatibility/releases
1111
# https://github.com/phpcompatibility/phpcompatibilitywp/releases
1212
# https://github.com/PHPCSStandards/PHPCSUtils/releases
13+
# https://github.com/PHPCSStandards/PHPCSExtra/releases
1314
ENV RULESET_WP_CODING_STANDARDS_VERSION=3.1.0 \
1415
RULESET_VIP_CODING_STANDARDS_VERSION=3.0.1 \
1516
RULESET_PHPCS_VARIABLE_ANALYSIS_VERSION=2.11.19 \
1617
RULESET_PHP_COMPATIBILITY_VERSION=9.3.5 \
1718
RULESET_PHP_COMPATIBILITY_WP_VERSION=2.1.5 \
18-
RULESET_PHPCS_UTILS_VERSION=1.0.12
19+
RULESET_PHPCS_UTILS_VERSION=1.0.12 \
20+
RULESET_PHPCS_EXTRA_VERSION=1.2.1
1921

2022
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
2123

@@ -36,6 +38,7 @@ RUN wget -O - -q https://github.com/sirbrillig/phpcs-variable-analysis/archive/v
3638
RUN wget -O - -q https://github.com/PHPCompatibility/PHPCompatibility/archive/${RULESET_PHP_COMPATIBILITY_VERSION}.tar.gz | tar zxv -C /tmp/rulesets --strip-components 1 --wildcards-match-slash --wildcards '*/PHPCompatibility*'
3739
RUN wget -O - -q https://github.com/PHPCompatibility/PHPCompatibilityWP/archive/${RULESET_PHP_COMPATIBILITY_WP_VERSION}.tar.gz | tar zxv -C /tmp/rulesets --strip-components 1 --wildcards-match-slash --wildcards '*/PHPCompatibility*'
3840
RUN wget -O - -q https://github.com/PHPCSStandards/PHPCSUtils/archive/refs/tags/${RULESET_PHPCS_UTILS_VERSION}.tar.gz | tar zxv -C /tmp/rulesets --strip-components 1 --wildcards-match-slash --wildcards '*/PHPCSUtils*'
41+
RUN wget -O - -q https://github.com/PHPCSStandards/PHPCSExtra/archive/refs/tags/${RULESET_PHPCS_EXTRA_VERSION}.tar.gz | tar zxv -C /tmp/rulesets --strip-components 1 --wildcards-match-slash --wildcards '*/Modernize*' --wildcards '*/NormalizedArrays*' --wildcards '*/Universal*'
3942

4043
COPY entrypoint.sh /entrypoint.sh
4144

0 commit comments

Comments
 (0)