This guide covers installing and publishing CodeCompass via Homebrew.
Once published to the official tap:
brew tap xeon-zolt/codecompass
brew install codecompass# Install directly from GitHub release
brew install https://github.com/xeon-zolt/codecompass/releases/download/v1.0.0/codecompass-v1.0.0.tar.gz# Clone and build locally
git clone https://github.com/xeon-zolt/codecompass.git
cd codecompass
go build -o codecompass
sudo cp codecompass /usr/local/bin/After installation, CodeCompass will show helpful setup information:
🧭 CodeCompass is now installed!
Basic Usage:
codecompass --help # Show all available options
codecompass --summary # Quick repository overview
codecompass --authors # Author leaderboard
Advanced Features:
codecompass --quality # Comprehensive quality analysis
codecompass --trends # Trend analysis with charts
codecompass --hotspots # Detect high-risk code areas
codecompass --team # Team performance metrics
Configuration:
Sample config: /opt/homebrew/etc/codecompass/codecompass.rc.example
Copy to your repo: cp /opt/homebrew/etc/codecompass/codecompass.rc.example .codecompass.rc
Optional Dependencies:
• Install ESLint for JavaScript analysis: npm install -g eslint
• Install Ruff for Python analysis: pip install ruff
-
Copy sample configuration:
cp /opt/homebrew/etc/codecompass/codecompass.rc.example .codecompass.rc
-
Generate new configuration:
codecompass --generate-config
-
View current configuration:
codecompass --show-config
Test your installation:
# Check version
codecompass --version
# Run basic analysis
codecompass --summary
# Test advanced features
codecompass --quality
codecompass --trends
codecompass --hotspots
codecompass --team- Git: Repository analysis
- Go: Build dependency (handled by Homebrew)
- Node.js: For ESLint JavaScript/TypeScript analysis
brew install node npm install -g eslint
- Python 3: For Ruff Python analysis
brew install python3 pip3 install ruff
# Tag the release
git tag -a v1.0.0 -m "Release v1.0.0 - Advanced Analytics & Charts"
git push origin v1.0.0
# Create release on GitHub with tarball
# GitHub will automatically create:
# https://github.com/xeon-zolt/codecompass/archive/refs/tags/v1.0.0.tar.gzcurl -L https://github.com/xeon-zolt/codecompass/archive/refs/tags/v1.0.0.tar.gz | shasum -a 256Update Formula/codecompass.rb:
url "https://github.com/xeon-zolt/codecompass/archive/refs/tags/v1.0.0.tar.gz"
sha256 "ACTUAL_SHA256_HASH_HERE"# Create tap repository
brew tap-new xeon-zolt/codecompass
# Add formula to tap
cp Formula/codecompass.rb $(brew --repository)/Library/Taps/xeon-zolt/homebrew-codecompass/Formula/# Test formula
brew audit --strict codecompass
brew test codecompass
# Install from tap
brew tap xeon-zolt/codecompass
brew install codecompassFor inclusion in official Homebrew:
# Fork homebrew-core
git clone https://github.com/Homebrew/homebrew-core.git
cd homebrew-core
# Add formula
cp ../codecompass/Formula/codecompass.rb Formula/
git add Formula/codecompass.rb
git commit -m "codecompass: add formula"
# Create pull request
gh pr create --title "codecompass: add formula" --body "Comprehensive code quality analysis tool"# Update Homebrew
brew update
# Upgrade CodeCompass
brew upgrade codecompass- Update version in
Formula/codecompass.rb - Update SHA256 hash
- Test locally
- Push to tap repository
- Users will get updates via
brew upgrade
# Clean and reinstall
brew uninstall codecompass
brew cleanup
brew install codecompass
# Check dependencies
brew deps codecompass
brew missing codecompass# Check installation
which codecompass
codecompass --version
# Verify dependencies
git --version # Should work
node --version # For ESLint support
python3 --version # For Ruff support# Reset configuration
rm .codecompass.rc
codecompass --generate-config
# Check configuration
codecompass --show-config- Issues: GitHub Issues
- Documentation: README.md
- Homebrew Tap: xeon-zolt/homebrew-codecompass
🧭 Navigate Your Code Quality with CodeCompass!