From 11288f98067be2cf9286601722542e6155facc38 Mon Sep 17 00:00:00 2001 From: neverchanje Date: Fri, 12 Oct 2018 23:29:03 +0800 Subject: [PATCH] remove scripts/linux/format.sh --- scripts/linux/format.sh | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100755 scripts/linux/format.sh diff --git a/scripts/linux/format.sh b/scripts/linux/format.sh deleted file mode 100755 index b2f7598dae..0000000000 --- a/scripts/linux/format.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -# This script is to check format of the project, including: -# - not use 'TAB' in codes, instead using spaces. - -find . -name '*.h' \ - -o -name '*.cpp' \ - -o -name '*.proto' \ - -o -name '*.thrift' \ - -o -name '*.annotations' \ - -o -name '*.ini' \ - -o -name '*.sh' \ - -o -name '*.php' \ - -o -name '*.act' \ - | grep -v '^\./\.' \ - | grep -v '^\./builder' \ - | grep -v '^\./scripts/.*/format.sh' \ - | xargs grep -n ' \|<::' - -if [ $? -eq 0 ]; then - echo "ERROR: check format failed: should not contain tab character or '<::'" - exit 1 -else - echo "Check format succeed" - exit 0 -fi -