From bf7280d8b2e98b4a6d71c1a4678e8899e62ba953 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Wed, 14 Dec 2022 15:43:29 +0100 Subject: rules: Report fieldname of overlapping artifacts/runfiles --- rules/EXPRESSIONS | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rules') diff --git a/rules/EXPRESSIONS b/rules/EXPRESSIONS index f40e5a3a..b974026e 100644 --- a/rules/EXPRESSIONS +++ b/rules/EXPRESSIONS @@ -27,7 +27,8 @@ , "imports": {"artifacts_list": "field_artifacts_list"} , "expression": { "type": "disjoint_map_union" - , "msg": "artifacts must not overlap" + , "msg": + ["artifacts", {"type": "var", "name": "fieldname"}, "must not overlap"] , "$1": {"type": "CALL_EXPRESSION", "name": "artifacts_list"} } } @@ -60,7 +61,8 @@ , "imports": {"runfiles_list": "field_runfiles_list"} , "expression": { "type": "disjoint_map_union" - , "msg": "runfiles must not overlap" + , "msg": + ["runfiles", {"type": "var", "name": "fieldname"}, "must not overlap"] , "$1": {"type": "CALL_EXPRESSION", "name": "runfiles_list"} } } -- cgit v1.2.3