Control name's/id's appearing in pages presented to the user should not be named with business keywords
like SSN, AccountId, password, userId etc, this can lead a hacker to understand what kind of values the control
holds.
Yeah thats correct, parameterizing this rule is a overhead, may be this can be used as needed by the application, this rule is supposed to be modified according the application and business domain its run. I am not sure whether its a good concept to go for a modification and use it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
PMD JSP Rule: BusinessKeywordsInControlName
This rule is too specific, containing random business specific hard-coded values.
Further, after generalizing, the rule boils down to:
//AttributeValue[contains(string:upper-case(@Image), "YOUR_MAGIC_STRING_HERE")]
Perhaps "AvoidMagicStringsInAttributeValuesRules", in which the user customizes the Rule to specify their list of magic strings.
I'm hesitant however, is the Rule is so simple, and requires customization to even use. One can just as easily write the Rule directly.
Yeah thats correct, parameterizing this rule is a overhead, may be this can be used as needed by the application, this rule is supposed to be modified according the application and business domain its run. I am not sure whether its a good concept to go for a modification and use it.
As is this will not be accepted. If you wish to generalize it per my suggestions, I might reconsider.