Files

122 lines
2.7 KiB
YAML

# Local AI Commit Reviewer Configuration
# This file contains default settings for the aicr CLI tool
# LLM Configuration
llm:
# Default LLM endpoint (Ollama default)
endpoint: "http://localhost:11434"
# Default model to use for reviews
model: "codellama"
# Timeout for LLM requests in seconds
timeout: 120
# Maximum number of tokens to generate
max_tokens: 2048
# Temperature for generation (0.0-1.0)
temperature: 0.3
# Review Settings
review:
# Default strictness level: permissive, balanced, strict
strictness: "balanced"
# Maximum number of issues to report per file
max_issues_per_file: 20
# Enable syntax highlighting
syntax_highlighting: true
# Show line numbers in output
show_line_numbers: true
# Language-specific configurations
languages:
python:
enabled: true
review_rules:
- "pep8"
- "type-hints"
- "docstrings"
max_line_length: 100
javascript:
enabled: true
review_rules:
- "airbnb"
max_line_length: 100
typescript:
enabled: true
review_rules:
- "airbnb"
max_line_length: 100
go:
enabled: true
review_rules:
- "golint"
- "staticcheck"
rust:
enabled: true
review_rules:
- "clippy"
java:
enabled: true
review_rules:
- "google-java"
c:
enabled: true
review_rules:
- "cppcheck"
cpp:
enabled: true
review_rules:
- "cppcheck"
# Strictness Profiles
strictness_profiles:
permissive:
description: "Focus on critical issues only"
check_security: true
check_bugs: true
check_style: false
check_performance: false
check_documentation: false
min_severity: "warning"
balanced:
description: "Balanced review of common issues"
check_security: true
check_bugs: true
check_style: true
check_performance: false
check_documentation: false
min_severity: "info"
strict:
description: "Comprehensive review of all issues"
check_security: true
check_bugs: true
check_style: true
check_performance: true
check_documentation: true
min_severity: "info"
# Git Hook Configuration
hooks:
# Enable pre-commit hook by default
enabled: true
# Exit with error code on critical issues
fail_on_critical: true
# Allow bypassing the hook with --no-verify
allow_bypass: true
# Output Configuration
output:
# Default output format: terminal, json, markdown
format: "terminal"
# Colors theme: dark, light, auto
theme: "auto"
# Show suggestions for fixes
show_suggestions: true
# Logging Configuration
logging:
# Log level: debug, info, warning, error
level: "info"
# Log file path (empty for stdout only)
log_file: ""
# Enable structured logging
structured: false