Skip to content

Commit

Permalink
add PHPCSExtra
Browse files Browse the repository at this point in the history
  • Loading branch information
shalior committed Nov 29, 2024
1 parent 28601b3 commit 69b781c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ ENV PHPCS_VERSION=3.6.2
# https://github.com/phpcompatibility/phpcompatibility/releases
# https://github.com/phpcompatibility/phpcompatibilitywp/releases
# https://github.com/PHPCSStandards/PHPCSUtils/releases
# https://github.com/PHPCSStandards/PHPCSExtra/releases
ENV RULESET_WP_CODING_STANDARDS_VERSION=3.1.0 \
RULESET_VIP_CODING_STANDARDS_VERSION=3.0.1 \
RULESET_PHPCS_VARIABLE_ANALYSIS_VERSION=2.11.19 \
RULESET_PHP_COMPATIBILITY_VERSION=9.3.5 \
RULESET_PHP_COMPATIBILITY_WP_VERSION=2.1.5 \
RULESET_PHPCS_UTILS_VERSION=1.0.12
RULESET_PHPCS_UTILS_VERSION=1.0.12 \
RULESET_PHPCS_EXTRA_VERSION=1.2.1

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

Expand All @@ -36,6 +38,7 @@ RUN wget -O - -q https://github.com/sirbrillig/phpcs-variable-analysis/archive/v
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*'
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*'
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*'
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*'

COPY entrypoint.sh /entrypoint.sh

Expand Down

0 comments on commit 69b781c

Please sign in to comment.