Loading...
Loading...
Compare original and translation side by side
srcsrcsrcsrcgit diffsrcsrcsrcgit diffsrcsrcsrcsrcsrc| 扩展名 | 审核内容 |
|---|---|
| Vue2 单文件组件(模板、脚本、样式) |
| JavaScript 文件(代码风格、导入顺序、命名规范、逻辑错误) |
| CSS 样式(BEM 命名、格式、scoped 使用) |
| SCSS 样式(BEM 命名、格式、嵌套规范) |
| Less 样式(BEM 命名、格式、变量使用) |
| Extension | Review Content |
|---|---|
| Vue2 single-file components (template, script, style) |
| JavaScript files (code style, import order, naming conventions, logical errors) |
| CSS styles (BEM naming, formatting, scoped usage) |
| SCSS styles (BEM naming, formatting, nesting rules) |
| Less styles (BEM naming, formatting, variable usage) |
src当前项目不符合 Vue2 前端代码审核的目录要求,本技能仅支持包含 src 目录的前端项目。 并终止。
git diff --name-only HEADgit diff --cached --name-onlysrc当前 src 目录下没有需要审核的改动文件。 并终止。
srcThe current project does not meet the directory requirements for Vue2 frontend code review. This skill only supports frontend projects containing an src directory. And terminate.
git diff --name-only HEADgit diff --cached --name-onlysrcThere are no modified files in the current src directory that need review. And terminate.
| # | 维度 | 参考文件 |
|---|---|---|
| 1 | Vue2 组件规范(脚本结构、元素特性顺序、props、emit、生命周期、命名) | |
| 2 | 代码风格(缩进、引号、分号、尾随逗号、箭头函数、9 组导入顺序) | |
| 3 | 命名规范(API 函数、事件函数、常量、props、组件名、emit 事件) | |
| 4 | 逻辑错误(空指针、数组越界、逻辑判断、方法内部顺序) | |
| 5 | 网络请求规范(async/await + try/catch、统一响应模式、扁平化) | |
| 6 | computed 规范(必须 try/catch、有意义命名) | |
| 7 | 安全漏洞(XSS、敏感信息泄露) | |
| 8 | 最佳实践(调试代码清理、BEM + scoped、未使用变量) | |
| 9 | 绝对禁止项(连续解构、修改子组件数据、修改 data 类型、修改 props) | |
==catchconsole.warn| # | Dimension | Reference File |
|---|---|---|
| 1 | Vue2 Component Specifications (script structure, element attribute order, props, emit, lifecycle, naming) | |
| 2 | Code Style (indentation, quotes, semicolons, trailing commas, arrow functions, 9 groups of import order) | |
| 3 | Naming Conventions (API functions, event functions, constants, props, component names, emit events) | |
| 4 | Logical Errors (null pointers, array out of bounds, logical judgments, internal method order) | |
| 5 | Network Request Specifications (async/await + try/catch, unified response mode, flattening) | |
| 6 | Computed Specifications (must use try/catch, meaningful naming) | |
| 7 | Security Vulnerabilities (XSS, sensitive information leakage) | |
| 8 | Best Practices (cleanup of debugging code, BEM + scoped, unused variables) | |
| 9 | Absolute Prohibitions (continuous destructuring, modifying child component data, modifying data types, modifying props) | |
==console.warncatchyy-frontend-commityy-frontend-commitundefinedundefined| 严重程度 | 数量 |
|---|---|
| 严重 | 0 |
| 中等 | 0 |
| 轻微 | N |
| Severity | Count |
|---|---|
| Critical | 0 |
| Medium | 0 |
| Minor | N |
然后调用 `yy-frontend-commit` 技能。
Then call the `yy-frontend-commit` skill.undefinedundefined| 严重程度 | 数量 |
|---|---|
| 严重 | N |
| 中等 | N |
| 轻微 | N |
| Severity | Count |
|---|---|
| Critical | N |
| Medium | N |
| Minor | N |
不自动调用提交技能,等待用户修复后重新审核。
Do not automatically call the submission skill, wait for the user to fix and then re-review.