From: 오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 Date: Thu, 18 Jul 2019 08:05:02 +0000 (+0900) Subject: Ignore nncc-related directories in format-check (#5686) X-Git-Tag: submit/tizen/20190809.050447~512 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4b3b9a70e7ae0385ced5894a4ec4a9821822104;p=platform%2Fcore%2Fml%2Fnnfw.git Ignore nncc-related directories in format-check (#5686) Ignore nncc-related directories - clang-format style mismatch - nncc don't have format for python yet - Exec file permission in infra/nncc Signed-off-by: Hyeongseok Oh --- diff --git a/infra/nnfw/command/format-check b/infra/nnfw/command/format-check index a5d10a1..6a939ca 100644 --- a/infra/nnfw/command/format-check +++ b/infra/nnfw/command/format-check @@ -49,7 +49,7 @@ check_newline() { check_permission() { # Check all files except script FILES_TO_CHECK=() - for NON_SCRIPT_FILE in $(git ls-files -- . ':!:nnfw' ':!:*.sh' ':!:*.py'); do + for NON_SCRIPT_FILE in $(git ls-files -- . ':!:nnfw' ':!:nncc' ':!:*.sh' ':!:*.py' ':!:compiler/' ':!:infra/nncc/'); do FILES_TO_CHECK+=("${NON_SCRIPT_FILE}") done @@ -68,7 +68,7 @@ check_cpp_files() { DIRECTORIES_NOT_TO_BE_TESTED=$1 # Check c++ files - CPP_FILES_TO_CHECK=$(git ls-files '*.h' '*.cpp' '*.cc' '*.cl' ':!:runtimes/include/NeuralNetworks.h') + CPP_FILES_TO_CHECK=$(git ls-files '*.h' '*.cpp' '*.cc' '*.cl' ':!:runtimes/include/NeuralNetworks.h' ':!:compiler/*' ':!:res/*') ARR=($CPP_FILES_TO_CHECK) for s in ${DIRECTORIES_NOT_TO_BE_TESTED[@]}; do skip=${s#'.'/}/ @@ -88,7 +88,7 @@ check_python_files() { DIRECTORIES_NOT_TO_BE_TESTED=$1 # Check python files - PYTHON_FILES_TO_CHECK=$(git ls-files '*.py') + PYTHON_FILES_TO_CHECK=$(git ls-files '*.py' ':!:compiler/*' ':!:res/*') ARR=($PYTHON_FILES_TO_CHECK) for s in ${DIRECTORIES_NOT_TO_BE_TESTED[@]}; do skip=${s#'.'/}/