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.
-
log-transformer/cmd/parser/parser.go
- Line 10: warning: exported const TypeNginx should have comment or be unexported (golint)
- Line 11: warning: exported const TypeNginxAccess should have comment or be unexported (golint)
- Line 13: warning: exported const NginxTimeLocal should have comment or be unexported (golint)
-
log-transformer/utils/filesystem.go
- Line 9: warning: exported const DirSplitChar should have comment or be unexported (golint)
- Line 10: warning: exported const EOL should have comment or be unexported (golint)
- Line 11: warning: exported const EolStr should have comment or be unexported (golint)
-
log-transformer/conf/config.go
- Line 28: warning: exported method Parser.GetType should have comment or be unexported (golint)
- Line 32: warning: exported method Parser.GetTimeField should have comment or be unexported (golint)
- Line 36: warning: exported method Parser.GetFormat should have comment or be unexported (golint)
- Line 48: warning: exported method Transformer.GetType should have comment or be unexported (golint)
- Line 52: warning: exported method Transformer.GetMaxFiles should have comment or be unexported (golint)
- Line 56: warning: exported method Transformer.GetWritePath should have comment or be unexported (golint)
- Line 60: warning: exported method Transformer.GetExtension should have comment or be unexported (golint)
-
log-transformer/cmd/transformer/transformer.go
- Line 15: warning: exported const TransformerLevelError should have comment or be unexported (golint)
- Line 16: warning: exported const TransformerLevelWarn should have comment or be unexported (golint)
- Line 17: warning: exported const TransformerLevelInfo should have comment or be unexported (golint)
- Line 18: warning: exported const TransformerLevelDebug should have comment or be unexported (golint)
- Line 20: warning: exported const TransformerTypeAccess should have comment or be unexported (golint)
- Line 21: warning: exported const TransformerTypeWater should have comment or be unexported (golint)
- Line 22: warning: exported const TransformerTypeFramework should have comment or be unexported (golint)
- Line 24: warning: exported const TransformerTypeCommon 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!