summaryrefslogtreecommitdiff
path: root/scripts/lint-docs-metadata.sh
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-04-20 09:09:48 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-04-20 09:09:48 +0000
commit03409cccee9b1cd8104484077338790add355c7d (patch)
tree82b4fbbb96d82f235dd1f76f155cd01a1a52d22a /scripts/lint-docs-metadata.sh
parent93f77228e32908b64ce7b9a3eb69e48efff11a9c (diff)
downloadgitlab-ce-03409cccee9b1cd8104484077338790add355c7d.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/lint-docs-metadata.sh')
-rwxr-xr-xscripts/lint-docs-metadata.sh24
1 files changed, 0 insertions, 24 deletions
diff --git a/scripts/lint-docs-metadata.sh b/scripts/lint-docs-metadata.sh
deleted file mode 100755
index 75e4b9c2418..00000000000
--- a/scripts/lint-docs-metadata.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/usr/bin/env bash
-
-# Used in `lefthook.yml`
-(( counter=0 ))
-
-for file in $1
-do
- if [ "$(head -n1 "$file")" != "---" ]
- then
- printf "%sDocumentation metadata missing in %s%s\n" "$(tput setaf 1)" "$file" "$(tput sgr0)"
- (( counter++ ))
- else
- printf "Documentation metadata found in %s.\n" "$file"
- fi
-done
-
-if [ "$counter" -gt 0 ]
-then
- printf "\n%sDocumentation metadata is missing in changed documentation files.%s For more information, see https://docs.gitlab.com/ee/development/documentation/#metadata.\n" "$(tput setaf 1)" "$(tput sgr0)"
- false
-else
- printf "\n%sDocumentation metadata found in all changed documentation files.%s\n" "$(tput setaf 2)" "$(tput sgr0)"
- true
-fi