Skip to content

Commit

Permalink
remove line numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
porter-stripe committed Sep 26, 2024
1 parent b48a068 commit 6c3ab6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/find-dead-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ jobs:
run: |
# Run Periphery scan with the configuration file
periphery scan --config .periphery.yml 2>&1 | sed 's#.*/##' | grep 'is unused' | sort > periphery_report_feature_formatted.txt
periphery scan --config .periphery.yml 2>&1 | sed 's#.*/##; s/:[0-9]\+:[0-9]\+:#: #' | grep 'is unused' | sort > periphery_report_feature_formatted_sorted.txt
- name: Compare Periphery output with master baseline
id: compare-dead-code
run: |
git fetch origin master:master
git checkout master
periphery scan --config .periphery.yml 2>&1 | sed 's#.*/##' | grep 'is unused' | sort > periphery_report_master_formatted_sorted.txt
periphery scan --config .periphery.yml 2>&1 | sed 's#.*/##; s/:[0-9]\+:[0-9]\+:#: #' | grep 'is unused' | sort > periphery_report_master_formatted_sorted.txt
# Compare the formatted reports
diff_output=$(comm -13 periphery_report_master_formatted_sorted.txt periphery_report_feature_formatted_sorted.txt)
Expand Down

0 comments on commit 6c3ab6e

Please sign in to comment.