Skip to content

Conversation

@stephen-carter-at-sf
Copy link
Contributor

No description provided.

Comment on lines +48 to +51
if (rule.getTags().length > 0) {
body['tags'] = rule.getTags().join(', ');
keys.push('tags');
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there might be value in having a tag-less rule display with tags: none or something like that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll have to ask John and Marcelino if that's what they want. Last I heard, we just wanted to hide the fields if they were empty.

Comment on lines +61 to +64
if (rule.getDescription().length > 0) {
body['description'] = rule.getDescription();
keys.push('description');
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Genuine question: Why is it valid for a rule to have no description? That seems like it should be a required property.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IDK... if people don't put in a description in their custom PMD that might occur.

@stephen-carter-at-sf stephen-carter-at-sf merged commit be7eb26 into dev-5 Nov 27, 2024
12 checks passed
@stephen-carter-at-sf stephen-carter-at-sf deleted the sc/W-17321151 branch November 27, 2024 16: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.

3 participants