Skip to content

Suppress WA515 for conditional duplicate labels#66

Merged
nonprofittechy merged 2 commits into
mainfrom
fix-wa515-conditional-duplicates
Jul 7, 2026
Merged

Suppress WA515 for conditional duplicate labels#66
nonprofittechy merged 2 commits into
mainfrom
fix-wa515-conditional-duplicates

Conversation

@nonprofittechy

Copy link
Copy Markdown
Member

Fixes #62

Summary:

  • Only emit WA515 when at least two same-label fields are always visible.
  • Treat show if/hide if/js show if/js hide if as visibility logic for duplicate-label suppression.
  • Add regression tests for always-visible duplicates, contextual Other fields, and hidden duplicates.

Tests:

  • python -m unittest tests.test_yaml_structure

@nonprofittechy nonprofittechy merged commit 42af04b into main Jul 7, 2026
4 checks passed
@nonprofittechy nonprofittechy deleted the fix-wa515-conditional-duplicates branch July 7, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WA515 can fire more often than necessary, especially if the same label is hidden/conditional, or when it's "other" shown in clear context

1 participant