Skip to content

Commit

Permalink
-Fixbug:code style error
Browse files Browse the repository at this point in the history
  • Loading branch information
wgliang committed Dec 14, 2017
1 parent 05bf51b commit 8803fda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engine/report2html.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,17 @@ func (hd *HtmlData) converterCodeStyle(structData Reporter) {
codeLintHtmlData := converterCodeLint(structData)
codeStyleHtmlData.Summary.FilesNum = codeStyleHtmlData.Summary.FilesNum + codeLintHtmlData.filesNum
codeStyleHtmlData.Summary.IssuesNum = codeStyleHtmlData.Summary.IssuesNum + codeLintHtmlData.issuesNum
codeStyleHtmlData.Content.MissSpell = codeLintHtmlData
codeStyleHtmlData.Content.GoLint = codeLintHtmlData

codeFmtHtmlData := converterCodeFmt(structData)
codeStyleHtmlData.Summary.FilesNum = codeStyleHtmlData.Summary.FilesNum + codeFmtHtmlData.filesNum
codeStyleHtmlData.Summary.IssuesNum = codeStyleHtmlData.Summary.IssuesNum + codeFmtHtmlData.issuesNum
codeStyleHtmlData.Content.MissSpell = codeFmtHtmlData
codeStyleHtmlData.Content.GoFmt = codeFmtHtmlData

codeVetHtmlData := converterCodeVet(structData)
codeStyleHtmlData.Summary.FilesNum = codeStyleHtmlData.Summary.FilesNum + codeVetHtmlData.filesNum
codeStyleHtmlData.Summary.IssuesNum = codeStyleHtmlData.Summary.IssuesNum + codeVetHtmlData.issuesNum
codeStyleHtmlData.Content.MissSpell = codeVetHtmlData
codeStyleHtmlData.Content.GoVet = codeVetHtmlData

stringCodeStyleJson, err := jsoniter.Marshal(codeStyleHtmlData)
if err != nil {
Expand Down

0 comments on commit 8803fda

Please sign in to comment.