Skip to content

Commit 3e53bd7

Browse files
committed
Include php-code-fixer and php-code-analyzer
1 parent 688ca96 commit 3e53bd7

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends $TOOL_DEPS $BUI
3737
&& composer global require --no-suggest --prefer-dist -n akeneo/php-coupling-detector edsonmedina/php_testability:dev-master \
3838
&& composer global require --no-suggest --prefer-dist -n vimeo/psalm \
3939
&& composer global require --no-suggest --prefer-dist -n povils/phpmnd \
40+
&& composer global require --no-suggest --prefer-dist -n wapmorgan/php-code-fixer \
41+
&& composer global require --no-suggest --prefer-dist -n wapmorgan/php-code-analyzer \
4042
&& cd $HOME && git clone https://github.com/Qafoo/QualityAnalyzer.git && cd $HOME/QualityAnalyzer && composer install --no-dev --no-suggest --prefer-dist -n \
4143
&& cd $HOME && git clone https://github.com/Halleck45/DesignPatternDetector.git && cd $HOME/DesignPatternDetector && composer install --no-dev --no-suggest --prefer-dist -n \
4244
&& cd $HOME && git clone https://github.com/JakubOnderka/PHP-Parallel-Lint.git && cd $HOME/PHP-Parallel-Lint && composer install --no-dev --no-suggest --prefer-dist -n && box build && mv parallel-lint.phar /usr/local/bin/parallel-lint && chmod +x /usr/local/bin/parallel-lint && cd && rm -rf $HOME/PHP-Parallel-Lint \

Dockerfile-alpine

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ RUN apk add --no-cache --virtual .tool-deps $TOOL_DEPS $LIB_DEPS \
3737
&& composer global require --no-suggest --prefer-dist -n akeneo/php-coupling-detector edsonmedina/php_testability:dev-master \
3838
&& composer global require --no-suggest --prefer-dist -n vimeo/psalm \
3939
&& composer global require --no-suggest --prefer-dist -n povils/phpmnd \
40+
&& composer global require --no-suggest --prefer-dist -n wapmorgan/php-code-fixer \
41+
&& composer global require --no-suggest --prefer-dist -n wapmorgan/php-code-analyzer \
4042
&& cd $HOME && git clone https://github.com/Qafoo/QualityAnalyzer.git && cd $HOME/QualityAnalyzer && composer install --no-dev --no-suggest --prefer-dist -n \
4143
&& cd $HOME && git clone https://github.com/Halleck45/DesignPatternDetector.git && cd $HOME/DesignPatternDetector && composer install --no-dev --no-suggest --prefer-dist -n \
4244
&& cd $HOME && git clone https://github.com/JakubOnderka/PHP-Parallel-Lint.git && cd $HOME/PHP-Parallel-Lint && composer install --no-dev --no-suggest --prefer-dist -n && box build && mv parallel-lint.phar /usr/local/bin/parallel-lint && chmod +x /usr/local/bin/parallel-lint && cd && rm -rf $HOME/PHP-Parallel-Lint \

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Docker image providing static analysis tools for PHP.
99
* composer - [Dependency Manager for PHP](https://getcomposer.org/)
1010
* box - [An application for building and managing Phars](https://box-project.github.io/box2/)
1111
* php-cs-fixer - [PHP Coding Standards Fixer](http://cs.sensiolabs.org/)
12+
* php-code-fixer - [Finds usage of deprecated features](http://wapmorgan.github.io/PhpCodeFixer/)
13+
* php-code-analyzer - [Finds usage of non-built-in extensions](https://github.com/wapmorgan/PhpCodeAnalyzer)
1214
* phpdoc-to-typehint - [Automatically adds type hints and return types based on PHPDocs](https://github.com/dunglas/phpdoc-to-typehint)
1315
* php-formatter - [Custom coding standards fixer](https://github.com/mmoreram/php-formatter)
1416
* phpmetrics - [Static Analysis Tool](http://www.phpmetrics.org/)

list-tools.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Available tools:
55
* composer - Dependency Manager for PHP - https://getcomposer.org/
66
* box - An application for building and managing Phars - https://box-project.github.io/box2/
77
* php-cs-fixer - PHP Coding Standards Fixer - http://cs.sensiolabs.org/
8+
* php-code-fixer - Finds usage of deprecated features - http://wapmorgan.github.io/PhpCodeFixer/
9+
* php-code-analyzer - Finds usage of non-built-in extensions - https://github.com/wapmorgan/PhpCodeAnalyzer
810
* phpdoc-to-typehint - Automatically adds type hints and return types based on PHPDocs - https://github.com/dunglas/phpdoc-to-typehint
911
* php-formatter - Custom coding standards fixer - https://github.com/mmoreram/php-formatter
1012
* phpmetrics - Static Analysis Tool - http://www.phpmetrics.org/

0 commit comments

Comments
 (0)