We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c0185d commit fa5925bCopy full SHA for fa5925b
vermin/processor.py
@@ -109,7 +109,11 @@ def act():
109
if ver is not None and ver > (0, 0):
110
unique_versions.add(ver)
111
112
- config.format().output_result(proc_res)
+ # For violations mode, only show file names and findings if there are any - no empty ones that
113
+ # do not violate the input targets. This is especially important when scanning many files
114
+ # since it can be hard to spot violations. Otherwise, show as normal.
115
+ if not config.only_show_violations() or len(proc_res.text) > 0:
116
+ config.format().output_result(proc_res)
117
118
try:
119
mins = combine_versions(mins, proc_res.mins, config)
0 commit comments