From 558188294b11a7ad70acedf48cab638696b0011d 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 --- EXPRESSIONS | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/EXPRESSIONS b/EXPRESSIONS index f40e5a3..b974026 100644 --- a/EXPRESSIONS +++ b/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