megalinter icon indicating copy to clipboard operation
megalinter copied to clipboard

Allow specifying flavour in `.mega-linter.yml`

Open MRDGH2821 opened this issue 1 month ago • 2 comments

Is your feature request related to a problem? Please describe. I frequently use mega linter locally, it would be nice if in config file itself I specify which flavour I want to use.

Describe the solution you'd like A config like:

USE_FLAVOUR: javascript

Describe alternatives you've considered I can use VSCode's tasks.json, which works when I use npm/node installed in system. It falls apart if I use fnm. Also tasks.json is likely not portable across code editors.

Additional context Another setting can be put to ignore this config option when mega-linter is running in ci.

MRDGH2821 avatar Nov 21 '25 10:11 MRDGH2821

If indeed there's no other way now, it seems like a legit config to have

echoix avatar Nov 21 '25 12:11 echoix

As this is the docker image that reads the yaml configuration, it's not possible to do the contrary :/

What we could eventually do is update mega-linter-runner so it reads .mega-linter.yml file , and if there is MEGALINTER_RUNNER_FLAVOR , use from its internal call to docker run

Would you like to submit a Pull Request implementing such feature ?

nvuillam avatar Nov 23 '25 08:11 nvuillam