mirror of
https://github.com/opnsense/core.git
synced 2026-05-28 04:34:51 -04:00
make: add grepping from #9325 to lint-exec pass
No error, but visibility.
This commit is contained in:
parent
7fe42e78c5
commit
17a3ff34d3
1 changed files with 10 additions and 0 deletions
10
Mk/lint.mk
10
Mk/lint.mk
|
|
@ -116,6 +116,16 @@ lint-exec:
|
|||
(echo "Missing executable permission in ${DIR}"; exit 1)
|
||||
.endif
|
||||
.endfor
|
||||
.for DIR in ${.CURDIR}/src
|
||||
.if exists(${DIR})
|
||||
@git grep -e '[^li][^w>:]exec(' -e '^exec(' -e 'shell_exec(' \
|
||||
-e '[^f]passthru(' -e '^passthru(' -e '[^._a-z]system(' \
|
||||
-e '^system(' ':!*.js' ':!*.py' ':!*/contrib/*' \
|
||||
':!*/OPNsense/Core/Shell.php' ':!*/interfaces.lib.inc' \
|
||||
':!*/inc/certs.inc' ':!*/rc.configure_firmware' \
|
||||
':!*/rc.subr.d/recover' ${DIR}
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
lint-php:
|
||||
.for DIR in ${.CURDIR}/src
|
||||
|
|
|
|||
Loading…
Reference in a new issue