Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 1.1 KB

File metadata and controls

48 lines (36 loc) · 1.1 KB

Setting Up Commit Lint

AirSafeNet uses commitlint + Husky to enforce conventional commit messages.

Setup

# From root of repository
npm install

# Husky hooks are auto-installed via prepare script

Commit Format

<type>(scope): short description

Types

Type Description
feat New feature
fix Bug fix
docs Documentation only
style CSS / formatting
refactor Code refactor (no feature/fix)
test Adding / fixing tests
chore Build, config, CI changes
ai AI model / ML changes
perf Performance improvement

Examples

git commit -m "feat(frontend): add compound risk panel"
git commit -m "fix(backend): null reference in activity controller"
git commit -m "docs(readme): update architecture diagram"
git commit -m "ai(model): upgrade ensemble weights calculation"
git commit -m "chore(docker): add healthcheck to AI service"

Bypass (emergency only)

git commit -m "fix: urgent hotfix" --no-verify