Skip to main content

hardpoint doctor

Check Hardpoint installation and configuration for issues.

Usage

hardpoint doctor

Output

Hardpoint Doctor
================

Installation
  Binary version: 1.0.0
  Binary location: /usr/local/bin/hardpoint

Configuration
  Config file: .hardpoint.yaml
  Scanners: ai, git
  Severity: low
  Excludes: 5 patterns

Git Integration
  Git repository: yes
  Pre-commit hook: installed
  Hook manager: native

Trust System
  Trusted files: 3
  Secret key: present

All checks passed.

Checks Performed

Installation

  • Verifies binary is accessible
  • Shows version information

Configuration

  • Locates and validates config file
  • Shows active scanners
  • Lists exclusion patterns

Git Integration

  • Checks if in a git repository
  • Verifies pre-commit hook status
  • Detects hook manager (native/husky/lefthook)

Trust System

  • Counts trusted files
  • Checks for HMAC secret key

Exit Codes

CodeMeaning
0All checks passed
1One or more checks failed

Troubleshooting

No Config File Found

Configuration
  Config file: not found (using defaults)
Solution:
hardpoint init

Hook Not Installed

Git Integration
  Pre-commit hook: not installed
Solution:
hardpoint hook install

Trust Baseline Missing

Trust System
  Trusted files: 0
Solution:
hardpoint trust --all