Loading cpp/CMakeLists.txt +1 −1 Original line number Diff line number Diff line Loading @@ -189,7 +189,7 @@ add_custom_target(lint --exclude_globs ${LINT_EXCLUSIONS_FILE} --source_dir ${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_SOURCE_DIR} ${MILVUS_LINT_QUIET}) # Loading cpp/build-support/lint_exclusions.txt +5 −3 Original line number Diff line number Diff line *cmake-build-debug* *cmake-build-release* *cmake_build* *src/thirdparty* *src/core/thirdparty* *src/grpc* *thirdparty* *easylogging++* *SqliteMetaImpl.cpp *src/grpc* *src/core* *src/wrapper* No newline at end of file cpp/build.sh +18 −13 Original line number Diff line number Diff line Loading @@ -99,21 +99,26 @@ if [[ ${RUN_CPPLINT} == "ON" ]]; then # cpplint check make lint if [ $? -ne 0 ]; then echo "ERROR! cpplint check not pass" exit 1 fi # clang-format check make check-clang-format if [ $? -ne 0 ]; then echo "ERROR! clang-format check failed" exit 1 fi # clang-tidy check make check-clang-tidy if [ $? -ne 0 ]; then echo "ERROR! clang-tidy check failed" echo "ERROR! cpplint check failed" exit 1 fi echo "cpplint check passed!" # # clang-format check # make check-clang-format # if [ $? -ne 0 ]; then # echo "ERROR! clang-format check failed" # exit 1 # fi # echo "clang-format check passed!" # # # clang-tidy check # make check-clang-tidy # if [ $? -ne 0 ]; then # echo "ERROR! clang-tidy check failed" # exit 1 # fi # echo "clang-tidy check passed!" else # compile and build make -j 4 || exit 1 Loading cpp/src/db/meta/MetaFactory.cpp +2 −3 Original line number Diff line number Diff line Loading @@ -40,9 +40,8 @@ MetaFactory::BuildOption(const std::string &path) { if (p == "") { srand(time(nullptr)); std::stringstream ss; uint32_t rd = 0; rand_r(&rd); ss << "/tmp/" << rd; uint32_t seed = 1; ss << "/tmp/" << rand_r(&seed); p = ss.str(); } Loading cpp/unittest/CMakeLists.txt +2 −0 Original line number Diff line number Diff line Loading @@ -118,6 +118,8 @@ set(unittest_libs cublas ) include_directories(${CMAKE_CURRENT_SOURCE_DIR}) message(STATUS "CMAKE_CURRENT_SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}") foreach(dir ${CORE_INCLUDE_DIRS}) include_directories(${dir}) endforeach() Loading Loading
cpp/CMakeLists.txt +1 −1 Original line number Diff line number Diff line Loading @@ -189,7 +189,7 @@ add_custom_target(lint --exclude_globs ${LINT_EXCLUSIONS_FILE} --source_dir ${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_SOURCE_DIR} ${MILVUS_LINT_QUIET}) # Loading
cpp/build-support/lint_exclusions.txt +5 −3 Original line number Diff line number Diff line *cmake-build-debug* *cmake-build-release* *cmake_build* *src/thirdparty* *src/core/thirdparty* *src/grpc* *thirdparty* *easylogging++* *SqliteMetaImpl.cpp *src/grpc* *src/core* *src/wrapper* No newline at end of file
cpp/build.sh +18 −13 Original line number Diff line number Diff line Loading @@ -99,21 +99,26 @@ if [[ ${RUN_CPPLINT} == "ON" ]]; then # cpplint check make lint if [ $? -ne 0 ]; then echo "ERROR! cpplint check not pass" exit 1 fi # clang-format check make check-clang-format if [ $? -ne 0 ]; then echo "ERROR! clang-format check failed" exit 1 fi # clang-tidy check make check-clang-tidy if [ $? -ne 0 ]; then echo "ERROR! clang-tidy check failed" echo "ERROR! cpplint check failed" exit 1 fi echo "cpplint check passed!" # # clang-format check # make check-clang-format # if [ $? -ne 0 ]; then # echo "ERROR! clang-format check failed" # exit 1 # fi # echo "clang-format check passed!" # # # clang-tidy check # make check-clang-tidy # if [ $? -ne 0 ]; then # echo "ERROR! clang-tidy check failed" # exit 1 # fi # echo "clang-tidy check passed!" else # compile and build make -j 4 || exit 1 Loading
cpp/src/db/meta/MetaFactory.cpp +2 −3 Original line number Diff line number Diff line Loading @@ -40,9 +40,8 @@ MetaFactory::BuildOption(const std::string &path) { if (p == "") { srand(time(nullptr)); std::stringstream ss; uint32_t rd = 0; rand_r(&rd); ss << "/tmp/" << rd; uint32_t seed = 1; ss << "/tmp/" << rand_r(&seed); p = ss.str(); } Loading
cpp/unittest/CMakeLists.txt +2 −0 Original line number Diff line number Diff line Loading @@ -118,6 +118,8 @@ set(unittest_libs cublas ) include_directories(${CMAKE_CURRENT_SOURCE_DIR}) message(STATUS "CMAKE_CURRENT_SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}") foreach(dir ${CORE_INCLUDE_DIRS}) include_directories(${dir}) endforeach() Loading