Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
go vet
examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.
No problems detected. Good job!
Gocyclo calculates cyclomatic complexities of functions in Go source code.
The cyclomatic complexity of a function is calculated according to the following rules:
1 is the base complexity of a function
+1 for each 'if', 'for', 'case', '&&' or '||'
Go Report Card warns on functions with cyclomatic complexity > 15.
No problems detected. Good job!
Golint is a linter for Go source code.
-
wordpress-xml-go/hugo/tohugo.go
- Line 1: warning: package comment should be of the form "Package hugo ..." (golint)
- Line 14: warning: exported type Post should have comment or be unexported (golint)
- Line 25: warning: exported type WxrConverter should have comment or be unexported (golint)
- Line 30: warning: exported function URLFuncDefaultFunc should have comment or be unexported (golint)
- Line 37: warning: exported function DisqusIDDefaultFunc should have comment or be unexported (golint)
- Line 44: warning: exported method WxrConverter.ConvertPosts should have comment or be unexported (golint)
- Line 60: warning: exported method WxrConverter.ConvertPost should have comment or be unexported (golint)
- Line 90: warning: exported function ConvertWxrItemCategories should have comment or be unexported (golint)
- Line 98: warning: exported function Convert should have comment or be unexported (golint)
-
wordpress-xml-go/wordpressxml.go
- Line 1: warning: package comment should be of the form "Package wordpressxml ..." (golint)
- Line 15: warning: exported type WpXml should have comment or be unexported (golint)
- Line 21: warning: exported function NewWpXml should have comment or be unexported (golint)
- Line 27: warning: comment on exported method WpXml.ReadFile should be of the form "ReadFile ..." (golint)
- Line 99: warning: exported method WpXml.AuthorsToIndex should have comment or be unexported (golint)
- Line 143: warning: exported type Rss should have comment or be unexported (golint)
- Line 147: warning: exported type Channel should have comment or be unexported (golint)
- Line 194: warning: exported type Category should have comment or be unexported (golint)
- Line 200: warning: exported type Comment should have comment or be unexported (golint)
-
wordpress-xml-go/wxr.go
- Line 1: warning: package comment should be of the form "Package wordpressxml ..." (golint)
- Line 10: warning: exported function ReadFileWXR should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!