AspireCloud/.pre-commit-config.example.yaml
2025-09-11 15:30:20 -06:00

25 lines
727 B
YAML

# Copy this to .pre-commit-config.yaml and edit as needed
repos:
- repo: local
hooks:
- id: composer-format
name: Format PHP
description: Formats PHP files with `composer run format`
entry: composer run format
language: system
types: [ php ]
- id: composer-lint-mago
name: Lint PHP
description: Checks PHP style with `composer run mago lint`
entry: composer run mago lint
language: system
types: [ php ]
- id: composer-analyze-mago
name: Analyze PHP
description: Analyzes PHP files with `composer run mago analyze`
entry: composer run mago analyze
language: system
types: [ php ]