Preparing report...

Report for github.com/omec-project/pfcpsim

(v0.0.0-20220211212237-514e25a2f316)

A+    Excellent!    Found 7 issues across 11 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!


golint36%

Golint is a linter for Go source code.

    • pkg/pfcpsim/errors.go
    • Line 28: warning: exported function NewInvalidCauseError should have comment or be unexported (golint)
    • Line 35: warning: exported function NewAssociationInactiveError should have comment or be unexported (golint)
    • Line 42: warning: exported function NewTimeoutExpiredError should have comment or be unexported (golint)
    • Line 49: warning: exported function NewInvalidResponseError should have comment or be unexported (golint)
    • pkg/pfcpsim/pfcpsim.go
    • Line 18: warning: exported const PFCPStandardPort should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported function NewPFCPClient should have comment or be unexported (golint)
    • Line 124: warning: exported method PFCPClient.ConnectN4 should have comment or be unexported (golint)
    • Line 150: warning: exported method PFCPClient.DisconnectN4 should have comment or be unexported (golint)
    • Line 158: warning: exported method PFCPClient.PeekNextHeartbeatResponse should have comment or be unexported (golint)
    • Line 167: warning: exported method PFCPClient.PeekNextResponse should have comment or be unexported (golint)
    • Line 176: warning: exported method PFCPClient.SendAssociationSetupRequest should have comment or be unexported (golint)
    • Line 190: warning: exported method PFCPClient.SendHeartbeatRequest should have comment or be unexported (golint)
    • Line 200: warning: exported method PFCPClient.SendSessionEstablishmentRequest should have comment or be unexported (golint)
    • Line 218: warning: exported method PFCPClient.SendSessionModificationRequest should have comment or be unexported (golint)
    • Line 234: warning: exported method PFCPClient.SendSessionDeletionRequest should have comment or be unexported (golint)
    • Line 247: warning: exported method PFCPClient.StartHeartbeats should have comment or be unexported (golint)
    • Line 263: warning: exported method PFCPClient.SendAndRecvHeartbeat should have comment or be unexported (golint)
    • Line 307: warning: exported method PFCPClient.IsAssociationAlive should have comment or be unexported (golint)
    • Line 389: warning: exported method PFCPClient.ModifySession should have comment or be unexported (golint)
    • pkg/pfcpsim/session/ies.go
    • Line 6: warning: exported type IEMethod should have comment or be unexported (golint)
    • Line 19: warning: exported const Create should have comment (or a comment on this block) 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!