vidjil.cpp: --max-clones, limit clones both on stdout and on json output

Closes #3347.
See also #3302.
10 jobs for feature-a/3347-max-clones in 13 minutes and 35 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test Tools
passed #133176
test_tools

00:00:05

failed #132721
test_tools

00:40:29

 
  Test Unit
passed #132722
test_algo_unit

00:03:03

passed #132723
test_tools_unit

00:00:04

 
  Test Functional
failed #132724
test_algo_should

00:10:26

 
  Test Shouldvdj
skipped #132725
test_algo_shouldvdj
 
  Coverage
skipped #132726
algo_coverage
 
  Prepare Release
skipped #132727
allowed to fail manual
prepare_release
 
  Valgrind Unit
skipped #132728
valgrind
algo_valgrind_unit
 
  Valgrind Functional
skipped #132729
valgrind allowed to fail manual
algo_valgrind_functional
 
Name Stage Failure
failed
test_algo_should Test Functional There is an unknown failure, please try again
make[2]: *** [should] Error 1
make[2]: Leaving directory '/home/gitlab-runner/builds/fcaaa996/0/vidjil/vidjil/algo/tests'
Makefile:184: recipe for target 'should' failed
make[1]: *** [should] Error 2
make[1]: Leaving directory '/home/gitlab-runner/builds/fcaaa996/0/vidjil/vidjil/algo'
Makefile:212: recipe for target 'should_coverage' failed
make: *** [should_coverage] Error 2
make: Leaving directory '/home/gitlab-runner/builds/fcaaa996/0/vidjil/vidjil/algo'
ERROR: Job failed: exit status 1