Skip to content

Commit

Permalink
[MegaLinter] Apply linters fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bdovaz authored and megalinter-bot committed Jan 10, 2025
1 parent 383af1d commit 05eab3b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions megalinter/MegaLinter.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,16 @@ def run(self):
and len(active_linters) > 1
):
for active_linter in active_linters:
pre_post_factory.run_linter_pre_commands(active_linter.master, active_linter, parallel=False)
pre_post_factory.run_linter_pre_commands(
active_linter.master, active_linter, parallel=False
)

self.process_linters_parallel(active_linters, linters_do_fixes)

for active_linter in active_linters:
pre_post_factory.run_linter_post_commands(active_linter.master, active_linter, parallel=False)
pre_post_factory.run_linter_post_commands(
active_linter.master, active_linter, parallel=False
)
else:
self.process_linters_serial(active_linters)

Expand Down
4 changes: 2 additions & 2 deletions megalinter/pre_post_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def run_descriptor_post_commands(mega_linter, descriptor_id):
# Commands to run before a linter (defined in descriptors)
def run_linter_pre_commands(mega_linter, linter, parallel=None):
if linter.pre_commands is not None:
filtered_commands: list= []
filtered_commands: list = []

if parallel is None:
filtered_commands = linter.pre_commands
Expand All @@ -54,7 +54,7 @@ def run_linter_pre_commands(mega_linter, linter, parallel=None):
# Commands to run before a linter (defined in descriptors)
def run_linter_post_commands(mega_linter, linter, parallel=None):
if linter.post_commands is not None:
filtered_commands: list= []
filtered_commands: list = []

if parallel is None:
filtered_commands = linter.post_commands
Expand Down

0 comments on commit 05eab3b

Please sign in to comment.