qlty-during-development

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

QLTY 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
undefined
bash
undefined

Quick 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
undefined
qlty check --fix
undefined

Integration Pattern

集成流程

After writing code:
  1. Run
    qlty check
    on changed files
  2. If errors, fix them before proceeding
  3. Run
    qlty fmt
    to ensure formatting
编写代码后:
  1. 对已修改文件运行
    qlty check
  2. 若存在错误,修复后再继续
  3. 运行
    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)
  • 仅阅读/浏览代码时
  • 仅修复单行拼写错误时
  • 多文件重构过程中(在重构结束后运行)