This is an automated email from the ASF dual-hosted git repository. aboda pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git
commit b69562aa6212cad9c0761d01936e016739a0bec6 Author: Marton Szasz <[email protected]> AuthorDate: Mon Feb 8 17:44:45 2021 +0100 MINIFICPP-1484 fix linter when not in a git tree Signed-off-by: Arpad Boda <[email protected]> This closes #997 --- thirdparty/google-styleguide/run_linter.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/thirdparty/google-styleguide/run_linter.sh b/thirdparty/google-styleguide/run_linter.sh index 9f79313..ca0a1ad 100755 --- a/thirdparty/google-styleguide/run_linter.sh +++ b/thirdparty/google-styleguide/run_linter.sh @@ -40,4 +40,5 @@ done HEADERS=`find $INCLUDE_DIRS -name '*.h' | sort | uniq | tr '\n' ' '` SOURCES=`find $SOURCE_DIRS -name '*.cpp' | sort | uniq | tr '\n' ' '` -python ${SCRIPT_DIR}/cpplint.py --linelength=200 ${HEADERS} ${SOURCES} +REPOSITORY="$(realpath --physical "$(dirname "$0")/../..")" +python ${SCRIPT_DIR}/cpplint.py --linelength=200 --repository="$REPOSITORY" ${HEADERS} ${SOURCES}
