You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests/ai_review_demo_bad_code.py:1-85:该文件作为 AI 审查流水线的故意劣质代码 fixture,建议在文件顶部或 README 明确标注" intentional bad code, do not import/execute",并置于不被 pytest 收集的独立目录(如 tests/fixtures/),避免被他人误复用到真实路径。
总结
该 PR 仅新增一个用于 AI 审查流水线演示的"故意劣质代码"文件,包含多处真实安全与正确性问题(凭证硬编码、命令注入、鉴权绕过、计算逻辑错误等);因文件名不匹配 pytest 收集规则,CI 不会执行它,无线上运行时风险,但若被复用则问题会全部生效,建议按上述方向修复或明确隔离。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.