Skip to content

Commit

Permalink
fix scorer
Browse files Browse the repository at this point in the history
  • Loading branch information
derailed committed Aug 3, 2019
1 parent 28fbb53 commit 79cbd43
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
23 changes: 23 additions & 0 deletions change_logs/release_v0.4.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<img src="https://raw.githubusercontent.com/derailed/popeye/master/assets/popeye.png" align="right" width="200" height="auto"/>

# Release v0.4.0

## Notes

Thank you so much for your support and suggestions to make Popeye better!!

If you dig this tool, please make some noise on social! [@kitesurfer](https://twitter.com/kitesurfer)

---

## Change Logs

Oops! Broke the scorer ;(

---

## Resolved Bugs

---

<img src="https://raw.githubusercontent.com/derailed/popeye/master/assets/imhotep_logo.png" width="32" height="auto"/>&nbsp; © 2019 Imhotep Software LLC. All materials licensed under [Apache v2.0](http://www.apache.org/licenses/LICENSE-2.0)
4 changes: 2 additions & 2 deletions internal/report/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ func (b *Builder) PrintSummary(s *Sanitizer) {
b.augment()
s.Open("SUMMARY", nil)
{
fmt.Fprintf(s, "Your cluster score: %d -- %s\n", b.Report.totalScore, b.Report.Grade)
for _, l := range s.Badge(b.Report.totalScore) {
fmt.Fprintf(s, "Your cluster score: %d -- %s\n", b.Report.Score, b.Report.Grade)
for _, l := range s.Badge(b.Report.Score) {
fmt.Fprintf(s, "%s%s\n", strings.Repeat(" ", Width-20), l)
}
}
Expand Down

0 comments on commit 79cbd43

Please sign in to comment.