
Automated Quality Checks
Linting and Testing Integration
Ensure Code Quality
Automatic Linting:
- Built-in linters for popular languages
- Custom linters:
--lint-cmd <cmd>
- Per-language linters:
--lint "language: cmd"
- Enable/disable:
--auto-lint
/--no-auto-lint
Testing Integration:
- Run tests with
/test <command>
- Automatic testing:
--test-cmd <cmd>
and--auto-test
- Aider will try to fix errors automatically
Compiled Languages:
- Use lint commands for recompiling modified files
- Use test commands for rebuilding projects
Example configuration in .aider.conf.yml
:
lint-cmd: ["python: flake8", "js: eslint"]
test-cmd: "pytest"
auto-test: true
This ensures all AI-generated code meets your quality standards before being committed.