Preparing report...

Report for github.com/omec-project/pcf

(v1.4.2)

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


gocyclo89%

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.

    • producer/smpolicy.go
    • Line 383: warning: cyclomatic complexity 86 of function updateSmPolicyContextProcedure() is high (> 15) (gocyclo)
    • Line 756: warning: cyclomatic complexity 46 of function sendSmPolicyRelatedAppSessionNotification() is high (> 15) (gocyclo)
    • Line 48: warning: cyclomatic complexity 30 of function createSMPolicyProcedure() is high (> 15) (gocyclo)
    • producer/policyauthorization.go
    • Line 154: warning: cyclomatic complexity 54 of function postAppSessCtxProcedure() is high (> 15) (gocyclo)
    • Line 546: warning: cyclomatic complexity 52 of function ModAppSessionContextProcedure() is high (> 15) (gocyclo)
    • Line 1336: warning: cyclomatic complexity 35 of function updateQosInMedComp() is high (> 15) (gocyclo)
    • Line 1467: warning: cyclomatic complexity 34 of function updateQosInMedSubComp() is high (> 15) (gocyclo)
    • Line 926: warning: cyclomatic complexity 24 of function UpdateEventsSubscContextProcedure() is high (> 15) (gocyclo)
    • service/init.go
    • Line 512: warning: cyclomatic complexity 33 of function getPccRules() is high (> 15) (gocyclo)
    • Line 646: warning: cyclomatic complexity 29 of function (*PCF).UpdatePcfSubsriberPolicyData() is high (> 15) (gocyclo)
    • Line 629: warning: cyclomatic complexity 20 of function findQosData() is high (> 15) (gocyclo)
    • context/ue.go
    • Line 168: warning: cyclomatic complexity 29 of function (*UeSmPolicyData).RemovePccRule() is high (> 15) (gocyclo)
    • producer/ampolicy.go
    • Line 209: warning: cyclomatic complexity 21 of function PostPoliciesProcedure() is high (> 15) (gocyclo)
    • Line 113: warning: cyclomatic complexity 16 of function UpdatePostPoliciesPolAssoIdProcedure() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words