make: style now checks PHP and Python for build test

This commit is contained in:
Franco Fichtner 2018-11-04 16:52:13 +01:00
parent 7967c50d58
commit 1e7296497f
2 changed files with 7 additions and 4 deletions

View File

@ -309,7 +309,10 @@ sweep:
STYLEDIRS?= src/etc/inc/plugins.inc.d src/opnsense
style: want-php${CORE_PHP}-pear-PHP_CodeSniffer
style-python: want-py${CORE_PYTHON2}-pycodestyle
@pycodestyle --ignore=E501 ${.CURDIR}/src || true
style-php: want-php${CORE_PHP}-pear-PHP_CodeSniffer
@: > ${WRKDIR}/style.out
.for STYLEDIR in ${STYLEDIRS}
@(phpcs --standard=ruleset.xml ${.CURDIR}/${STYLEDIR} \
@ -327,8 +330,7 @@ style-fix: want-php${CORE_PHP}-pear-PHP_CodeSniffer
phpcbf --standard=ruleset.xml ${.CURDIR}/${STYLEDIR} || true
.endfor
style-python: want-py${CORE_PYTHON2}-pycodestyle
@pycodestyle --ignore=E501 ${.CURDIR}/src || true
style: style-python style-php
license: want-p5-File-Slurp
@${.CURDIR}/Scripts/license > ${.CURDIR}/LICENSE

View File

@ -97,7 +97,8 @@ before issuing a pull request on GitHub.
make style
----------
Run the CodeSniffer PSR2 style checks on the MVC code base.
Run the PSR2 and PEP8 style checks on MVC PHP code and Python,
respectively.
make sweep
----------