@@ -10,12 +10,14 @@ ENV PHPCS_VERSION=3.6.2
10
10
# https://github.com/phpcompatibility/phpcompatibility/releases
11
11
# https://github.com/phpcompatibility/phpcompatibilitywp/releases
12
12
# https://github.com/PHPCSStandards/PHPCSUtils/releases
13
+ # https://github.com/PHPCSStandards/PHPCSExtra/releases
13
14
ENV RULESET_WP_CODING_STANDARDS_VERSION=3.1.0 \
14
15
RULESET_VIP_CODING_STANDARDS_VERSION=3.0.1 \
15
16
RULESET_PHPCS_VARIABLE_ANALYSIS_VERSION=2.11.19 \
16
17
RULESET_PHP_COMPATIBILITY_VERSION=9.3.5 \
17
18
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
19
21
20
22
SHELL ["/bin/ash" , "-eo" , "pipefail" , "-c" ]
21
23
@@ -36,6 +38,7 @@ RUN wget -O - -q https://github.com/sirbrillig/phpcs-variable-analysis/archive/v
36
38
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*'
37
39
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*'
38
40
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*'
39
42
40
43
COPY entrypoint.sh /entrypoint.sh
41
44
0 commit comments