Skip to content

Commit 6cf8900

Browse files
authored
Fix issue preventing plugins to work with flavors (#2532)
Fixes #2530
1 parent 8bd0fd3 commit 6cf8900

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
1818
[#2455](https://github.com/oxsecurity/megalinter/pull/2455).
1919

2020
- Core
21+
- Fix issue preventing plugins to work with flavors
2122

2223
- Documentation
2324

megalinter/flavor_factory.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ def check_active_linters_match_flavor(active_linters):
8383
flavor_linters = all_flavors[flavor]["linters"]
8484
missing_linters = []
8585
for active_linter in active_linters:
86-
if active_linter.name not in flavor_linters:
86+
if (
87+
active_linter.name not in flavor_linters
88+
) and active_linter.is_plugin is False:
8789
missing_linters += [active_linter.name]
8890
active_linter.is_active = False
8991
# Manage cases where linters are missing in flavor

0 commit comments

Comments
 (0)