-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RULE REQUEST] Recommend rule friendly name #2027
Comments
@lgolding , how do you imagine that we could validate if the string is in pascal or not? |
@eddynaka One or more repetitions of a capital letter followed by one or more lower-case letters.
And I suppose we should allow digits in the lower-case part, so
|
For the message |
Yes, we need the |
Breaking: I realized that this should be combined with the existing @eddynaka is doing this now. @michaelcfanning FYI |
Rule metadata
SARIF2025
ProvideRuleFriendlyName
note
Full description
Each analysis rule should provide a "friendly name" in its 'name' property, in addition to the stable, opaque identifier in its 'id' property. This helps users see at a glance the purpose of the analysis rule. For uniformity of experience across all tools that produce SARIF, the friendly name should be a single Pascal identifier, for example, 'ProvideRuleFriendlyName'.
User-facing strings:
FriendlyNameMissing
{0}: The rule '{1}' does not provide a "friendly name" in its 'name' property. The friendly name should be a single Pascal identifier, for example, 'ProvideRuleFriendlyName', that helps users see at a glance the purpose of the analysis rule.
FriendlyNameNotAPascalIdentifier
{0}: '{1}' is not a Pascal identifier. For uniformity of experience across all tools that produce SARIF, the friendly name should be a single Pascal identifier, for example, 'ProvideRuleFriendlyName'.
The text was updated successfully, but these errors were encountered: