Skip to content

Conversation

@zglicz
Copy link
Contributor

@zglicz zglicz commented Dec 30, 2025

Summary

  • S5254 was incorrectly triggering on child text elements when the lang attribute on <html> was set via a JSP Expression Language expression like <html lang="${htmlLanguage}">
  • Added ${...} pattern recognition to the isDynamicValue() method in Helpers.java
  • Added test case to verify JSP EL expressions are treated as valid dynamic lang values

Test plan

  • Added unit test jspElExpressionShouldBeConsideredDynamic() that verifies no issues are raised for <html lang="${htmlLanguage}">
  • All 272 existing tests pass

🤖 Generated with Claude Code

…-1443)

S5254 was incorrectly triggering on child text elements when the lang
attribute on <html> was set via a JSP Expression Language expression
like `<html lang="${htmlLanguage}">`. The isDynamicValue() method now
recognizes `${...}` syntax as a dynamic value.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@hashicorp-vault-sonar-prod
Copy link

hashicorp-vault-sonar-prod bot commented Dec 30, 2025

USER-1443

@sonarqube-next
Copy link

@zglicz zglicz requested a review from vdiez January 2, 2026 09:55
@vdiez vdiez merged commit 41017c5 into master Jan 5, 2026
10 checks passed
@vdiez vdiez deleted the fix/USER-1443-jsp-el-lang-attribute branch January 5, 2026 09:29
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.

2 participants