From ed2360ff0b91921f5014d5609c1a4a9363514f03 Mon Sep 17 00:00:00 2001 From: Guilherme Branco Stracini Date: Thu, 9 Jan 2025 01:22:18 +0000 Subject: [PATCH] Delete .githooks/pre-commit --- .githooks/pre-commit | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 .githooks/pre-commit diff --git a/.githooks/pre-commit b/.githooks/pre-commit deleted file mode 100644 index 987d26aa..00000000 --- a/.githooks/pre-commit +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash -LC_ALL=C - -local_branch="$(git rev-parse --abbrev-ref HEAD)" - -valid_branch_regex="^(dependabot|feature|fix|docs|style|refactor|perf|hotfix|test|chore|create)(\/[a-zA-Z0-9._-]+)+$" - -message="There is something wrong with your branch name. Branch names in this project must adhere to this contract: $valid_branch_regex. Your commit will be rejected. You should rename your branch to a valid name and try again." - -if [[ ! $local_branch =~ $valid_branch_regex ]] -then - echo "$message" - exit 1 -fi - -dotnet tool restore && dotnet csharpier . --check