Change default mega-linter.yml in own dockerfile #2643
-
I'm currently building an own mega-linter dockerimage. I want to change the .mega-linter.yml default config in the dockerimage. Where do I have to copy my .mega-linter.yml to achieve this? I already exchanged the other standard linter configs in the /action/lib/.automation/ dir. This does not work for the .mega-linter.yml. Can someone help me here please. Thank you :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
There is no default .mega-linter.yml, as it is defined in the repositories MegaLinter is running on :) Why not just changing the default linter configs just for your repositories ? Or maybe you'd like an option to be able to dynamically import external default configurations ? I'd prefer we find a solution using official MegaLinter image, what is the use case behind what you are trying to achieve ? :) |
Beta Was this translation helpful? Give feedback.
After this PR is merged , you'll be able to include MegaLinter config file in your image then use
ENV MEGALINTER_CONFIG=/path/to/your/.mega-linter.yml
#2649
If it's not confidential, where do you work ?
You can add me on LinkedIn to follow the latest news about MegaLinter :)
https://www.linkedin.com/in/nicolas-vuillamy/