mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 19:44:44 +00:00
734 B
734 B
Contributing to Mole
Setup
# Install development tools
brew install shfmt shellcheck bats-core
Development
Run all quality checks before committing:
./scripts/check.sh
This command runs:
- Code formatting check
- ShellCheck linting
- Unit tests
Individual commands:
# Format code
./scripts/format.sh
# Run tests only
./tests/run.sh
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
- Run checks:
./scripts/check.sh - Commit and push
- Open PR
CI will verify formatting, linting, and tests.