Quick Start¶
This guide will help you get started with linthis in minutes.
Initialize Configuration (Optional)¶
# Create project configuration file
linthis init
# Create global configuration file
linthis init -g
# Install pre-commit hooks
linthis hook install --type git
Basic Usage¶
Check and Format¶
# Check and format current directory (default behavior)
linthis
# Check and format specific directories
linthis -i src/
linthis --include src/ --include lib/
Check Only¶
# Check only, no formatting
linthis -c
linthis --check-only
Format Only¶
# Format only, no checking
linthis -f
linthis --format-only
Git Staged Files¶
# Check Git staged files (suitable for pre-commit hook)
linthis -s
linthis --staged
Specify Languages¶
# Check specific language
linthis -l python
linthis --lang rust
# Check multiple languages
linthis -l python,rust,cpp
linthis --lang "python,javascript,go"
Exclude Files¶
# Exclude specific patterns
linthis -e "*.test.js" -e "dist/**"
linthis --exclude "target/**" --exclude "node_modules/**"
Output Formats¶
# Human-readable output (default)
linthis
# JSON output
linthis -o json
# GitHub Actions format
linthis -o github-actions
Common Workflows¶
Pre-commit Hook¶
# Install git hook
linthis hook install --type git
# Or use with pre-commit framework
linthis hook install --type pre-commit
CI/CD¶
# In CI, use check-only mode with non-zero exit on errors
linthis --check-only --output github-actions
See It in Action¶
Watch the Quick Start video tutorial for a 20-second demo.
Next Steps¶
- Configuration - Learn about configuration options
- Plugin System - Share configurations across projects
- CLI Reference - Complete command reference