From ea6562a18fcf2ea6489b39bc9ba1f3d8758ec1be Mon Sep 17 00:00:00 2001 From: Carles Tubio Date: Thu, 14 Jan 2021 03:03:32 +0000 Subject: [PATCH] Fixed pvs analyzer. Free Software Free Society To increase the frequency of commits by ctubio, you can buy-me-a-drink with a small git-tip at: 1GitTipB6sY2YSbkH3BJHepUB7Cjymi9R1 (BTC addr) To force me to write more source documentation, you can buy-me-a-drink with a small doc-tip at: 1KDocsmbhUEh7JgmYjuMH3nDivzSM6dphP (BTC addr) I promise to drink chocolate milk after commit. To request new features or in case this commit breaks something for you, please, create a new github issue with all possible information for me, but never share your API Keys! Signed-off-by: Carles Tubio --- Makefile | 1 + src/lib/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 73157c02b..2e178c884 100644 --- a/Makefile +++ b/Makefile @@ -291,6 +291,7 @@ test-c: ifndef KSRC @$(foreach src,$(SOURCE),$(MAKE) -s $@ KSRC=$(src);) else + @pvs-studio-analyzer credentials PVS-Studio Free FREE-FREE-FREE-FREE > /dev/null 2>&1 @pvs-studio-analyzer analyze -e src/bin/$(KSRC)/$(KSRC).test.h -e src/lib/Krypto.ninja-test.h -e $(KLOCAL)/include --source-file test/static_code_analysis.cxx --cl-params $(KARGS) test/static_code_analysis.cxx && \ (echo $(KSRC) `plog-converter -a GA:1,2 -t tasklist -o report.tasks PVS-Studio.log | tail -n+8 | sed '/Total messages/d'` && cat report.tasks | sed '/Help: The documentation/d' && rm report.tasks) || : @clang-tidy -header-filter=$(realpath src) -checks='modernize-*' test/static_code_analysis.cxx -- $(KARGS) 2> /dev/null diff --git a/src/lib/Makefile b/src/lib/Makefile index fd637351a..1ec26d3fe 100644 --- a/src/lib/Makefile +++ b/src/lib/Makefile @@ -31,7 +31,7 @@ check: # ncurses | $(V_NCUR) | $(shell curl -s https://www.gnu.org/software/ncurses/ | grep "Announcing " | head -n1 | cut -d' ' -f5 | cut -d'<' -f1) # json | $(V_JSON) | $(shell curl -s https://api.github.com/repos/nlohmann/json/tags | grep "name" | head -n1 | cut -d'v' -f2 | cut -d'"' -f1) # catch | $(V_CATCH) | $(shell curl -s https://api.github.com/repos/catchorg/Catch2/tags | grep "name" | head -n1 | cut -d'v' -f2 | cut -d'"' -f1) - # uv | $(V_UV) | $(shell curl -s https://api.github.com/repos/libuv/libuv/tags | grep "name" | head -n1 | cut -d'v' -f2 | cut -d'"' -f1) + # uv | $(V_UV) | $(shell curl -s https://api.github.com/repos/libuv/libuv/tags | grep "name" | head -n1 | cut -d'v' -f2 | cut -d'"' -f1) zlib: test -d $(KBUILD)/zlib-$(V_ZLIB) || ( \