+
Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

feat(rome_js_analyze): useMediaCaption rule #4032

Merged
merged 4 commits into from
Dec 20, 2022

Conversation

kaioduarte
Copy link
Contributor

Summary

Closes #3947.

Test Plan

cargo test -p rome_js_analyze -- use_media_caption

@kaioduarte kaioduarte requested review from leops, ematipico, xunilrj and a team as code owners December 10, 2022 20:42
@netlify
Copy link

netlify bot commented Dec 10, 2022

Deploy Preview for docs-rometools ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 2cf1653
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/63a1e52c2dfc9600094d2553
😎 Deploy Preview https://deploy-preview-4032--docs-rometools.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Comment on lines 2 to 3
<audio {...props} />
<video {...props} />
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure we should match these since props might contains a children property with a track node

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I also have mixed feelings about it, but it seems an unlikely scenario.

Copy link
Contributor

Choose a reason for hiding this comment

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

Throughout our rules, we decided to not trigger the rules if we have spread props. The main reason is that we don't know the information contained in the object that is being spread.

@kaioduarte kaioduarte force-pushed the feat/use-media-caption branch from 21ed6ff to 79a9c4b Compare December 13, 2022 21:14
Copy link
Contributor

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

Use cases that contain {...props} should not trigger the rule. Once fixed these cases, I think we can merge it

@kaioduarte kaioduarte force-pushed the feat/use-media-caption branch 2 times, most recently from 08a5d6f to e2a567c Compare December 20, 2022 16:15
@kaioduarte kaioduarte force-pushed the feat/use-media-caption branch from e2a567c to 2cf1653 Compare December 20, 2022 16:39
@ematipico ematipico merged commit 4cde927 into rome:main Dec 20, 2022
@kaioduarte kaioduarte deleted the feat/use-media-caption branch December 20, 2022 17:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

useMediaCaption
4 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载