mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-29 12:10:56 -05:00
fix arrays and add tests
This commit is contained in:
parent
5b2afbd9d1
commit
84926171fb
3 changed files with 11 additions and 7 deletions
|
@ -230,7 +230,9 @@ function BuildFileList() {
|
||||||
################################
|
################################
|
||||||
# Append the file to the array #
|
# Append the file to the array #
|
||||||
################################
|
################################
|
||||||
FILE_ARRAY_PHP+=("${FILE}")
|
FILE_ARRAY_PHP_BUILTIN+=("${FILE}")
|
||||||
|
FILE_ARRAY_PHP_PHPCS+=("${FILE}")
|
||||||
|
FILE_ARRAY_PHP_PSALM+=("${FILE}")
|
||||||
FILE_ARRAY_PHP_PHPSTAN+=("${FILE}")
|
FILE_ARRAY_PHP_PHPSTAN+=("${FILE}")
|
||||||
##########################################################
|
##########################################################
|
||||||
# Set the READ_ONLY_CHANGE_FLAG since this could be exec #
|
# Set the READ_ONLY_CHANGE_FLAG since this could be exec #
|
||||||
|
|
|
@ -8,12 +8,12 @@ cat << EOF
|
||||||
@///////@///////////////@@@@ ( @,
|
@///////@///////////////@@@@ ( @,
|
||||||
@/(&/@//////////////////// @
|
@/(&/@//////////////////// @
|
||||||
@////////////////////////@@ @
|
@////////////////////////@@ @
|
||||||
@%////////(//////////%/////&@ @@ *,@
|
@%////////(//////////%/////&@ @@ *,@ ______________
|
||||||
@@@@@/@/#/////(&////////////////// .@
|
@@@@@/@/#/////(&////////////////// .@ / \
|
||||||
*@@@@@. .%///(//@//////////////////&. .@@, @%
|
*@@@@@. .%///(//@//////////////////&. .@@, @% / Don't mind me \
|
||||||
@@% .&@&&/@.@//&/////(////////// @@@@@@@@@ .. &@
|
@@% .&@&&/@.@//&/////(////////// @@@@@@@@@ .. &@ / I'm just looking \
|
||||||
@@% @@@@@ @&/////////////////# @/ V @@/ ,@@@ @
|
@@% @@@@@ @&/////////////////# @/ V @@/ ,@@@ @ < for some trash... |
|
||||||
@@@% @@@@ .%@@@@//////#@ @ @@ @ .,.
|
@@@% @@@@ .%@@@@//////#@ @ @@ @ .,. \__________________/
|
||||||
@@@/@( (@@@@% @/\ %
|
@@@/@( (@@@@% @/\ %
|
||||||
@@@@( . .@@/\ #
|
@@@@( . .@@/\ #
|
||||||
@ %@%
|
@ %@%
|
||||||
|
|
|
@ -590,6 +590,8 @@ function RunTestCases() {
|
||||||
TestCodebase "MARKDOWN" "markdownlint" "markdownlint -c ${MARKDOWN_LINTER_RULES}" ".*\.\(md\)\$" "markdown"
|
TestCodebase "MARKDOWN" "markdownlint" "markdownlint -c ${MARKDOWN_LINTER_RULES}" ".*\.\(md\)\$" "markdown"
|
||||||
TestCodebase "PERL" "perl" "perl -Mstrict -cw" ".*\.\(pl\)\$" "perl"
|
TestCodebase "PERL" "perl" "perl -Mstrict -cw" ".*\.\(pl\)\$" "perl"
|
||||||
TestCodebase "PHP" "php" "php -l" ".*\.\(php\)\$" "php"
|
TestCodebase "PHP" "php" "php -l" ".*\.\(php\)\$" "php"
|
||||||
|
TestCodebase "PHP_PHPCS" "phpcs" "phpcs --standard=${PHP_PHPCS_LINTER_RULES}" ".*\.\(php\)\$" "php"
|
||||||
|
TestCodebase "PHP_PSALM" "psalm" "psalm --config=${PHP_PSALM_LINTER_RULES}" ".*\.\(php\)\$" "php"
|
||||||
TestCodebase "PHP_PHPSTAN" "phpstan" "phpstan analyse --no-progress --no-ansi -c ${PHPSTAN_LINTER_RULES}" ".*\.\(php\)\$" "php"
|
TestCodebase "PHP_PHPSTAN" "phpstan" "phpstan analyse --no-progress --no-ansi -c ${PHPSTAN_LINTER_RULES}" ".*\.\(php\)\$" "php"
|
||||||
TestCodebase "OPENAPI" "spectral" "spectral lint -r ${OPENAPI_LINTER_RULES}" ".*\.\(ymlopenapi\|jsonopenapi\)\$" "openapi"
|
TestCodebase "OPENAPI" "spectral" "spectral lint -r ${OPENAPI_LINTER_RULES}" ".*\.\(ymlopenapi\|jsonopenapi\)\$" "openapi"
|
||||||
TestCodebase "POWERSHELL" "pwsh" "Invoke-ScriptAnalyzer -EnableExit -Settings ${POWERSHELL_LINTER_RULES} -Path" ".*\.\(ps1\|psm1\|psd1\|ps1xml\|pssc\|psrc\|cdxml\)\$" "powershell"
|
TestCodebase "POWERSHELL" "pwsh" "Invoke-ScriptAnalyzer -EnableExit -Settings ${POWERSHELL_LINTER_RULES} -Path" ".*\.\(ps1\|psm1\|psd1\|ps1xml\|pssc\|psrc\|cdxml\)\$" "powershell"
|
||||||
|
|
Loading…
Reference in a new issue