mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
make: style now checks PHP and Python for build test
This commit is contained in:
parent
7967c50d58
commit
1e7296497f
8
Makefile
8
Makefile
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user