Skip to content

Commit

Permalink
feat: update hooks (#41)
Browse files Browse the repository at this point in the history
* refactor: remove auto adding author ident
* feat: use expanded reporter for flutter test
  • Loading branch information
aakashhemadri authored Apr 28, 2022
1 parent f369a53 commit 7ce2031
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ if [ -z "$1" ]; then
fi

# This adds the Author Identity like commit -s
SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"

# This example catches duplicate Signed-off-by lines.

Expand Down
4 changes: 2 additions & 2 deletions hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ set -eo pipefail
echo "pre-commit hook: running 'flutter analyze'..."
flutter analyze --fatal-infos --fatal-warnings
echo "pre-commit hook: running 'flutter test'..."
flutter test
echo "pre-commit hook: running 'dart format'..."
flutter test --reporter expanded
echo "pre-commit hook: running 'flutter format'..."
flutter format .

0 comments on commit 7ce2031

Please # to comment.