Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue preventing plugins to work with flavors #2532

Merged
merged 1 commit into from
Apr 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion megalinter/flavor_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down