summaryrefslogtreecommitdiff
path: root/pylint/lint/check_parallel.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/lint/check_parallel.py')
-rw-r--r--pylint/lint/check_parallel.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/pylint/lint/check_parallel.py b/pylint/lint/check_parallel.py
index 4f36f7f4a..201f1c878 100644
--- a/pylint/lint/check_parallel.py
+++ b/pylint/lint/check_parallel.py
@@ -71,6 +71,7 @@ def _worker_check_single_file(file_item):
msgs = [_get_new_args(m) for m in _worker_linter.reporter.messages]
return (
_worker_linter.current_name,
+ filepath,
_worker_linter.file_state.base_name,
msgs,
_worker_linter.stats,
@@ -98,11 +99,16 @@ def check_parallel(linter, jobs, files, arguments=None):
all_stats = []
- for module, base_name, messages, stats, msg_status in pool.imap_unordered(
- _worker_check_single_file, files
- ):
+ for (
+ module,
+ file_path,
+ base_name,
+ messages,
+ stats,
+ msg_status,
+ ) in pool.imap_unordered(_worker_check_single_file, files):
linter.file_state.base_name = base_name
- linter.set_current_module(module)
+ linter.set_current_module(module, file_path)
for msg in messages:
msg = Message(*msg)
linter.reporter.handle_message(msg)