Moved v3 code from NginxProxyManager/nginx-proxy-manager-3 to NginxProxyManager/nginx-proxy-manager

This commit is contained in:
Jamie Curnow
2022-05-12 08:47:31 +10:00
parent 4db34f5894
commit 2110ecc382
830 changed files with 38168 additions and 36635 deletions

21
backend/scripts/lint.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
BLUE='\E[1;34m'
YELLOW='\E[1;33m'
RESET='\E[0m'
RESULT=0
# go files: incomplete comment check
INCOMPLETE_COMMENTS=$(find . -iname "*.go*" | grep -v " " | xargs grep --colour -H -n -E "^\s*\/\/\s*[A-Z]\w+ \.{3}" 2>/dev/null)
if [[ -n "$INCOMPLETE_COMMENTS" ]]; then
echo -e "${BLUE} ${YELLOW}WARN: Please fix incomplete exported comments:${RESET}"
echo -e "${RED}${INCOMPLETE_COMMENTS}${RESET}"
echo
# RESULT=1
fi
if ! golangci-lint run -E goimports -E maligned ./...; then
exit 1
fi
exit "$RESULT"

5
backend/scripts/test.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash -e
export RICHGO_FORCE_COLOR=1
richgo test -bench=. -cover -v ./internal/...