memgraph/tools/github/clang-tidy/count_errors.sh
János Benjamin Antal 6d4fe5cdd5
Explore and implement the usage of clang-tidy and sanitizers (#125)
* Run clang-tidy on the full code base

* Run clang-tidy on diffs

* Enable ASAN in coverage build

* Add UBSAN to code analysis
2021-04-01 17:08:40 +02:00

10 lines
459 B
Bash
Executable File

#!/bin/bash
# the first sort | uniq is necessary, because the same occurrence of the same error
# can be reported from headers when they are included in multiple source files
`dirname ${BASH_SOURCE[0]}`/grep_error_lines.sh |
sort | uniq |
sed -E 's/.*\[(.*)\]\r?$/\1/g' | # extract the check name from [check-name]
sort | uniq -c | # count each type of check
sort -nr # sort them into descending order