Skip to content

Commit

Permalink
Show occurrences of duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
HenningTimm committed Mar 11, 2024
1 parent f26bd45 commit 276e0c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yml2block/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def unique_names(yaml_chunk, tsv_keyword, level=Level.ERROR):
LintViolation(
level,
"unique_names",
f"Name '{name}' occurs {count} times {str(occ) if occ else ''}. Names have to be unique.",
f"Name '{name}' occurs {count} times: {', '.join(occs) if occs else ''}. Names have to be unique.",
)
)
return errors
Expand Down

0 comments on commit 276e0c5

Please sign in to comment.