Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

results: reset imp flag in the list of important findings only #138

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion make-srpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Tool for plugging static analyzers into the build process, free of mock.

%package -n csmock-common
Summary: Core of csmock (a mock wrapper for Static Analysis tools)
Requires: csdiff > 3.0.4
Requires: csdiff > 3.1.0
Requires: csgcca
Requires: cswrap
Requires: mock
Expand Down
3 changes: 2 additions & 1 deletion py/common/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ def finalize_results(js_file, results, props):
% (js_file, chk_re, csgrep_args)

# finally take all defects that were tagged important by the scanner already
cmd += f" | csgrep --mode=json <(csgrep --mode=json --imp-level=1 '{js_file}') -"
cmd += " | csgrep --mode=json --set-imp-level=0"
cmd += f" <(csgrep --mode=json --imp-level=1 '{js_file}') -"

# write the result into *-imp.js
imp_js_file = re.sub("\\.js", "-imp.js", js_file)
Expand Down