doc: add openomy#142
Conversation
WalkthroughREADME.md 文件新增了“Contributing”部分,在结尾处添加了一个指向 openomy.app 的贡献排行榜的居中超链接,并嵌入了该仓库过去 24 个月的贡献图表图片。其他内容未作更改。 Changes
Poem
Note ⚡️ AI Code Reviews for VS Code, Cursor, WindsurfCodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #142 +/- ##
==========================================
+ Coverage 79.81% 80.00% +0.18%
==========================================
Files 6 6
Lines 664 670 +6
Branches 165 165
==========================================
+ Hits 530 536 +6
Misses 134 134 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| <a href="https://openomy.app/github/react-component/qrcode" target="_blank" style="display: block; width: 100%;" align="center"> | ||
| <img src="https://www.openomy.app/svg?repo=react-component/qrcode&chart=bubble&latestMonth=24" target="_blank" alt="Contribution Leaderboard" style="display: block; width: 100%;" /> | ||
| </a> |
There was a problem hiding this comment.
🛠️ Refactor suggestion
为 target="_blank" 链接添加 rel 属性并移除无效的 target
<a>标签使用了target="_blank",应添加rel="noopener noreferrer"以防止新窗口能够通过window.opener操控原窗口的风险。<img>标签上的target="_blank"属性在 HTML 中无效,应当移除。
-<a href="https://openomy.app/github/react-component/qrcode" target="_blank" style="display: block; width: 100%;" align="center">
+<a href="https://openomy.app/github/react-component/qrcode" target="_blank" rel="noopener noreferrer" style="display: block; width: 100%;" align="center">
- <img src="https://www.openomy.app/svg?repo=react-component/qrcode&chart=bubble&latestMonth=24" target="_blank" alt="Contribution Leaderboard" style="display: block; width: 100%;" />
+ <img src="https://www.openomy.app/svg?repo=react-component/qrcode&chart=bubble&latestMonth=24" alt="Contribution Leaderboard" style="display: block; width: 100%;" />
</a>📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| <a href="https://openomy.app/github/react-component/qrcode" target="_blank" style="display: block; width: 100%;" align="center"> | |
| <img src="https://www.openomy.app/svg?repo=react-component/qrcode&chart=bubble&latestMonth=24" target="_blank" alt="Contribution Leaderboard" style="display: block; width: 100%;" /> | |
| </a> | |
| <a href="https://openomy.app/github/react-component/qrcode" target="_blank" rel="noopener noreferrer" style="display: block; width: 100%;" align="center"> | |
| <img src="https://www.openomy.app/svg?repo=react-component/qrcode&chart=bubble&latestMonth=24" alt="Contribution Leaderboard" style="display: block; width: 100%;" /> | |
| </a> |
🤖 Prompt for AI Agents
In README.md around lines 77 to 79, the anchor tag with target="_blank" lacks
the rel="noopener noreferrer" attribute, which is needed for security to prevent
the new window from accessing the original window. Add rel="noopener noreferrer"
to the <a> tag. Also, remove the invalid target="_blank" attribute from the
<img> tag since it is not valid on images.
Summary by CodeRabbit