2026-05-27 15:16:51 +08:00
|
|
|
repos:
|
|
|
|
|
- repo: local
|
|
|
|
|
hooks:
|
|
|
|
|
- id: dart-format
|
|
|
|
|
name: dart format
|
|
|
|
|
entry: dart format
|
|
|
|
|
language: system
|
|
|
|
|
files: \.dart$
|
2026-09-05 20:09:26 +08:00
|
|
|
stages: [pre-commit]
|
|
|
|
|
- id: comment-density
|
|
|
|
|
name: comment density
|
2026-10-08 03:57:37 +08:00
|
|
|
entry: tool/hooks/comment_density.sh
|
2026-09-05 20:09:26 +08:00
|
|
|
language: system
|
|
|
|
|
files: \.(dart|kt|kts|swift|go|rs|java|cpp|cc|h|hpp|gradle|ya?ml)$
|
|
|
|
|
stages: [pre-commit]
|
2026-05-27 15:16:51 +08:00
|
|
|
- id: flutter-analyze
|
2026-08-05 10:57:40 +08:00
|
|
|
name: flutter analyze (pre-push)
|
2026-05-27 15:16:51 +08:00
|
|
|
entry: flutter analyze --no-fatal-infos
|
|
|
|
|
language: system
|
|
|
|
|
pass_filenames: false
|
2026-08-05 10:57:40 +08:00
|
|
|
stages: [pre-push]
|
2026-09-05 20:09:26 +08:00
|
|
|
- id: commit-msg-format
|
|
|
|
|
name: conventional commit message
|
2026-10-08 03:57:37 +08:00
|
|
|
entry: tool/hooks/commit_msg.sh
|
2026-09-05 20:09:26 +08:00
|
|
|
language: system
|
|
|
|
|
stages: [commit-msg]
|