-
-
Notifications
You must be signed in to change notification settings - Fork 293
Description
Describe the bug
Not possible to pass array of values for envs with local runner. According to docs https://megalinter.io/latest/mega-linter-runner/#examples it should be supported.
To Reproduce
Steps to reproduce the behavior:
run local runner (cli):
mega-linter-runner -e 'ENABLE=MARKDOWN,YAML'Behind the hood, the runner splits env to two different docker envs.
docker run -e ENABLE=MARKDOWN -e YAML oxsecurity/megalinter-documentation:v6and megalinter runs only MARKDOWN linter
Expected behavior
A clear and concise description of what you expected to happen.
MARKDOWN and YAML linters shoud run both, and docker command should looks like:
docker run -e ENABLE=MARKDOWN,YAML oxsecurity/megalinter-documentation:v6Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Probably this causes the issue:
| concatRepeatedArrays: true, |
according to lib's doc: https://github.com/gkz/optionator#option-properties
concatRepeatedArrays is an optional boolean or tuple with boolean and options object (defaults to false) - when set to true and an option contains an array value and is repeated, the subsequent values for the flag will be appended rather than overwriting the original value - eg. option g of type [String]: -g a -g b -g c,d will result in ['a','b','c','d']
or lib's default value for aliasSeparator
https://github.com/gkz/optionator/blob/master/README.md#help-style-properties