SKILL.md
Guide through adding a new flavor named $ARGUMENTS.
Steps:
- Update the schema enum in
megalinter/descriptors/schemas/megalinter-descriptor.jsonschema.json— add the new flavor name toenum_flavors - Create the flavor directory
flavors/$ARGUMENTS/ - Update descriptors: Add the flavor name to
descriptor_flavorsarrays in the relevantmegalinter/descriptors/*.megalinter-descriptor.ymlfiles for each language/tool this flavor should include - Run
make megalinter-buildto auto-generate:
- flavors/$ARGUMENTS/Dockerfile - flavors/$ARGUMENTS/action.yml - flavors/$ARGUMENTS/flavor.json
- Verify the generated Dockerfile includes exactly the intended linters (check
flavor.jsonfor the linter list) - Update
CHANGELOG.mdin the repository root (not docs/) — add one line under Flavors in the beta section:
``text - Add new <flavor-name> flavor for <what languages/tools it targets> ``
- Branch naming: use
user/add-<flavor-name>-flavor