diff --git a/CHANGELOG.md b/CHANGELOG.md index a539283d267..197a283ef3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l [#2455](https://github.com/oxsecurity/megalinter/pull/2455). - Core + - Fix issue preventing plugins to work with flavors - Documentation diff --git a/megalinter/flavor_factory.py b/megalinter/flavor_factory.py index 5e7e901123e..0cae63b084e 100644 --- a/megalinter/flavor_factory.py +++ b/megalinter/flavor_factory.py @@ -83,7 +83,9 @@ def check_active_linters_match_flavor(active_linters): flavor_linters = all_flavors[flavor]["linters"] missing_linters = [] for active_linter in active_linters: - if active_linter.name not in flavor_linters: + if ( + active_linter.name not in flavor_linters + ) and active_linter.is_plugin is False: missing_linters += [active_linter.name] active_linter.is_active = False # Manage cases where linters are missing in flavor