Python script for generating custom flavors for megalinter #3972
Replies: 6 comments 2 replies
-
@Heyzi Idea is cool. I'll have a look later on this, but I love this feature ! |
Beta Was this translation helpful? Give feedback.
-
@Heyzi When we can read |
Beta Was this translation helpful? Give feedback.
-
The logic of the script is as follows:
|
Beta Was this translation helpful? Give feedback.
-
I've also created a lightweight version of the script called While this approach isn't ideal for production use 🙃, it can be beneficial for users who need quick results. With this lightweight script, users can generate the necessary Docker image much faster... |
Beta Was this translation helpful? Give feedback.
-
I like this "BYOM" (Bring Your Own MegaLinter) pattern :) We probably could industrialize that even more in the future, some tool that would:
It could even be a GitHub Actions :) |
Beta Was this translation helpful? Give feedback.
-
I really like this - I forked it (https://github.com/nwiltsie/megalinter_flavor_generator) and extended it roughly the way @nvuillam laid out. The key additions are:
Springboarding off of @Heyzi's awesome work, that means that I have a custom flavor, defined by the components that I want, kept up-to-date with Megalinter core: https://github.com/nwiltsie/megalinter_flavor_generator/pkgs/container/bl-megalinter |
Beta Was this translation helpful? Give feedback.
-
For my current project, I developed a Python script that enables the creation of a Docker image containing only selected linters. This tool should prove useful for many, as not everyone requires the extensive set of linters typically included.
The script fulfills my main task, I don't plan to significantly improve it further.
You can find it in my GitHub repository: https://github.com/Heyzi/megalinter_flavor_generator
Beta Was this translation helpful? Give feedback.
All reactions