mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 17:24:45 +00:00
839 B
839 B
Contributing to Mole
Setup
# Install tools
brew install shfmt shellcheck bats-core
# Install git hooks (optional)
./scripts/install-hooks.sh
Development
# Format code
./scripts/format.sh
# Run tests
./tests/run.sh
# Check quality
shellcheck -S warning mole bin/*.sh lib/*.sh
Git Hooks
Pre-commit hook will auto-format your code. Install with:
./scripts/install-hooks.sh
Skip if needed: git commit --no-verify
Code Style
- Bash 3.2+ compatible
- 4 spaces indent
- Use
set -euo pipefail - Quote all variables
- BSD commands not GNU
Config: .editorconfig and .shellcheckrc
Pull Requests
- Fork and create branch
- Make changes
- Format:
./scripts/format.sh - Test:
./tests/run.sh - Commit and push
- Open PR
CI will check formatting, lint, and run tests.