qlty-during-development
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseQLTY During Development
开发过程中的QLTY检查
Run QLTY checks during code writing to catch issues early.
在编写代码时运行QLTY检查,尽早发现问题。
When to Run
运行时机
Run QLTY after significant code changes:
- After completing a new file
- After substantial edits to existing files
- Before committing changes
在完成重大代码变更后运行QLTY:
- 完成新文件编写后
- 对现有文件进行大量编辑后
- 提交变更前
Commands
命令
bash
undefinedbash
undefinedQuick lint check
快速Lint检查
qlty check
qlty check
Format code
格式化代码
qlty fmt
qlty fmt
Check specific files
检查特定文件
qlty check src/sdk/providers.ts
qlty check src/sdk/providers.ts
Auto-fix issues
自动修复问题
qlty check --fix
undefinedqlty check --fix
undefinedIntegration Pattern
集成流程
After writing code:
- Run on changed files
qlty check - If errors, fix them before proceeding
- Run to ensure formatting
qlty fmt
编写代码后:
- 对已修改文件运行
qlty check - 若存在错误,修复后再继续
- 运行确保代码格式规范
qlty fmt
Don't Run When
无需运行的场景
- Just reading/exploring code
- Making single-line typo fixes
- In the middle of multi-file refactoring (run at end)
- 仅阅读/浏览代码时
- 仅修复单行拼写错误时
- 多文件重构过程中(在重构结束后运行)