mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-12 20:13:59 +02:00
Correct initialisms as suggested by golint
First step to use initialisms that golint suggests, for example: Line 116: func GetHtmlRenderer should be GetHTMLRenderer as see on http://goreportcard.com/report/spf13/hugo Thanks to @bep for the idea! Note that command-line flags (cobra and pflag) as well as struct fields like .BaseUrl and .Url that are used in Go HTML templates need more work to maintain backward-compatibility, and thus are NOT yet dealt with in this commit. First step in fixing #959.
This commit is contained in:
@@ -54,7 +54,7 @@ func TestChainZeroTransformers(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkAbsUrl(b *testing.B) {
|
||||
func BenchmarkAbsURL(b *testing.B) {
|
||||
absURL, _ := AbsURL("http://base")
|
||||
tr := NewChain(absURL...)
|
||||
|
||||
@@ -64,7 +64,7 @@ func BenchmarkAbsUrl(b *testing.B) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestAbsUrl(t *testing.T) {
|
||||
func TestAbsURL(t *testing.T) {
|
||||
absURL, _ := AbsURL("http://base")
|
||||
tr := NewChain(absURL...)
|
||||
|
||||
@@ -72,7 +72,7 @@ func TestAbsUrl(t *testing.T) {
|
||||
|
||||
}
|
||||
|
||||
func BenchmarkXmlAbsUrl(b *testing.B) {
|
||||
func BenchmarkXMLAbsURL(b *testing.B) {
|
||||
absURLInXML, _ := AbsURLInXML("http://base")
|
||||
tr := NewChain(absURLInXML...)
|
||||
|
||||
@@ -82,7 +82,7 @@ func BenchmarkXmlAbsUrl(b *testing.B) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestXMLAbsUrl(t *testing.T) {
|
||||
func TestXMLAbsURL(t *testing.T) {
|
||||
absURLInXML, _ := AbsURLInXML("http://base")
|
||||
tr := NewChain(absURLInXML...)
|
||||
apply(t.Errorf, tr, xml_abs_url_tests)
|
||||
|
Reference in New Issue
Block a user