Skip to content

Commit

Permalink
fix: don't gather/print defect statistics from fixed defects function
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Aug 17, 2023
1 parent 33abebd commit d8d57af
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ get_fixes () {
# $? - return value is always 0
evaluate_and_print_fixes () {
if [[ -s ../fixes.log ]]; then
gather_statistics "../defects.log"
print_statistics

echo -e "${GREEN}Fixed defects${NOCOLOR}"
csgrep ../fixes.log
else
Expand Down
3 changes: 0 additions & 3 deletions test/evaluate_and_print_fixes.bats
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ setup () {
run evaluate_and_print_fixes
assert_success
assert_output "\
::group::📊 Statistics of defects
::endgroup::
✅ Fixed defects
Error: SHELLCHECK_WARNING:
src/index.sh:7:3: note[SC1091]: Not following: functions.sh: openBinaryFile: does not exist (No such file or directory)"
Expand Down

0 comments on commit d8d57af

Please sign in to comment.