Preparing report...

Report for github.com/grokify/go-idmef

A+    Excellent!    Found 4 issues across 5 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

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!


gocyclo100%

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!


golint20%

Golint is a linter for Go source code.

    • go-idmef/constants.go
    • Line 4: warning: exported const IPV4Addr should have comment (or a comment on this block) or be unexported (golint)
    • go-idmef/idmef.go
    • Line 11: warning: exported const XMLNSIDMEFUrl should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported method Message.Bytes should have comment or be unexported (golint)
    • Line 32: warning: exported type Alert should have comment or be unexported (golint)
    • Line 46: warning: exported type Heartbeat should have comment or be unexported (golint)
    • Line 53: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 61: warning: exported type Time should have comment or be unexported (golint)
    • Line 66: warning: exported function NewTime should have comment or be unexported (golint)
    • Line 72: warning: exported method Time.InflateNtpStamp should have comment or be unexported (golint)
    • Line 76: warning: exported type Source should have comment or be unexported (golint)
    • Line 85: warning: exported type Target should have comment or be unexported (golint)
    • Line 95: warning: exported type Node should have comment or be unexported (golint)
    • Line 103: warning: exported type Address should have comment or be unexported (golint)
    • Line 110: warning: exported type User should have comment or be unexported (golint)
    • Line 116: warning: exported type UserId should have comment or be unexported (golint)
    • Line 123: warning: exported type Process should have comment or be unexported (golint)
    • Line 131: warning: exported type Service should have comment or be unexported (golint)
    • Line 139: warning: exported type WebService should have comment or be unexported (golint)
    • Line 145: warning: exported type File should have comment or be unexported (golint)
    • Line 154: warning: exported type FileAccess should have comment or be unexported (golint)
    • Line 159: warning: exported type Permission should have comment or be unexported (golint)
    • Line 163: warning: exported type Linkage should have comment or be unexported (golint)
    • Line 169: warning: exported type Classification should have comment or be unexported (golint)
    • Line 175: warning: exported type Reference should have comment or be unexported (golint)
    • Line 182: warning: exported type Assessment should have comment or be unexported (golint)
    • Line 188: warning: exported type Impact should have comment or be unexported (golint)
    • Line 194: warning: exported type Action should have comment or be unexported (golint)
    • Line 199: warning: exported type Confidence should have comment or be unexported (golint)
    • Line 203: warning: exported type CorrelationAlert should have comment or be unexported (golint)
    • Line 208: warning: exported type AlertIdent should have comment or be unexported (golint)
    • Line 213: warning: exported type AdditionalData should have comment or be unexported (golint)
    • go-idmef/unmarshal/idmef.go
    • Line 11: warning: exported type Message should have comment or be unexported (golint)
    • Line 19: warning: exported function ReadFile should have comment or be unexported (golint)
    • Line 32: warning: exported method Message.Common should have comment or be unexported (golint)
    • Line 45: warning: exported method Message.Bytes should have comment or be unexported (golint)
    • Line 52: warning: exported type Alert should have comment or be unexported (golint)
    • Line 66: warning: exported method Alert.Common should have comment or be unexported (golint)
    • Line 101: warning: exported type Heartbeat should have comment or be unexported (golint)
    • Line 108: warning: exported method Heartbeat.Common should have comment or be unexported (golint)
    • Line 120: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 128: warning: exported method Analyzer.Common should have comment or be unexported (golint)
    • Line 142: warning: exported type Time should have comment or be unexported (golint)
    • Line 147: warning: exported method Time.Common should have comment or be unexported (golint)
    • Line 153: warning: exported type Source should have comment or be unexported (golint)
    • Line 162: warning: exported method Source.Common should have comment or be unexported (golint)
    • Line 181: warning: exported type Target should have comment or be unexported (golint)
    • Line 191: warning: exported method Target.Common should have comment or be unexported (golint)
    • Line 213: warning: exported type Node should have comment or be unexported (golint)
    • Line 221: warning: exported method Node.Common should have comment or be unexported (golint)
    • Line 233: warning: exported type Address should have comment or be unexported (golint)
    • Line 240: warning: exported method Address.Common should have comment or be unexported (golint)
    • Line 248: warning: exported type User should have comment or be unexported (golint)
    • Line 254: warning: exported method User.Common should have comment or be unexported (golint)
    • Line 265: warning: exported type UserId should have comment or be unexported (golint)
    • Line 272: warning: exported method UserId.Common should have comment or be unexported (golint)
    • Line 280: warning: exported type Process should have comment or be unexported (golint)
    • Line 288: warning: exported method Process.Common should have comment or be unexported (golint)
    • Line 297: warning: exported type Service should have comment or be unexported (golint)
    • Line 305: warning: exported method Service.Common should have comment or be unexported (golint)
    • Line 317: warning: exported type WebService should have comment or be unexported (golint)
    • Line 323: warning: exported method WebService.Common should have comment or be unexported (golint)
    • Line 330: warning: exported type File should have comment or be unexported (golint)
    • Line 339: warning: exported method File.Common should have comment or be unexported (golint)
    • Line 355: warning: exported type FileAccess should have comment or be unexported (golint)
    • Line 360: warning: exported method FileAccess.Common should have comment or be unexported (golint)
    • Line 373: warning: exported type Permission should have comment or be unexported (golint)
    • Line 377: warning: exported method Permission.Common should have comment or be unexported (golint)
    • Line 382: warning: exported type Linkage should have comment or be unexported (golint)
    • Line 388: warning: exported method Linkage.Common should have comment or be unexported (golint)
    • Line 395: warning: exported type Classification should have comment or be unexported (golint)
    • Line 401: warning: exported method Classification.Common should have comment or be unexported (golint)
    • Line 412: warning: exported type Reference should have comment or be unexported (golint)
    • Line 419: warning: exported method Reference.Common should have comment or be unexported (golint)
    • Line 427: warning: exported type Assessment should have comment or be unexported (golint)
    • Line 433: warning: exported method Assessment.Common should have comment or be unexported (golint)
    • Line 448: warning: exported type Impact should have comment or be unexported (golint)
    • Line 454: warning: exported method Impact.Common should have comment or be unexported (golint)
    • Line 461: warning: exported type Action should have comment or be unexported (golint)
    • Line 466: warning: exported method Action.Common should have comment or be unexported (golint)
    • Line 472: warning: exported type Confidence should have comment or be unexported (golint)
    • Line 476: warning: exported method Confidence.Common should have comment or be unexported (golint)
    • Line 481: warning: exported type CorrelationAlert should have comment or be unexported (golint)
    • Line 486: warning: exported method CorrelationAlert.Common should have comment or be unexported (golint)
    • Line 496: warning: exported type AlertIdent should have comment or be unexported (golint)
    • Line 501: warning: exported method AlertIdent.Common should have comment or be unexported (golint)
    • Line 507: warning: exported type AdditionalData should have comment or be unexported (golint)
    • Line 514: warning: exported method AdditionalData.Common should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!