27 lines
785 B
YAML
27 lines
785 B
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: dart-format
|
|
name: dart format
|
|
entry: dart format
|
|
language: system
|
|
files: \.dart$
|
|
stages: [pre-commit]
|
|
- id: comment-density
|
|
name: comment density
|
|
entry: tool/hooks/comment_density.sh
|
|
language: system
|
|
files: \.(dart|kt|kts|swift|go|rs|java|cpp|cc|h|hpp|gradle|ya?ml)$
|
|
stages: [pre-commit]
|
|
- id: flutter-analyze
|
|
name: flutter analyze (pre-push)
|
|
entry: flutter analyze --no-fatal-infos
|
|
language: system
|
|
pass_filenames: false
|
|
stages: [pre-push]
|
|
- id: commit-msg-format
|
|
name: conventional commit message
|
|
entry: tool/hooks/commit_msg.sh
|
|
language: system
|
|
stages: [commit-msg]
|