Skip to content
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

Add rule S5264(object-alt-content) #4665

Merged
merged 2 commits into from
Apr 17, 2024
Merged

Add rule S5264(object-alt-content) #4665

merged 2 commits into from
Apr 17, 2024

Conversation

vdiez
Copy link
Contributor

@vdiez vdiez commented Apr 17, 2024

if (!hasVisibleChildren(jsxNode.children)) {
context.report({
node,
messageId: 'addContent',
Copy link
Contributor

Choose a reason for hiding this comment

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

whats the benefit of a message in the meta versus using a constant?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

just a different way, easier to reference from RuleTester

@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod bot assigned vdiez and unassigned zglicz Apr 17, 2024
@vdiez vdiez merged commit 61298ca into master Apr 17, 2024
14 checks passed
@vdiez vdiez deleted the add-S5264 branch April 17, 2024 15:07
@vdiez vdiez added this to the 10.14.0 milestone Apr 23, 2024
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