**Command:** `quality:check [target]`
Run comprehensive code quality checks including linting, formatting, type checking, and test coverage analysis. Use this before commits to catch issues early and maintain code standards.
/plugin marketplace add nguyenthienthanh/ccpm-team-agents/plugin install nguyenthienthanh-aura-frog-aura-frog-2@nguyenthienthanh/ccpm-team-agentsquality/Command: quality:check [target]
Agent: qa-automation
Version: 1.0.0
Run comprehensive code quality checks including linting, formatting, type checking, and test coverage analysis.
# Check entire project
quality:check
# Check specific directory
quality:check src/components
# Check specific file
quality:check src/utils/helpers.ts
# Skip tests (linting only)
quality:check --skip-tests
# JavaScript/TypeScript
npx eslint . --ext .js,.jsx,.ts,.tsx
# Python
pylint **/*.py
flake8 .
# PHP
./vendor/bin/phpcs
# Go
golangci-lint run
# Prettier (JS/TS/CSS)
npx prettier --check .
# Black (Python)
black --check .
# gofmt (Go)
gofmt -l .
# TypeScript
npx tsc --noEmit
# Python
mypy .
# PHP
./vendor/bin/phpstan analyze
# Jest (JavaScript/TypeScript)
npm test -- --coverage
# pytest (Python)
pytest --cov=. --cov-report=term
# PHPUnit (PHP)
./vendor/bin/phpunit --coverage-text
# Go
go test -cover ./...
# JavaScript/TypeScript (eslint-plugin-complexity)
npx eslint --rule 'complexity: [error, 10]'
# Python (radon)
radon cc . -a
# PHP (phpmd)
./vendor/bin/phpmd . text codesize,controversial,design
# Code Quality Report
**Project:** my-project
**Date:** 2025-11-26
**Branch:** feature/user-auth
---
## Summary
β
**Overall:** PASS
- Linting: β
PASS (0 errors, 0 warnings)
- Formatting: β
PASS (all files formatted)
- Type Checking: β
PASS (no type errors)
- Test Coverage: β οΈ WARNING (78% coverage, target 80%)
- Complexity: β
PASS (avg complexity: 6)
---
## Linting Results
**ESLint:** 0 errors, 0 warnings
Pylint: Score 9.5/10
β All files properly formatted
β No type errors found
Overall Coverage: 78% (β οΈ Below 80% target)
| File | Coverage | Lines | Missing |
|---|---|---|---|
| src/utils/helpers.ts | 95% | 100 | 5 |
| src/services/auth.ts | 65% | 200 | 70 |
| src/components/UserProfile.tsx | 80% | 150 | 30 |
Recommendations:
Average Complexity: 6 (β Target: <10)
High Complexity Functions:
src/utils/validation.ts:validateForm - Complexity: 15 (β οΈ)src/services/api.ts:handleResponse - Complexity: 12 (β οΈ)Recommendations:
Estimated time: 1-2 hours
---
## π¨ Configuration
**ESLint (.eslintrc.json):**
```json
{
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"rules": {
"complexity": ["error", 10],
"max-lines-per-function": ["warn", 50],
"no-console": "warn"
}
}
Prettier (.prettierrc):
{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5"
}
Jest (package.json):
{
"jest": {
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 80,
"lines": 80,
"statements": 80
}
}
}
}
| Code | Meaning |
|---|---|
| 0 | All checks passed |
| 1 | Linting errors found |
| 2 | Formatting issues found |
| 3 | Type errors found |
| 4 | Coverage below threshold |
| 5 | High complexity detected |
Command: quality:check Version: 1.0.0