From 460740e342488c52bdbea1dde6b69db2b6eccd55 Mon Sep 17 00:00:00 2001 From: Korrrba Date: Thu, 21 Dec 2023 17:22:30 +0100 Subject: [PATCH] chore: add .solhint.json to enforce kebab case exception list --- .github/workflows/enforce-kebab-case.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/enforce-kebab-case.yml b/.github/workflows/enforce-kebab-case.yml index 76d004d6a..71d9cef4c 100644 --- a/.github/workflows/enforce-kebab-case.yml +++ b/.github/workflows/enforce-kebab-case.yml @@ -14,7 +14,7 @@ jobs: non_compliant_files=() while read -r file; do basefile=$(basename "$file") - if echo "$file" | grep -q -E "^\.\/\..*\/|^\.\/[^\/]*$|^\.\/node_modules|^\.\/\.git|^\.\/dist|^\.\/build|^\.\/vendor|^\.\/\.next|\.sql$|\.md$|LICENSE|echidna\.config\.yml|\.env\.example|slither\.config\.json|\.npmrc|global\.d\.ts|_app\.tsx|next-env\.d\.ts|next\.config\.js|docs|\.sol$"; then + if echo "$file" | grep -q -E "^\.\/\..*\/|^\.\/[^\/]*$|^\.\/node_modules|^\.\/\.git|^\.\/dist|^\.\/build|^\.\/vendor|^\.\/\.next|\.sql$|\.md$|LICENSE|echidna\.config\.yml|\.env\.example|slither\.config\.json|\.solhint\.json|\.npmrc|global\.d\.ts|_app\.tsx|next-env\.d\.ts|next\.config\.js|docs|\.sol$"; then continue elif ! echo "$basefile" | grep -q -E "^([a-z0-9]+-)*[a-z0-9]+(\.[a-zA-Z0-9]+)?$|^([a-z0-9]+_)*[a-z0-9]+(\.[a-zA-Z0-9]+)?$"; then non_compliant_files+=("$file")