Skip to content

Conversation

@utarwyn
Copy link
Member

@utarwyn utarwyn commented Mar 17, 2025

Updated the @creedengo/no-multiple-access-dom-element (GCI11) rule to only accept string literals as arguments.
Also added new test cases to verify the updated rule for handling string literals correctly.

We'll be able to add wider support for dynamic arguments in the future, but in the meantime it helps avoid false positives.

Fixes #59

@utarwyn utarwyn added the 🗃️ rule Impacts a rule label Mar 17, 2025
@utarwyn utarwyn requested a review from dedece35 March 17, 2025 22:26
@utarwyn utarwyn self-assigned this Mar 17, 2025
@sonarqubecloud
Copy link

@utarwyn utarwyn merged commit 7bc58b2 into main Mar 18, 2025
7 checks passed
@utarwyn utarwyn deleted the fix-59-multiple-access-dom branch March 18, 2025 18:37
@utarwyn utarwyn added the 💉 bug: confirmed Something isn't working label Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💉 bug: confirmed Something isn't working 🗃️ rule Impacts a rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GCI11] Disallow multiple access of same DOM element - False positives

2 participants