Skip to content

Commit

Permalink
Update main.yml (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh-prakash committed Mar 23, 2022
1 parent 7fb9caa commit f3cfea0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ jobs:
issues_threshold=13
gofmt_score_threshold=100
go_vet_score_threshold=100
golint_score_threshold=98
gocyclo_score_threshold=91
git clone https://github.com/gojp/goreportcard.git
cd goreportcard
Expand All @@ -93,7 +92,6 @@ jobs:
issues=$(cat reportcard.txt| grep 'Issues:' | awk '{print $2}' | tr -d \%)
gofmt_score=$(cat reportcard.txt| grep 'gofmt:' | awk '{print $2}' | tr -d \%)
go_vet_score=$(cat reportcard.txt| grep 'go_vet:' | awk '{print $2}' | tr -d \%)
golint_score=$(cat reportcard.txt| grep 'golint:' | awk '{print $2}' | tr -d \%)
gocyclo_score=$(cat reportcard.txt| grep 'gocyclo:' | awk '{print $2}' | tr -d \%)
rm reportcard.txt
failed_checks=0
Expand All @@ -110,10 +108,6 @@ jobs:
failure_reason="${failure_reason}\ngo-vet score: $go_vet_score. Threshold was: $go_vet_score_threshold."
((failed_checks+=1))
fi
if [[ $golint_score -lt $golint_score_threshold ]]; then
failure_reason="${failure_reason}\ngo-lint score: $golint_score. Threshold was: $golint_score_threshold."
((failed_checks+=1))
fi
if [[ $gocyclo_score -lt $gocyclo_score_threshold ]]; then
failure_reason="${failure_reason}\ngo-cyclo score: $gocyclo_score. Threshold was: $gocyclo_score_threshold."
((failed_checks+=1))
Expand Down

0 comments on commit f3cfea0

Please sign in to comment.