diff --git a/analyzer/requirements.txt b/analyzer/requirements.txt index b926af17d2..a9874f3be4 100644 --- a/analyzer/requirements.txt +++ b/analyzer/requirements.txt @@ -16,3 +16,4 @@ setuptools~=80.0 types-setuptools~=80.0 semver~=3.0 argcomplete~=3.0 +prettytable~=3.0 diff --git a/analyzer/tests/functional/analyze/test_analyze.py b/analyzer/tests/functional/analyze/test_analyze.py index b192df50c2..6e8c59474f 100644 --- a/analyzer/tests/functional/analyze/test_analyze.py +++ b/analyzer/tests/functional/analyze/test_analyze.py @@ -536,7 +536,7 @@ def test_reproducer_postprocesses_failures(self): # The key bug: with --generate-reproducer, postprocessing was skipped # so parse would show 0 processed files. After the fix, it should # show 1 processed file. - self.assertIn("Number of processed analyzer result files | 1", out) + self.assertIn("Number of processed analyzer result files │ 1", out) shutil.rmtree(reproducer_dir) diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/all_checkers_off_except_return_stack_address.output b/analyzer/tests/functional/analyze_and_parse/test_files/all_checkers_off_except_return_stack_address.output index 36eca3fd28..6c4524d7f0 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/all_checkers_off_except_return_stack_address.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/all_checkers_off_except_return_stack_address.output @@ -26,34 +26,35 @@ Found 1 defect(s) in all_checkers_off_except_return_stack_address.c ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -MEDIUM | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ MEDIUM │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- --------------------------------------------------------------------- -Checker name | Severity | Number of reports --------------------------------------------------------------------- -clang-diagnostic-return-stack-address | MEDIUM | 1 --------------------------------------------------------------------- +┌───────────────────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├───────────────────────────────────────┼──────────┼───────────────────┤ +│ clang-diagnostic-return-stack-address │ MEDIUM │ 1 │ +└───────────────────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------------------------------------------- -File name | Number of reports ------------------------------------------------------------------- -all_checkers_off_except_return_stack_address.c | 1 ------------------------------------------------------------------- +┌────────────────────────────────────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├────────────────────────────────────────────────┼───────────────────┤ +│ all_checkers_off_except_return_stack_address.c │ 1 │ +└────────────────────────────────────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/compiler_error.output b/analyzer/tests/functional/analyze_and_parse/test_files/compiler_error.output index 6d6f179a1e..f01225f618 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/compiler_error.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/compiler_error.output @@ -25,34 +25,35 @@ Found 1 defect(s) in compiler_error.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -CRITICAL | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ CRITICAL │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ------------------------------------------------------ -Checker name | Severity | Number of reports ------------------------------------------------------ -clang-diagnostic-error | CRITICAL | 1 ------------------------------------------------------ +┌────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├────────────────────────┼──────────┼───────────────────┤ +│ clang-diagnostic-error │ CRITICAL │ 1 │ +└────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- --------------------------------------- -File name | Number of reports --------------------------------------- -compiler_error.cpp | 1 --------------------------------------- +┌────────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├────────────────────┼───────────────────┤ +│ compiler_error.cpp │ 1 │ +└────────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/compiler_error_disabled.output b/analyzer/tests/functional/analyze_and_parse/test_files/compiler_error_disabled.output index b70e633430..15f77c8c70 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/compiler_error_disabled.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/compiler_error_disabled.output @@ -19,10 +19,11 @@ NORMAL#CodeChecker parse $OUTPUT$ [] - ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 0 -Number of analyzer reports | 0 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 0 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 0 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_default_checker_priority.output b/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_default_checker_priority.output index 44fd937895..5ceb726755 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_default_checker_priority.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_default_checker_priority.output @@ -26,34 +26,35 @@ Found 1 defect(s) in compiler_warning.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -MEDIUM | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ MEDIUM │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ---------------------------------------------------------------- -Checker name | Severity | Number of reports ---------------------------------------------------------------- -clang-diagnostic-unused-variable | MEDIUM | 1 ---------------------------------------------------------------- +┌──────────────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├──────────────────────────────────┼──────────┼───────────────────┤ +│ clang-diagnostic-unused-variable │ MEDIUM │ 1 │ +└──────────────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ----------------------------------------- -File name | Number of reports ----------------------------------------- -compiler_warning.cpp | 1 ----------------------------------------- +┌──────────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├──────────────────────┼───────────────────┤ +│ compiler_warning.cpp │ 1 │ +└──────────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_simple.output b/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_simple.output index 28e11ace8e..3512ed231a 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_simple.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_simple.output @@ -26,34 +26,35 @@ Found 1 defect(s) in compiler_warning.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -MEDIUM | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ MEDIUM │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ---------------------------------------------------------------- -Checker name | Severity | Number of reports ---------------------------------------------------------------- -clang-diagnostic-unused-variable | MEDIUM | 1 ---------------------------------------------------------------- +┌──────────────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├──────────────────────────────────┼──────────┼───────────────────┤ +│ clang-diagnostic-unused-variable │ MEDIUM │ 1 │ +└──────────────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ----------------------------------------- -File name | Number of reports ----------------------------------------- -compiler_warning.cpp | 1 ----------------------------------------- +┌──────────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├──────────────────────┼───────────────────┤ +│ compiler_warning.cpp │ 1 │ +└──────────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_wno_group.output b/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_wno_group.output index c99c20144f..e9a95087bd 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_wno_group.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_wno_group.output @@ -26,34 +26,35 @@ Found 1 defect(s) in compiler_warning.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -MEDIUM | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ MEDIUM │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ---------------------------------------------------------------- -Checker name | Severity | Number of reports ---------------------------------------------------------------- -clang-diagnostic-unused-variable | MEDIUM | 1 ---------------------------------------------------------------- +┌──────────────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├──────────────────────────────────┼──────────┼───────────────────┤ +│ clang-diagnostic-unused-variable │ MEDIUM │ 1 │ +└──────────────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ----------------------------------------- -File name | Number of reports ----------------------------------------- -compiler_warning.cpp | 1 ----------------------------------------- +┌──────────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├──────────────────────┼───────────────────┤ +│ compiler_warning.cpp │ 1 │ +└──────────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_wno_simple1.output b/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_wno_simple1.output index 9a0c8a59ed..149728bc79 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_wno_simple1.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_wno_simple1.output @@ -26,34 +26,35 @@ Found 1 defect(s) in compiler_warning.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -MEDIUM | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ MEDIUM │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ---------------------------------------------------------------- -Checker name | Severity | Number of reports ---------------------------------------------------------------- -clang-diagnostic-unused-variable | MEDIUM | 1 ---------------------------------------------------------------- +┌──────────────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├──────────────────────────────────┼──────────┼───────────────────┤ +│ clang-diagnostic-unused-variable │ MEDIUM │ 1 │ +└──────────────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ----------------------------------------- -File name | Number of reports ----------------------------------------- -compiler_warning.cpp | 1 ----------------------------------------- +┌──────────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├──────────────────────┼───────────────────┤ +│ compiler_warning.cpp │ 1 │ +└──────────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_wno_simple2.output b/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_wno_simple2.output index 762482f113..5a27e2373d 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_wno_simple2.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_wno_simple2.output @@ -21,10 +21,11 @@ CHECK#CodeChecker check --build "make compiler_warning_unused" --output $OUTPUT$ Found no defects in compiler_warning.cpp ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 0 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 0 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_wunused.output b/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_wunused.output index 762482f113..5a27e2373d 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_wunused.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/compiler_warning_wunused.output @@ -21,10 +21,11 @@ CHECK#CodeChecker check --build "make compiler_warning_unused" --output $OUTPUT$ Found no defects in compiler_warning.cpp ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 0 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 0 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/context_free_hash_clang_tidy.output b/analyzer/tests/functional/analyze_and_parse/test_files/context_free_hash_clang_tidy.output index c878bc6be0..5b8cea9aa4 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/context_free_hash_clang_tidy.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/context_free_hash_clang_tidy.output @@ -43,34 +43,35 @@ Found 3 defect(s) in context_hash.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 3 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 3 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ---------------------------------------------------------- -Checker name | Severity | Number of reports ---------------------------------------------------------- -bugprone-sizeof-expression | HIGH | 3 ---------------------------------------------------------- +┌────────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├────────────────────────────┼──────────┼───────────────────┤ +│ bugprone-sizeof-expression │ HIGH │ 3 │ +└────────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------------- -File name | Number of reports ------------------------------------- -context_hash.cpp | 3 ------------------------------------- +┌──────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├──────────────────┼───────────────────┤ +│ context_hash.cpp │ 3 │ +└──────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 3 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 3 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/context_free_hash_clangsa.output b/analyzer/tests/functional/analyze_and_parse/test_files/context_free_hash_clangsa.output index 766005270d..c5d626cc0e 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/context_free_hash_clangsa.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/context_free_hash_clangsa.output @@ -43,34 +43,35 @@ Found 3 defect(s) in context_hash.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -LOW | 3 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ LOW │ 3 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- --------------------------------------------------- -Checker name | Severity | Number of reports --------------------------------------------------- -deadcode.DeadStores | LOW | 3 --------------------------------------------------- +┌─────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────────┼──────────┼───────────────────┤ +│ deadcode.DeadStores │ LOW │ 3 │ +└─────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------------- -File name | Number of reports ------------------------------------- -context_hash.cpp | 3 ------------------------------------- +┌──────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├──────────────────┼───────────────────┤ +│ context_hash.cpp │ 3 │ +└──────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 3 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 3 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/context_free_hash_v2_clang_tidy.output b/analyzer/tests/functional/analyze_and_parse/test_files/context_free_hash_v2_clang_tidy.output index b51d720414..1df8f2e657 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/context_free_hash_v2_clang_tidy.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/context_free_hash_v2_clang_tidy.output @@ -43,34 +43,35 @@ Found 3 defect(s) in context_hash.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 3 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 3 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ---------------------------------------------------------- -Checker name | Severity | Number of reports ---------------------------------------------------------- -bugprone-sizeof-expression | HIGH | 3 ---------------------------------------------------------- +┌────────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├────────────────────────────┼──────────┼───────────────────┤ +│ bugprone-sizeof-expression │ HIGH │ 3 │ +└────────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------------- -File name | Number of reports ------------------------------------- -context_hash.cpp | 3 ------------------------------------- +┌──────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├──────────────────┼───────────────────┤ +│ context_hash.cpp │ 3 │ +└──────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 3 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 3 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/context_free_hash_v2_clangsa.output b/analyzer/tests/functional/analyze_and_parse/test_files/context_free_hash_v2_clangsa.output index 3e790d278c..f8382c140e 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/context_free_hash_v2_clangsa.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/context_free_hash_v2_clangsa.output @@ -43,34 +43,35 @@ Found 3 defect(s) in context_hash.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -LOW | 3 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ LOW │ 3 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- --------------------------------------------------- -Checker name | Severity | Number of reports --------------------------------------------------- -deadcode.DeadStores | LOW | 3 --------------------------------------------------- +┌─────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────────┼──────────┼───────────────────┤ +│ deadcode.DeadStores │ LOW │ 3 │ +└─────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------------- -File name | Number of reports ------------------------------------- -context_hash.cpp | 3 ------------------------------------- +┌──────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├──────────────────┼───────────────────┤ +│ context_hash.cpp │ 3 │ +└──────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 3 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 3 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/context_sensitive_hash_clang.output b/analyzer/tests/functional/analyze_and_parse/test_files/context_sensitive_hash_clang.output index 97888dadf0..2028df8230 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/context_sensitive_hash_clang.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/context_sensitive_hash_clang.output @@ -43,34 +43,35 @@ Found 3 defect(s) in context_hash.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -LOW | 3 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ LOW │ 3 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- --------------------------------------------------- -Checker name | Severity | Number of reports --------------------------------------------------- -deadcode.DeadStores | LOW | 3 --------------------------------------------------- +┌─────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────────┼──────────┼───────────────────┤ +│ deadcode.DeadStores │ LOW │ 3 │ +└─────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------------- -File name | Number of reports ------------------------------------- -context_hash.cpp | 3 ------------------------------------- +┌──────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├──────────────────┼───────────────────┤ +│ context_hash.cpp │ 3 │ +└──────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 3 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 3 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/context_sensitive_hash_clang_tidy.output b/analyzer/tests/functional/analyze_and_parse/test_files/context_sensitive_hash_clang_tidy.output index e7cb4f4a29..d3b6e0a635 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/context_sensitive_hash_clang_tidy.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/context_sensitive_hash_clang_tidy.output @@ -43,34 +43,35 @@ Found 3 defect(s) in context_hash.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 3 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 3 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ---------------------------------------------------------- -Checker name | Severity | Number of reports ---------------------------------------------------------- -bugprone-sizeof-expression | HIGH | 3 ---------------------------------------------------------- +┌────────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├────────────────────────────┼──────────┼───────────────────┤ +│ bugprone-sizeof-expression │ HIGH │ 3 │ +└────────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------------- -File name | Number of reports ------------------------------------- -context_hash.cpp | 3 ------------------------------------- +┌──────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├──────────────────┼───────────────────┤ +│ context_hash.cpp │ 3 │ +└──────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 3 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 3 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_args.noforward.output b/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_args.noforward.output index 17678998e3..9973559ca3 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_args.noforward.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_args.noforward.output @@ -26,34 +26,35 @@ Found 1 defect(s) in cppcheck_args.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ---------------------------------------------------- -Checker name | Severity | Number of reports ---------------------------------------------------- -cppcheck-nullPointer | HIGH | 1 ---------------------------------------------------- +┌──────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├──────────────────────┼──────────┼───────────────────┤ +│ cppcheck-nullPointer │ HIGH │ 1 │ +└──────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- -------------------------------------- -File name | Number of reports -------------------------------------- -cppcheck_args.cpp | 1 -------------------------------------- +┌───────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├───────────────────┼───────────────────┤ +│ cppcheck_args.cpp │ 1 │ +└───────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_args.output b/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_args.output index 7766ff3423..cd337dbd7a 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_args.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_args.output @@ -21,10 +21,11 @@ CHECK#CodeChecker check --build "make cppcheck_undef_args" --output $OUTPUT$ --q Found no defects in cppcheck_args.cpp ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 0 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 0 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_include.output b/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_include.output index 7e5dde40ed..535884a7d4 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_include.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_include.output @@ -26,34 +26,35 @@ Found 1 defect(s) in cppcheck_include.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ---------------------------------------------------- -Checker name | Severity | Number of reports ---------------------------------------------------- -cppcheck-nullPointer | HIGH | 1 ---------------------------------------------------- +┌──────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├──────────────────────┼──────────┼───────────────────┤ +│ cppcheck-nullPointer │ HIGH │ 1 │ +└──────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ----------------------------------------- -File name | Number of reports ----------------------------------------- -cppcheck_include.cpp | 1 ----------------------------------------- +┌──────────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├──────────────────────┼───────────────────┤ +│ cppcheck_include.cpp │ 1 │ +└──────────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_multiple_error.output b/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_multiple_error.output index d7e5a4d930..8ffbff1aaf 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_multiple_error.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_multiple_error.output @@ -26,34 +26,35 @@ Found 1 defect(s) in cppcheck_multiple.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- -------------------------------------------------- -Checker name | Severity | Number of reports -------------------------------------------------- -cppcheck-uninitvar | HIGH | 1 -------------------------------------------------- +┌────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├────────────────────┼──────────┼───────────────────┤ +│ cppcheck-uninitvar │ HIGH │ 1 │ +└────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------------------ -File name | Number of reports ------------------------------------------ -cppcheck_multiple.cpp | 1 ------------------------------------------ +┌───────────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├───────────────────────┼───────────────────┤ +│ cppcheck_multiple.cpp │ 1 │ +└───────────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_multiple_warning.output b/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_multiple_warning.output index da719f8d50..6b2fcab2de 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_multiple_warning.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_multiple_warning.output @@ -26,34 +26,35 @@ Found 1 defect(s) in cppcheck_multiple.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -MEDIUM | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ MEDIUM │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- --------------------------------------------------------------- -Checker name | Severity | Number of reports --------------------------------------------------------------- -cppcheck-incorrectLogicOperator | MEDIUM | 1 --------------------------------------------------------------- +┌─────────────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────────────────────┼──────────┼───────────────────┤ +│ cppcheck-incorrectLogicOperator │ MEDIUM │ 1 │ +└─────────────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------------------ -File name | Number of reports ------------------------------------------ -cppcheck_multiple.cpp | 1 ------------------------------------------ +┌───────────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├───────────────────────┼───────────────────┤ +│ cppcheck_multiple.cpp │ 1 │ +└───────────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_undef_include.output b/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_undef_include.output index 90dbf71a20..9cb000c982 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_undef_include.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/cppcheck_undef_include.output @@ -21,10 +21,11 @@ CHECK#CodeChecker check --build "make cppcheck_undef_include" --output $OUTPUT$ Found no defects in cppcheck_include.cpp ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 0 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 0 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/diagnostic_message_hash_clang_tidy.output b/analyzer/tests/functional/analyze_and_parse/test_files/diagnostic_message_hash_clang_tidy.output index 9be1298050..d2a6faddd7 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/diagnostic_message_hash_clang_tidy.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/diagnostic_message_hash_clang_tidy.output @@ -43,34 +43,35 @@ Found 3 defect(s) in context_hash.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 3 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 3 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ---------------------------------------------------------- -Checker name | Severity | Number of reports ---------------------------------------------------------- -bugprone-sizeof-expression | HIGH | 3 ---------------------------------------------------------- +┌────────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├────────────────────────────┼──────────┼───────────────────┤ +│ bugprone-sizeof-expression │ HIGH │ 3 │ +└────────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------------- -File name | Number of reports ------------------------------------- -context_hash.cpp | 3 ------------------------------------- +┌──────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├──────────────────┼───────────────────┤ +│ context_hash.cpp │ 3 │ +└──────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 3 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 3 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/diagnostic_message_hash_clangsa.output b/analyzer/tests/functional/analyze_and_parse/test_files/diagnostic_message_hash_clangsa.output index 136c34fa36..a4c50d8ea1 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/diagnostic_message_hash_clangsa.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/diagnostic_message_hash_clangsa.output @@ -43,34 +43,35 @@ Found 3 defect(s) in context_hash.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -LOW | 3 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ LOW │ 3 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- --------------------------------------------------- -Checker name | Severity | Number of reports --------------------------------------------------- -deadcode.DeadStores | LOW | 3 --------------------------------------------------- +┌─────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────────┼──────────┼───────────────────┤ +│ deadcode.DeadStores │ LOW │ 3 │ +└─────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------------- -File name | Number of reports ------------------------------------- -context_hash.cpp | 3 ------------------------------------- +┌──────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├──────────────────┼───────────────────┤ +│ context_hash.cpp │ 3 │ +└──────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 3 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 3 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/filename_collision.output b/analyzer/tests/functional/analyze_and_parse/test_files/filename_collision.output index 1d956afc3b..d469c0408d 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/filename_collision.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/filename_collision.output @@ -30,17 +30,14 @@ Found 1 defect(s) in f.cpp ----==== Summary ====---- ------------------------ -Filename | Report count ------------------------ -f.cpp | 1 -f.cpp | 1 ------------------------ ------------------------ -Severity | Report count ------------------------ -HIGH | 2 ------------------------ +┌──────────┬──────────────┐ +│ Filename │ Report count │ +├──────────┼──────────────┤ +│ f.cpp │ 1 │ +│ f.cpp │ 1 │ +│ Severity │ Report count │ +│ HIGH │ 2 │ +└──────────┴──────────────┘ ----=================---- Total number of reports: 2 ----=================---- diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/gcc_simple.output b/analyzer/tests/functional/analyze_and_parse/test_files/gcc_simple.output index 23e071460b..12adbf246a 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/gcc_simple.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/gcc_simple.output @@ -26,34 +26,35 @@ Found 1 defect(s) in gcc_simple.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ----------------------------------------------- -Checker name | Severity | Number of reports ----------------------------------------------- -gcc-double-free | HIGH | 1 ----------------------------------------------- +┌─────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────┼──────────┼───────────────────┤ +│ gcc-double-free │ HIGH │ 1 │ +└─────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ----------------------------------- -File name | Number of reports ----------------------------------- -gcc_simple.cpp | 1 ----------------------------------- +┌────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├────────────────┼───────────────────┤ +│ gcc_simple.cpp │ 1 │ +└────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/gcc_simple_checker_disable.output b/analyzer/tests/functional/analyze_and_parse/test_files/gcc_simple_checker_disable.output index b1651d30a6..56286103b4 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/gcc_simple_checker_disable.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/gcc_simple_checker_disable.output @@ -21,10 +21,11 @@ CHECK#CodeChecker check --build "make gcc_simple" --output $OUTPUT$ --quiet --an Found no defects in gcc_simple.cpp ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 0 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 0 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/infer_simple.output b/analyzer/tests/functional/analyze_and_parse/test_files/infer_simple.output index 1661e85720..40efc6f7fa 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/infer_simple.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/infer_simple.output @@ -26,34 +26,35 @@ Found 1 defect(s) in infer_simple.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ------------------------------------------------ -Checker name | Severity | Number of reports ------------------------------------------------ -infer-dead-store | HIGH | 1 ------------------------------------------------ +┌──────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├──────────────────┼──────────┼───────────────────┤ +│ infer-dead-store │ HIGH │ 1 │ +└──────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------------- -File name | Number of reports ------------------------------------- -infer_simple.cpp | 1 ------------------------------------- +┌──────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├──────────────────┼───────────────────┤ +│ infer_simple.cpp │ 1 │ +└──────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/macros.output b/analyzer/tests/functional/analyze_and_parse/test_files/macros.output index 473269a343..88264e3d26 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/macros.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/macros.output @@ -14,32 +14,33 @@ Found 1 defect(s) in macros.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ---------------------------------------------------- -Checker name | Severity | Number of reports ---------------------------------------------------- -core.NullDereference | HIGH | 1 ---------------------------------------------------- +┌──────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├──────────────────────┼──────────┼───────────────────┤ +│ core.NullDereference │ HIGH │ 1 │ +└──────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------- -File name | Number of reports ------------------------------- -macros.cpp | 1 ------------------------------- +┌────────────┬───────────────────┐ +│ File name │ Number of reports │ +├────────────┼───────────────────┤ +│ macros.cpp │ 1 │ +└────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/multi_error.en1.output b/analyzer/tests/functional/analyze_and_parse/test_files/multi_error.en1.output index ef2bfa4a45..d3c379ece0 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/multi_error.en1.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/multi_error.en1.output @@ -26,34 +26,35 @@ Found 1 defect(s) in multi_error.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ----------------------------------------------- -Checker name | Severity | Number of reports ----------------------------------------------- -core.DivideZero | HIGH | 1 ----------------------------------------------- +┌─────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────┼──────────┼───────────────────┤ +│ core.DivideZero │ HIGH │ 1 │ +└─────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------------ -File name | Number of reports ------------------------------------ -multi_error.cpp | 1 ------------------------------------ +┌─────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├─────────────────┼───────────────────┤ +│ multi_error.cpp │ 1 │ +└─────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/multi_error.en2.output b/analyzer/tests/functional/analyze_and_parse/test_files/multi_error.en2.output index 293422d8d2..fef754eb0d 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/multi_error.en2.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/multi_error.en2.output @@ -26,34 +26,35 @@ Found 1 defect(s) in multi_error.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -LOW | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ LOW │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- --------------------------------------------------- -Checker name | Severity | Number of reports --------------------------------------------------- -deadcode.DeadStores | LOW | 1 --------------------------------------------------- +┌─────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────────┼──────────┼───────────────────┤ +│ deadcode.DeadStores │ LOW │ 1 │ +└─────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------------ -File name | Number of reports ------------------------------------ -multi_error.cpp | 1 ------------------------------------ +┌─────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├─────────────────┼───────────────────┤ +│ multi_error.cpp │ 1 │ +└─────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/multi_error.en3.output b/analyzer/tests/functional/analyze_and_parse/test_files/multi_error.en3.output index e9a64b80c3..1d5f73079e 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/multi_error.en3.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/multi_error.en3.output @@ -26,34 +26,35 @@ Found 1 defect(s) in multi_error.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -LOW | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ LOW │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- --------------------------------------------------- -Checker name | Severity | Number of reports --------------------------------------------------- -deadcode.DeadStores | LOW | 1 --------------------------------------------------- +┌─────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────────┼──────────┼───────────────────┤ +│ deadcode.DeadStores │ LOW │ 1 │ +└─────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------------ -File name | Number of reports ------------------------------------ -multi_error.cpp | 1 ------------------------------------ +┌─────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├─────────────────┼───────────────────┤ +│ multi_error.cpp │ 1 │ +└─────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/multi_error.output b/analyzer/tests/functional/analyze_and_parse/test_files/multi_error.output index c3d0f425a3..96ff434f57 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/multi_error.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/multi_error.output @@ -30,36 +30,37 @@ Found 2 defect(s) in multi_error.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 -LOW | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +│ LOW │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- --------------------------------------------------- -Checker name | Severity | Number of reports --------------------------------------------------- -core.DivideZero | HIGH | 1 -deadcode.DeadStores | LOW | 1 --------------------------------------------------- +┌─────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────────┼──────────┼───────────────────┤ +│ core.DivideZero │ HIGH │ 1 │ +│ deadcode.DeadStores │ LOW │ 1 │ +└─────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------------ -File name | Number of reports ------------------------------------ -multi_error.cpp | 2 ------------------------------------ +┌─────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├─────────────────┼───────────────────┤ +│ multi_error.cpp │ 2 │ +└─────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 2 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 2 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/multi_error.steps.output b/analyzer/tests/functional/analyze_and_parse/test_files/multi_error.steps.output index 5365d8e429..92d65b75d2 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/multi_error.steps.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/multi_error.steps.output @@ -38,36 +38,37 @@ Found 2 defect(s) in multi_error.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 -LOW | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +│ LOW │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- --------------------------------------------------- -Checker name | Severity | Number of reports --------------------------------------------------- -core.DivideZero | HIGH | 1 -deadcode.DeadStores | LOW | 1 --------------------------------------------------- +┌─────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────────┼──────────┼───────────────────┤ +│ core.DivideZero │ HIGH │ 1 │ +│ deadcode.DeadStores │ LOW │ 1 │ +└─────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------------ -File name | Number of reports ------------------------------------ -multi_error.cpp | 2 ------------------------------------ +┌─────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├─────────────────┼───────────────────┤ +│ multi_error.cpp │ 2 │ +└─────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 2 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 2 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/multi_error_skipped.output b/analyzer/tests/functional/analyze_and_parse/test_files/multi_error_skipped.output index 03e16e6088..dd72d40d69 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/multi_error_skipped.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/multi_error_skipped.output @@ -27,34 +27,35 @@ Found 1 defect(s) in simple1.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ----------------------------------------------- -Checker name | Severity | Number of reports ----------------------------------------------- -core.DivideZero | HIGH | 1 ----------------------------------------------- +┌─────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────┼──────────┼───────────────────┤ +│ core.DivideZero │ HIGH │ 1 │ +└─────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- -------------------------------- -File name | Number of reports -------------------------------- -simple1.cpp | 1 -------------------------------- +┌─────────────┬───────────────────┐ +│ File name │ Number of reports │ +├─────────────┼───────────────────┤ +│ simple1.cpp │ 1 │ +└─────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/multi_error_skipped_in_cmd.output b/analyzer/tests/functional/analyze_and_parse/test_files/multi_error_skipped_in_cmd.output index c506337922..5993e69bd7 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/multi_error_skipped_in_cmd.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/multi_error_skipped_in_cmd.output @@ -39,36 +39,37 @@ Found 1 defect(s) in multi_error_skipped_in_cmd.HPP ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 3 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 3 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ---------------------------------------------------------- -Checker name | Severity | Number of reports ---------------------------------------------------------- -bugprone-sizeof-expression | HIGH | 3 ---------------------------------------------------------- +┌────────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├────────────────────────────┼──────────┼───────────────────┤ +│ bugprone-sizeof-expression │ HIGH │ 3 │ +└────────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- --------------------------------------------------- -File name | Number of reports --------------------------------------------------- -multi_error_skipped_in_cmd.HPP | 1 -multi_error_skipped_in_cmd.cpp | 1 -multi_error_skipped_in_cmd.h | 1 --------------------------------------------------- +┌────────────────────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├────────────────────────────────┼───────────────────┤ +│ multi_error_skipped_in_cmd.HPP │ 1 │ +│ multi_error_skipped_in_cmd.cpp │ 1 │ +│ multi_error_skipped_in_cmd.h │ 1 │ +└────────────────────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 3 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 3 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/multi_error_suppress.output b/analyzer/tests/functional/analyze_and_parse/test_files/multi_error_suppress.output index 5650b02482..257da7729a 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/multi_error_suppress.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/multi_error_suppress.output @@ -26,34 +26,35 @@ Found 1 defect(s) in multi_error_suppress.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ----------------------------------------------- -Checker name | Severity | Number of reports ----------------------------------------------- -core.DivideZero | HIGH | 1 ----------------------------------------------- +┌─────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────┼──────────┼───────────────────┤ +│ core.DivideZero │ HIGH │ 1 │ +└─────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- --------------------------------------------- -File name | Number of reports --------------------------------------------- -multi_error_suppress.cpp | 1 --------------------------------------------- +┌──────────────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├──────────────────────────┼───────────────────┤ +│ multi_error_suppress.cpp │ 1 │ +└──────────────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/multi_error_suppress_cstyle.output b/analyzer/tests/functional/analyze_and_parse/test_files/multi_error_suppress_cstyle.output index 45bc0b1ce0..e4b28ea22c 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/multi_error_suppress_cstyle.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/multi_error_suppress_cstyle.output @@ -26,34 +26,35 @@ Found 1 defect(s) in multi_error_suppress_cstyle.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ----------------------------------------------- -Checker name | Severity | Number of reports ----------------------------------------------- -core.DivideZero | HIGH | 1 ----------------------------------------------- +┌─────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────┼──────────┼───────────────────┤ +│ core.DivideZero │ HIGH │ 1 │ +└─────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ---------------------------------------------------- -File name | Number of reports ---------------------------------------------------- -multi_error_suppress_cstyle.cpp | 1 ---------------------------------------------------- +┌─────────────────────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├─────────────────────────────────┼───────────────────┤ +│ multi_error_suppress_cstyle.cpp │ 1 │ +└─────────────────────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/multi_error_suppress_typo.output b/analyzer/tests/functional/analyze_and_parse/test_files/multi_error_suppress_typo.output index 6670a5422a..97891960dd 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/multi_error_suppress_typo.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/multi_error_suppress_typo.output @@ -31,36 +31,37 @@ Found 2 defect(s) in multi_error_suppress_typo.cpp [] - multi_error_suppress_typo.cpp contains misspelled review status comment @9: // codechecker_suppressssss [all] some comment ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 -LOW | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +│ LOW │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- --------------------------------------------------- -Checker name | Severity | Number of reports --------------------------------------------------- -core.DivideZero | HIGH | 1 -deadcode.DeadStores | LOW | 1 --------------------------------------------------- +┌─────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────────┼──────────┼───────────────────┤ +│ core.DivideZero │ HIGH │ 1 │ +│ deadcode.DeadStores │ LOW │ 1 │ +└─────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- -------------------------------------------------- -File name | Number of reports -------------------------------------------------- -multi_error_suppress_typo.cpp | 2 -------------------------------------------------- +┌───────────────────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├───────────────────────────────┼───────────────────┤ +│ multi_error_suppress_typo.cpp │ 2 │ +└───────────────────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 2 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 2 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/multiple_input.output b/analyzer/tests/functional/analyze_and_parse/test_files/multiple_input.output index a92e3cec8e..8066ba8059 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/multiple_input.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/multiple_input.output @@ -14,35 +14,36 @@ Found 1 defect(s) in notes.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 -LOW | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +│ LOW │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- -------------------------------------------------------- -Checker name | Severity | Number of reports -------------------------------------------------------- -core.NullDereference | HIGH | 1 -alpha.clone.CloneChecker | LOW | 1 -------------------------------------------------------- +┌──────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├──────────────────────────┼──────────┼───────────────────┤ +│ core.NullDereference │ HIGH │ 1 │ +│ alpha.clone.CloneChecker │ LOW │ 1 │ +└──────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------- -File name | Number of reports ------------------------------- -macros.cpp | 1 -notes.cpp | 1 ------------------------------- +┌────────────┬───────────────────┐ +│ File name │ Number of reports │ +├────────────┼───────────────────┤ +│ macros.cpp │ 1 │ +│ notes.cpp │ 1 │ +└────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 2 -Number of analyzer reports | 2 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 2 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 2 │ +└───────────────────────────────────────────┴───┘ ----=================---- diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/multiple_input_filter.output b/analyzer/tests/functional/analyze_and_parse/test_files/multiple_input_filter.output index 5c94cb1e8e..83499895fc 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/multiple_input_filter.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/multiple_input_filter.output @@ -8,32 +8,33 @@ Found 1 defect(s) in macros.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ---------------------------------------------------- -Checker name | Severity | Number of reports ---------------------------------------------------- -core.NullDereference | HIGH | 1 ---------------------------------------------------- +┌──────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├──────────────────────┼──────────┼───────────────────┤ +│ core.NullDereference │ HIGH │ 1 │ +└──────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------- -File name | Number of reports ------------------------------- -macros.cpp | 1 ------------------------------- +┌────────────┬───────────────────┐ +│ File name │ Number of reports │ +├────────────┼───────────────────┤ +│ macros.cpp │ 1 │ +└────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 2 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 2 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/multiple_input_filter_all.output b/analyzer/tests/functional/analyze_and_parse/test_files/multiple_input_filter_all.output index 9b16894b9c..406508fe47 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/multiple_input_filter_all.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/multiple_input_filter_all.output @@ -14,35 +14,36 @@ Found 1 defect(s) in notes.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 -LOW | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +│ LOW │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- -------------------------------------------------------- -Checker name | Severity | Number of reports -------------------------------------------------------- -core.NullDereference | HIGH | 1 -alpha.clone.CloneChecker | LOW | 1 -------------------------------------------------------- +┌──────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├──────────────────────────┼──────────┼───────────────────┤ +│ core.NullDereference │ HIGH │ 1 │ +│ alpha.clone.CloneChecker │ LOW │ 1 │ +└──────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------- -File name | Number of reports ------------------------------- -macros.cpp | 1 -notes.cpp | 1 ------------------------------- +┌────────────┬───────────────────┐ +│ File name │ Number of reports │ +├────────────┼───────────────────┤ +│ macros.cpp │ 1 │ +│ notes.cpp │ 1 │ +└────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 2 -Number of analyzer reports | 2 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 2 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 2 │ +└───────────────────────────────────────────┴───┘ ----=================---- diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/nofail.output b/analyzer/tests/functional/analyze_and_parse/test_files/nofail.output index 002b886b5a..7677327594 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/nofail.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/nofail.output @@ -21,10 +21,11 @@ CHECK#CodeChecker check --build "make nofail" --output $OUTPUT$ --quiet --analyz Found no defects in nofail.cpp ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 0 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 0 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/nofail.steps.output b/analyzer/tests/functional/analyze_and_parse/test_files/nofail.steps.output index 4e395f8808..89385cbd29 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/nofail.steps.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/nofail.steps.output @@ -21,10 +21,11 @@ CHECK#CodeChecker check --build "make nofail" --output $OUTPUT$ --quiet --analyz Found no defects in nofail.cpp ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 0 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 0 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/notes.output b/analyzer/tests/functional/analyze_and_parse/test_files/notes.output index 22307377bd..6c21de9c91 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/notes.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/notes.output @@ -13,32 +13,33 @@ Found 1 defect(s) in notes.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -LOW | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ LOW │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- -------------------------------------------------------- -Checker name | Severity | Number of reports -------------------------------------------------------- -alpha.clone.CloneChecker | LOW | 1 -------------------------------------------------------- +┌──────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├──────────────────────────┼──────────┼───────────────────┤ +│ alpha.clone.CloneChecker │ LOW │ 1 │ +└──────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ------------------------------ -File name | Number of reports ------------------------------ -notes.cpp | 1 ------------------------------ +┌───────────┬───────────────────┐ +│ File name │ Number of reports │ +├───────────┼───────────────────┤ +│ notes.cpp │ 1 │ +└───────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/saargs_forward.noforward.output b/analyzer/tests/functional/analyze_and_parse/test_files/saargs_forward.noforward.output index 826a7dc333..c83a774095 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/saargs_forward.noforward.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/saargs_forward.noforward.output @@ -21,10 +21,11 @@ CHECK#CodeChecker check --build "make saargs_forward" --output $OUTPUT$ --quiet Found no defects in saargs_forward.cpp ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 0 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 0 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/saargs_forward.output b/analyzer/tests/functional/analyze_and_parse/test_files/saargs_forward.output index 5ab9940ef7..bd025d7b27 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/saargs_forward.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/saargs_forward.output @@ -27,34 +27,35 @@ Found 1 defect(s) in saargs_forward.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ---------------------------------------------------- -Checker name | Severity | Number of reports ---------------------------------------------------- -core.NullDereference | HIGH | 1 ---------------------------------------------------- +┌──────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├──────────────────────┼──────────┼───────────────────┤ +│ core.NullDereference │ HIGH │ 1 │ +└──────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- --------------------------------------- -File name | Number of reports --------------------------------------- -saargs_forward.cpp | 1 --------------------------------------- +┌────────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├────────────────────┼───────────────────┤ +│ saargs_forward.cpp │ 1 │ +└────────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/simple1.deduplication.output b/analyzer/tests/functional/analyze_and_parse/test_files/simple1.deduplication.output index 29b2acc686..4dca06c132 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/simple1.deduplication.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/simple1.deduplication.output @@ -27,34 +27,35 @@ Found 1 defect(s) in simple1.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ----------------------------------------------- -Checker name | Severity | Number of reports ----------------------------------------------- -core.DivideZero | HIGH | 1 ----------------------------------------------- +┌─────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────┼──────────┼───────────────────┤ +│ core.DivideZero │ HIGH │ 1 │ +└─────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- -------------------------------- -File name | Number of reports -------------------------------- -simple1.cpp | 1 -------------------------------- +┌─────────────┬───────────────────┐ +│ File name │ Number of reports │ +├─────────────┼───────────────────┤ +│ simple1.cpp │ 1 │ +└─────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 2 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 2 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/simple1.output b/analyzer/tests/functional/analyze_and_parse/test_files/simple1.output index ecea4d42a2..b0d9334a44 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/simple1.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/simple1.output @@ -26,34 +26,35 @@ Found 1 defect(s) in simple1.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ----------------------------------------------- -Checker name | Severity | Number of reports ----------------------------------------------- -core.DivideZero | HIGH | 1 ----------------------------------------------- +┌─────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────┼──────────┼───────────────────┤ +│ core.DivideZero │ HIGH │ 1 │ +└─────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- -------------------------------- -File name | Number of reports -------------------------------- -simple1.cpp | 1 -------------------------------- +┌─────────────┬───────────────────┐ +│ File name │ Number of reports │ +├─────────────┼───────────────────┤ +│ simple1.cpp │ 1 │ +└─────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/simple1.steps.output b/analyzer/tests/functional/analyze_and_parse/test_files/simple1.steps.output index 1e229b9077..f084cbb940 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/simple1.steps.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/simple1.steps.output @@ -35,34 +35,35 @@ Found 1 defect(s) in simple1.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ----------------------------------------------- -Checker name | Severity | Number of reports ----------------------------------------------- -core.DivideZero | HIGH | 1 ----------------------------------------------- +┌─────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────┼──────────┼───────────────────┤ +│ core.DivideZero │ HIGH │ 1 │ +└─────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- -------------------------------- -File name | Number of reports -------------------------------- -simple1.cpp | 1 -------------------------------- +┌─────────────┬───────────────────┐ +│ File name │ Number of reports │ +├─────────────┼───────────────────┤ +│ simple1.cpp │ 1 │ +└─────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/simple1_review_status_file.output b/analyzer/tests/functional/analyze_and_parse/test_files/simple1_review_status_file.output index a4340ad2d1..df81e7f271 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/simple1_review_status_file.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/simple1_review_status_file.output @@ -25,10 +25,11 @@ NORMAL#CodeChecker parse $OUTPUT$ --review-status=false_positive Found no defects in simple1.cpp ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 0 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 0 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results @@ -51,34 +52,35 @@ Found 1 defect(s) in simple1.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ----------------------------------------------- -Checker name | Severity | Number of reports ----------------------------------------------- -core.DivideZero | HIGH | 1 ----------------------------------------------- +┌─────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────┼──────────┼───────────────────┤ +│ core.DivideZero │ HIGH │ 1 │ +└─────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- -------------------------------- -File name | Number of reports -------------------------------- -simple1.cpp | 1 -------------------------------- +┌─────────────┬───────────────────┐ +│ File name │ Number of reports │ +├─────────────┼───────────────────┤ +│ simple1.cpp │ 1 │ +└─────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/simple1_review_status_file_glob.output b/analyzer/tests/functional/analyze_and_parse/test_files/simple1_review_status_file_glob.output index bbf7d3e1fa..f8b795bc7a 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/simple1_review_status_file_glob.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/simple1_review_status_file_glob.output @@ -25,10 +25,11 @@ NORMAL#CodeChecker parse $OUTPUT$ --review-status=false_positive Found no defects in simple1.cpp ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 0 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 0 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results @@ -51,34 +52,35 @@ Found 1 defect(s) in simple1.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ----------------------------------------------- -Checker name | Severity | Number of reports ----------------------------------------------- -core.DivideZero | HIGH | 1 ----------------------------------------------- +┌─────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────┼──────────┼───────────────────┤ +│ core.DivideZero │ HIGH │ 1 │ +└─────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- -------------------------------- -File name | Number of reports -------------------------------- -simple1.cpp | 1 -------------------------------- +┌─────────────┬───────────────────┐ +│ File name │ Number of reports │ +├─────────────┼───────────────────┤ +│ simple1.cpp │ 1 │ +└─────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/simple1_review_status_file_hash.output b/analyzer/tests/functional/analyze_and_parse/test_files/simple1_review_status_file_hash.output index 7428fd1ed2..3e4955b1ba 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/simple1_review_status_file_hash.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/simple1_review_status_file_hash.output @@ -25,10 +25,11 @@ NORMAL#CodeChecker parse $OUTPUT$ --review-status=false_positive Found no defects in simple1.cpp ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 0 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 0 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results @@ -51,34 +52,35 @@ Found 1 defect(s) in simple1.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ----------------------------------------------- -Checker name | Severity | Number of reports ----------------------------------------------- -core.DivideZero | HIGH | 1 ----------------------------------------------- +┌─────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────┼──────────┼───────────────────┤ +│ core.DivideZero │ HIGH │ 1 │ +└─────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- -------------------------------- -File name | Number of reports -------------------------------- -simple1.cpp | 1 -------------------------------- +┌─────────────┬───────────────────┐ +│ File name │ Number of reports │ +├─────────────┼───────────────────┤ +│ simple1.cpp │ 1 │ +└─────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/simple2.output b/analyzer/tests/functional/analyze_and_parse/test_files/simple2.output index d0ecb948e4..79fe8369ee 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/simple2.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/simple2.output @@ -26,34 +26,35 @@ Found 1 defect(s) in simple2.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ----------------------------------------------- -Checker name | Severity | Number of reports ----------------------------------------------- -core.DivideZero | HIGH | 1 ----------------------------------------------- +┌─────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────┼──────────┼───────────────────┤ +│ core.DivideZero │ HIGH │ 1 │ +└─────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- -------------------------------- -File name | Number of reports -------------------------------- -simple2.cpp | 1 -------------------------------- +┌─────────────┬───────────────────┐ +│ File name │ Number of reports │ +├─────────────┼───────────────────┤ +│ simple2.cpp │ 1 │ +└─────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/simple2.steps.output b/analyzer/tests/functional/analyze_and_parse/test_files/simple2.steps.output index 5beb074cf3..fef03750ca 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/simple2.steps.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/simple2.steps.output @@ -35,34 +35,35 @@ Found 1 defect(s) in simple2.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ----------------------------------------------- -Checker name | Severity | Number of reports ----------------------------------------------- -core.DivideZero | HIGH | 1 ----------------------------------------------- +┌─────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├─────────────────┼──────────┼───────────────────┤ +│ core.DivideZero │ HIGH │ 1 │ +└─────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- -------------------------------- -File name | Number of reports -------------------------------- -simple2.cpp | 1 -------------------------------- +┌─────────────┬───────────────────┐ +│ File name │ Number of reports │ +├─────────────┼───────────────────┤ +│ simple2.cpp │ 1 │ +└─────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/source_code_comments.output b/analyzer/tests/functional/analyze_and_parse/test_files/source_code_comments.output index 8deb863155..c9acee2f6a 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/source_code_comments.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/source_code_comments.output @@ -31,34 +31,35 @@ Found 2 defect(s) in source_code_comments.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 2 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 2 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ---------------------------------------------------------- -Checker name | Severity | Number of reports ---------------------------------------------------------- -bugprone-sizeof-expression | HIGH | 2 ---------------------------------------------------------- +┌────────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├────────────────────────────┼──────────┼───────────────────┤ +│ bugprone-sizeof-expression │ HIGH │ 2 │ +└────────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- --------------------------------------------- -File name | Number of reports --------------------------------------------- -source_code_comments.cpp | 2 --------------------------------------------- +┌──────────────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├──────────────────────────┼───────────────────┤ +│ source_code_comments.cpp │ 2 │ +└──────────────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 2 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 2 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/source_code_comments_all.output b/analyzer/tests/functional/analyze_and_parse/test_files/source_code_comments_all.output index 2c9ef353d7..6612e0f7d2 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/source_code_comments_all.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/source_code_comments_all.output @@ -46,34 +46,35 @@ Found 5 defect(s) in source_code_comments.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 5 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 5 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ---------------------------------------------------------- -Checker name | Severity | Number of reports ---------------------------------------------------------- -bugprone-sizeof-expression | HIGH | 5 ---------------------------------------------------------- +┌────────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├────────────────────────────┼──────────┼───────────────────┤ +│ bugprone-sizeof-expression │ HIGH │ 5 │ +└────────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- --------------------------------------------- -File name | Number of reports --------------------------------------------- -source_code_comments.cpp | 5 --------------------------------------------- +┌──────────────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├──────────────────────────┼───────────────────┤ +│ source_code_comments.cpp │ 5 │ +└──────────────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 5 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 5 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/source_code_comments_all_empty_filter.output b/analyzer/tests/functional/analyze_and_parse/test_files/source_code_comments_all_empty_filter.output index 9e306c40a6..280f086abb 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/source_code_comments_all_empty_filter.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/source_code_comments_all_empty_filter.output @@ -46,34 +46,35 @@ Found 5 defect(s) in source_code_comments.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 5 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 5 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ---------------------------------------------------------- -Checker name | Severity | Number of reports ---------------------------------------------------------- -bugprone-sizeof-expression | HIGH | 5 ---------------------------------------------------------- +┌────────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├────────────────────────────┼──────────┼───────────────────┤ +│ bugprone-sizeof-expression │ HIGH │ 5 │ +└────────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- --------------------------------------------- -File name | Number of reports --------------------------------------------- -source_code_comments.cpp | 5 --------------------------------------------- +┌──────────────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├──────────────────────────┼───────────────────┤ +│ source_code_comments.cpp │ 5 │ +└──────────────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 5 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 5 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/source_code_comments_confirmed.output b/analyzer/tests/functional/analyze_and_parse/test_files/source_code_comments_confirmed.output index f76325773d..18d4bfbb23 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/source_code_comments_confirmed.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/source_code_comments_confirmed.output @@ -27,34 +27,35 @@ Found 1 defect(s) in source_code_comments.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ---------------------------------------------------------- -Checker name | Severity | Number of reports ---------------------------------------------------------- -bugprone-sizeof-expression | HIGH | 1 ---------------------------------------------------------- +┌────────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├────────────────────────────┼──────────┼───────────────────┤ +│ bugprone-sizeof-expression │ HIGH │ 1 │ +└────────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- --------------------------------------------- -File name | Number of reports --------------------------------------------- -source_code_comments.cpp | 1 --------------------------------------------- +┌──────────────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├──────────────────────────┼───────────────────┤ +│ source_code_comments.cpp │ 1 │ +└──────────────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/source_code_comments_false_positive.output b/analyzer/tests/functional/analyze_and_parse/test_files/source_code_comments_false_positive.output index 8dc9173077..bd939417c8 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/source_code_comments_false_positive.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/source_code_comments_false_positive.output @@ -32,34 +32,35 @@ Found 2 defect(s) in source_code_comments.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 2 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 2 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ---------------------------------------------------------- -Checker name | Severity | Number of reports ---------------------------------------------------------- -bugprone-sizeof-expression | HIGH | 2 ---------------------------------------------------------- +┌────────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├────────────────────────────┼──────────┼───────────────────┤ +│ bugprone-sizeof-expression │ HIGH │ 2 │ +└────────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- --------------------------------------------- -File name | Number of reports --------------------------------------------- -source_code_comments.cpp | 2 --------------------------------------------- +┌──────────────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├──────────────────────────┼───────────────────┤ +│ source_code_comments.cpp │ 2 │ +└──────────────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 2 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 2 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/tidy_alias.output b/analyzer/tests/functional/analyze_and_parse/test_files/tidy_alias.output index a85a022bb8..717181494f 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/tidy_alias.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/tidy_alias.output @@ -30,35 +30,36 @@ Found 2 defect(s) in tidy_alias.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -STYLE | 2 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ STYLE │ 2 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- --------------------------------------------------------------------- -Checker name | Severity | Number of reports --------------------------------------------------------------------- -cppcoreguidelines-avoid-magic-numbers | STYLE | 1 -readability-magic-numbers | STYLE | 1 --------------------------------------------------------------------- +┌───────────────────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├───────────────────────────────────────┼──────────┼───────────────────┤ +│ cppcoreguidelines-avoid-magic-numbers │ STYLE │ 1 │ +│ readability-magic-numbers │ STYLE │ 1 │ +└───────────────────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ----------------------------------- -File name | Number of reports ----------------------------------- -tidy_alias.cpp | 2 ----------------------------------- +┌────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├────────────────┼───────────────────┤ +│ tidy_alias.cpp │ 2 │ +└────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 2 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 2 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/tidy_check.output b/analyzer/tests/functional/analyze_and_parse/test_files/tidy_check.output index 70002f8b9c..e78175e950 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/tidy_check.output +++ b/analyzer/tests/functional/analyze_and_parse/test_files/tidy_check.output @@ -26,34 +26,35 @@ Found 1 defect(s) in tidy_check.cpp ----==== Severity Statistics ====---- ----------------------------- -Severity | Number of reports ----------------------------- -HIGH | 1 ----------------------------- +┌──────────┬───────────────────┐ +│ Severity │ Number of reports │ +├──────────┼───────────────────┤ +│ HIGH │ 1 │ +└──────────┴───────────────────┘ ----=================---- ----==== Checker Statistics ====---- ---------------------------------------------------------- -Checker name | Severity | Number of reports ---------------------------------------------------------- -bugprone-sizeof-expression | HIGH | 1 ---------------------------------------------------------- +┌────────────────────────────┬──────────┬───────────────────┐ +│ Checker name │ Severity │ Number of reports │ +├────────────────────────────┼──────────┼───────────────────┤ +│ bugprone-sizeof-expression │ HIGH │ 1 │ +└────────────────────────────┴──────────┴───────────────────┘ ----=================---- ----==== File Statistics ====---- ----------------------------------- -File name | Number of reports ----------------------------------- -tidy_check.cpp | 1 ----------------------------------- +┌────────────────┬───────────────────┐ +│ File name │ Number of reports │ +├────────────────┼───────────────────┤ +│ tidy_check.cpp │ 1 │ +└────────────────┴───────────────────┘ ----=================---- ----======== Summary ========---- ---------------------------------------------- -Number of processed analyzer result files | 1 -Number of analyzer reports | 1 ---------------------------------------------- +┌───────────────────────────────────────────┬───┐ +│ Number of processed analyzer result files │ 1 │ +├───────────────────────────────────────────┼───┤ +│ Number of analyzer reports │ 1 │ +└───────────────────────────────────────────┴───┘ ----=================---- [] - ----==== Summary ====---- [] - Up-to-date analysis results diff --git a/analyzer/tests/libtest/env.py b/analyzer/tests/libtest/env.py index 2f84325ad5..dacaec69da 100644 --- a/analyzer/tests/libtest/env.py +++ b/analyzer/tests/libtest/env.py @@ -24,6 +24,12 @@ def codechecker_env(): checker_env = os.environ.copy() cc_bin = os.path.join(PKG_ROOT, 'bin') checker_env['PATH'] = cc_bin + ":" + checker_env['PATH'] + # Ensure stable UTF-8 output regardless of the CI runner's locale. + # PrettyTable uses Unicode box-drawing characters which require UTF-8 + # to render correctly. + checker_env['PYTHONIOENCODING'] = 'utf-8' + checker_env['LC_ALL'] = 'C.UTF-8' + checker_env['LANG'] = 'C.UTF-8' return checker_env diff --git a/tools/report-converter/codechecker_report_converter/report/statistics.py b/tools/report-converter/codechecker_report_converter/report/statistics.py index 2cd1e4f3d7..edbadbb7f0 100644 --- a/tools/report-converter/codechecker_report_converter/report/statistics.py +++ b/tools/report-converter/codechecker_report_converter/report/statistics.py @@ -73,7 +73,8 @@ def _write_summary(self, out=sys.stdout): ["Number of processed analyzer result files", str(self.num_of_analyzer_result_files)], ["Number of analyzer reports", str(self.num_of_reports)]] - out.write(twodim.to_table(statistics_rows, False)) + out.write(twodim.to_table( + statistics_rows, False, separate_footer=True)) out.write("\n----=================----\n") def write(self, _=sys.stdout): diff --git a/tools/report-converter/codechecker_report_converter/twodim.py b/tools/report-converter/codechecker_report_converter/twodim.py index d22403d3ba..c8c37d382c 100644 --- a/tools/report-converter/codechecker_report_converter/twodim.py +++ b/tools/report-converter/codechecker_report_converter/twodim.py @@ -11,10 +11,14 @@ import json +import os +import shutil from operator import itemgetter from typing import Iterable, List, Optional +from prettytable import HRuleStyle, PrettyTable, TableStyle + def to_str( format_name: str, @@ -94,59 +98,185 @@ def to_rows(lines: Iterable[str]) -> str: return '\n'.join(str_parts) +def _fit_table_to_width( + table: PrettyTable, + terminal_width: int, +) -> str: + """ + Render ``table`` so that it fits within ``terminal_width`` columns. + + The algorithm avoids hard-coding column types by working from the + pre-computed natural widths of each column. Short columns (those that + already fit their share of the available space) keep their full natural + width; only the longer columns are shortened, proportionally. + + The iteration is a fixpoint loop: + + 1. Each unassigned column gets a *proportional share* of the remaining + content budget (based on its natural width relative to the total of + all unassigned columns). + 2. Any column whose natural width fits within its share is *locked in* + at that natural width, freeing up space for the others. + 3. Repeat until no more columns can be locked. + 4. Distribute the residual budget among whatever columns are still + unassigned. + 5. Apply ``max_table_width`` as a final safety net to absorb rounding + errors. + + The per-column border/padding overhead for SINGLE_BORDER style is + 3 characters per column (space + content + space + border) plus 1 for + the leading border: ``overhead = num_cols * 3 + 1``. + """ + field_names = table.field_names + data_rows = table._rows # type: ignore[attr-defined] + show_header = table.header + + widths: List[int] = ( + [len(str(h)) for h in field_names] if show_header + else [0] * len(field_names) + ) + for row in data_rows: + for i, cell in enumerate(row): + widths[i] = max(widths[i], len(str(cell))) + nat_widths = widths + num_cols = len(nat_widths) + # SINGLE_BORDER layout: │ c1 │ c2 │ … │ cn │ + # overhead = 1 (left border) + num_cols * + # (1 space + content + 1 space + 1 border) + # = 1 + num_cols * 3 + overhead = num_cols * 3 + 1 + + total_natural = sum(nat_widths) + overhead + + # If the table already fits, render it without any truncation. + if total_natural <= terminal_width: + return table.get_string() + + # Minimum content width per column (must show at least a few characters). + min_col_width = 4 + + # Available content budget (sum of column widths must be <= this). + available = max(terminal_width - overhead, num_cols * min_col_width) + + # --- Iterative fixpoint --- + # assigned[i] holds the final max_width for column i once locked. + # Initialised to 0; every entry is guaranteed to be set before use. + assigned: List[int] = [0] * num_cols + unassigned = list(range(num_cols)) + remaining = available + + # Each iteration locks columns whose natural width is <= the equal + # share they would receive if the remaining budget were split evenly + # among the still-unassigned columns. This guarantees that short + # columns always keep their full natural width, and only the genuinely + # wide columns are shortened. + for _ in range(num_cols + 1): + if not unassigned: + break + + equal_share = remaining // len(unassigned) + locked_this_round = [ + i for i in unassigned if nat_widths[i] <= equal_share + ] + + if not locked_this_round: + break # Nothing new was locked; exit early. + + for i in locked_this_round: + assigned[i] = nat_widths[i] + remaining -= nat_widths[i] + unassigned.remove(i) + + # Distribute remaining budget among columns still unassigned + # (those that need truncation), proportionally to natural widths. + if unassigned: + nat_sum = sum(nat_widths[i] for i in unassigned) + for i in unassigned: + if nat_sum > 0: + share = max(min_col_width, + int(nat_widths[i] / nat_sum * remaining)) + else: + share = max(min_col_width, remaining // len(unassigned)) + assigned[i] = share + + # Apply per-column max_width constraints. + for i, fn in enumerate(table.field_names): + table.max_width[fn] = assigned[i] # type: ignore[index] + + # Apply max_table_width as a safety net to absorb integer-division + # rounding errors that might push the rendered width over the limit. + table.max_table_width = terminal_width + + return table.get_string() + + +def _make_table( + field_names: List[str], + data_rows: List[List[str]], + show_header: bool, + hrules: HRuleStyle = HRuleStyle.FRAME +) -> PrettyTable: + """Build and return a configured PrettyTable (without rendering it).""" + table = PrettyTable() + table.set_style(TableStyle.SINGLE_BORDER) + table.field_names = field_names + table.header = show_header + table.hrules = hrules + table.align = 'l' # type: ignore[assignment] + for row in data_rows: + table.add_row(row) + return table + + def to_table( lines: Iterable[str], separate_head=True, separate_footer=False ) -> str: """ - Pretty-prints the given two-dimensional array's lines. - """ + Pretty-prints the given two-dimensional array's lines using PrettyTable. - str_parts = [] + The output automatically fits within the current terminal width so that + wide result sets no longer break across multiple screen lines. Column + widths are computed from the actual data: short columns (ones that already + fit their proportional share of the available space) keep their full + natural width; only the wider columns are shortened, proportionally. - # It is possible that one of the item in the line is None which will - # raise an exception when passed to the format function below. So this is - # the reason why we need to convert None values to valid strings here. + The first row is used as the header when ``separate_head`` is True. + When ``separate_footer`` is True, the last data row is visually separated + from the rest by drawing a horizontal rule between every row. + """ lns: List[List[str]] = [ - ['' if e is None else e for e in line] for line in lines] - - # Count the column width. - widths: List[int] = [] - for line in lns: - for i, size in enumerate([len(str(x)) for x in line]): - while i >= len(widths): - widths.append(0) - if size > widths[i]: - widths[i] = size - - # Generate the format string to pad the columns. - print_string = "" - for i, width in enumerate(widths): - print_string += "{" + str(i) + ":" + str(width) + "} | " + ['' if e is None else str(e) for e in line] for line in lines] - if not print_string: + if not lns: return '' - print_string = print_string[:-3] - - # Print the actual data. - str_parts.append("-" * (sum(widths) + 3 * (len(widths) - 1))) - for i, line in enumerate(lns): - try: - str_parts.append(print_string.format(*line)) - except IndexError: - # pylint: disable=raise-missing-from - raise TypeError("One of the rows have a different number of " - "columns than the others") - if i == 0 and separate_head: - str_parts.append("-" * (sum(widths) + 3 * (len(widths) - 1))) - if separate_footer and i == len(lns) - 2: - str_parts.append("-" * (sum(widths) + 3 * (len(widths) - 1))) + # Detect the current terminal width. Honour the COLUMNS environment + # variable first (allows the user to override), then fall back to the + # OS-reported terminal size, and finally to 80 columns when stdout is + # redirected to a file or pipe. + try: + terminal_width = int(os.environ['COLUMNS']) + except (KeyError, ValueError): + terminal_width = shutil.get_terminal_size(fallback=(80, 24)).columns + + if separate_head: + field_names = lns[0] + data_rows = lns[1:] + show_header = True + else: + field_names = [str(i) for i in range(len(lns[0]))] + data_rows = lns + show_header = False - str_parts.append("-" * (sum(widths) + 3 * (len(widths) - 1))) + if separate_footer and len(data_rows) > 1: + table = _make_table(field_names, data_rows, show_header, + hrules=HRuleStyle.ALL) + else: + table = _make_table(field_names, data_rows, show_header) - return '\n'.join(str_parts) + return _fit_table_to_width(table, terminal_width) def to_csv(lines: Iterable[str]) -> str: @@ -186,8 +316,8 @@ def to_csv(lines: Iterable[str]) -> str: def to_dictlist(key_list, lines): """ Pretty-print the given two-dimensional array's lines into a JSON - object list. The key_list acts as the "header" of the table, specifying the - keys to use in the resulting object. + object list. The key_list acts as the "header" of the table, specifying + the keys to use in the resulting object. This function expects values to be the same number as the length of key_list, and that the order of values in a line corresponds to the order diff --git a/tools/report-converter/requirements_py/dev/requirements.txt b/tools/report-converter/requirements_py/dev/requirements.txt index 27d1690274..a649ccd39f 100644 --- a/tools/report-converter/requirements_py/dev/requirements.txt +++ b/tools/report-converter/requirements_py/dev/requirements.txt @@ -7,3 +7,4 @@ mypy<=1.7.1 setuptools~=80.0 PyYAML~=6.0 types-PyYAML~=6.0 +prettytable~=3.0 diff --git a/web/tests/functional/store/test_store.py b/web/tests/functional/store/test_store.py index 18d7e42d0d..90011cfe78 100644 --- a/web/tests/functional/store/test_store.py +++ b/web/tests/functional/store/test_store.py @@ -511,5 +511,4 @@ def test_store_stats(self): _, out, _ = _call_cmd(store_cmd) # There are 9 individual reports, but only 6 unique. # The statistics should only print the unique ones. - self.assertIn("Number of analyzer reports | 6", - out) + self.assertRegex(out, r"Number of analyzer reports\s+│\s+6\s+│")