diff options
| -rw-r--r-- | .gitlint | 9 | ||||
| -rwxr-xr-x[-rw-r--r--] | git_hooks/pre-commit | 0 |
2 files changed, 9 insertions, 0 deletions
diff --git a/.gitlint b/.gitlint new file mode 100644 index 0000000..6e4742d --- /dev/null +++ b/.gitlint | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | [general] | ||
| 2 | regex-style-search=true | ||
| 3 | |||
| 4 | # this ignore all body rules if there is a nostr link rather than just this line | ||
| 5 | # until https://github.com/jorisroovers/gitlint/issues/255#issuecomment-1040868243 | ||
| 6 | # is implemented with [ignore-body-lines] this skips validation of other body line lengths | ||
| 7 | [ignore-by-body] | ||
| 8 | regex = ^(nostr:[^\s]*|https://[^\s]*)$ | ||
| 9 | ignore = body-max-line-length \ No newline at end of file | ||
diff --git a/git_hooks/pre-commit b/git_hooks/pre-commit index 5ec9f01..5ec9f01 100644..100755 --- a/git_hooks/pre-commit +++ b/git_hooks/pre-commit | |||