Skip to content

Commit

Permalink
fix: add slevomat coding standard to phpcs paths
Browse files Browse the repository at this point in the history
Fixes #4
  • Loading branch information
hussainweb committed Jan 31, 2022
1 parent 976f8e6 commit 11c6f1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion 7.3/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ RUN composer require --prefer-dist \
"squizlabs/php_codesniffer:^3.3" \
"drupal/coder:^8.3.7" \
"phpcompatibility/php-compatibility:^9.3" \
"slevomat/coding-standard": "^7.0" \
&& \
git clone https://git.drupalcode.org/sandbox/coltrane-1921926.git drupalsecure && \
git clone https://github.com/klausi/pareviewsh.git && \
Expand All @@ -37,7 +38,7 @@ RUN rm $TOOLBOX_TARGET_DIR/phpcs && \
ln -s $TARGET_DIR/vendor/bin/phpcs $TOOLBOX_TARGET_DIR && \
ln -s $TARGET_DIR/pareviewsh/pareview.sh $TOOLBOX_TARGET_DIR/pareview && \
chmod +x $TOOLBOX_TARGET_DIR/pareview && \
phpcs --config-set installed_paths $TARGET_DIR/vendor/drupal/coder/coder_sniffer/,$TARGET_DIR/vendor/phpcompatibility/php-compatibility,$TARGET_DIR/drupalsecure
phpcs --config-set installed_paths $TARGET_DIR/vendor/drupal/coder/coder_sniffer/,$TARGET_DIR/vendor/phpcompatibility/php-compatibility,$TARGET_DIR/drupalsecure,$TARGET_DIR/vendor/slevomat/coding-standard/

COPY tool-drupal-check.json /tool-drupal-check.json

Expand Down
3 changes: 2 additions & 1 deletion 7.4/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ RUN composer require --prefer-dist \
"squizlabs/php_codesniffer:^3.5" \
"drupal/coder:^8.3.7" \
"phpcompatibility/php-compatibility:^9.3" \
"slevomat/coding-standard": "^7.0" \
&& \
git clone https://git.drupalcode.org/sandbox/coltrane-1921926.git drupalsecure && \
git clone https://github.com/klausi/pareviewsh.git && \
Expand All @@ -37,7 +38,7 @@ RUN rm $TOOLBOX_TARGET_DIR/phpcs && \
ln -s $TARGET_DIR/vendor/bin/phpcs $TOOLBOX_TARGET_DIR && \
ln -s $TARGET_DIR/pareviewsh/pareview.sh $TOOLBOX_TARGET_DIR/pareview && \
chmod +x $TOOLBOX_TARGET_DIR/pareview && \
phpcs --config-set installed_paths $TARGET_DIR/vendor/drupal/coder/coder_sniffer/,$TARGET_DIR/vendor/phpcompatibility/php-compatibility,$TARGET_DIR/drupalsecure
phpcs --config-set installed_paths $TARGET_DIR/vendor/drupal/coder/coder_sniffer/,$TARGET_DIR/vendor/phpcompatibility/php-compatibility,$TARGET_DIR/drupalsecure,$TARGET_DIR/vendor/slevomat/coding-standard/

COPY tool-drupal-check.json /tool-drupal-check.json

Expand Down

0 comments on commit 11c6f1b

Please sign in to comment.