mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-28 22:39:05 +08:00
give gofmt more weight
This commit is contained in:
@@ -13,7 +13,7 @@ func (g GoCyclo) Name() string {
|
||||
|
||||
// Weight returns the weight this check has in the overall average
|
||||
func (g GoCyclo) Weight() float64 {
|
||||
return .10
|
||||
return .05
|
||||
}
|
||||
|
||||
// Percentage returns the percentage of .go files that pass gofmt
|
||||
|
||||
@@ -13,7 +13,7 @@ func (g GoFmt) Name() string {
|
||||
|
||||
// Weight returns the weight this check has in the overall average
|
||||
func (g GoFmt) Weight() float64 {
|
||||
return .35
|
||||
return .40
|
||||
}
|
||||
|
||||
// Percentage returns the percentage of .go files that pass gofmt
|
||||
|
||||
Reference in New Issue
Block a user