Preparing report...

Report for github.com/omec-project/openapi

(v1.2.0)

A+    Excellent!    Found 120 issues across 828 files

Tweet

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!


gofmt98%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo86%

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.

    • Npcf_PolicyAuthorization/api_individual_application_session_context_document.go
    • Line 50: warning: cyclomatic complexity 32 of function (*IndividualApplicationSessionContextDocumentApiService).DeleteAppSession() is high (> 15) (gocyclo)
    • Line 359: warning: cyclomatic complexity 29 of function (*IndividualApplicationSessionContextDocumentApiService).ModAppSession() is high (> 15) (gocyclo)
    • Line 222: warning: cyclomatic complexity 23 of function (*IndividualApplicationSessionContextDocumentApiService).GetAppSession() is high (> 15) (gocyclo)
    • Nnrf_NFManagement/api_nf_instance_id_document.go
    • Line 264: warning: cyclomatic complexity 28 of function (*NFInstanceIDDocumentApiService).RegisterNFInstance() is high (> 15) (gocyclo)
    • Line 429: warning: cyclomatic complexity 27 of function (*NFInstanceIDDocumentApiService).UpdateNFInstance() is high (> 15) (gocyclo)
    • Line 111: warning: cyclomatic complexity 26 of function (*NFInstanceIDDocumentApiService).GetNFInstance() is high (> 15) (gocyclo)
    • Npcf_SMPolicyControl/api_default.go
    • Line 494: warning: cyclomatic complexity 28 of function (*DefaultApiService).SmPoliciesSmPolicyIdUpdatePost() is high (> 15) (gocyclo)
    • Line 42: warning: cyclomatic complexity 27 of function (*DefaultApiService).SmPoliciesPost() is high (> 15) (gocyclo)
    • Line 198: warning: cyclomatic complexity 27 of function (*DefaultApiService).SmPoliciesSmPolicyIdDeletePost() is high (> 15) (gocyclo)
    • Line 357: warning: cyclomatic complexity 23 of function (*DefaultApiService).SmPoliciesSmPolicyIdGet() is high (> 15) (gocyclo)
    • Npcf_SMPolicyControl/api_dafult_notify_callback.go
    • Line 27: warning: cyclomatic complexity 28 of function (*DefaultCallbackApi).SmPolicyUpdateNotification() is high (> 15) (gocyclo)
    • Line 176: warning: cyclomatic complexity 26 of function (*DefaultCallbackApi).SmPolicyControlTerminationRequestNotification() is high (> 15) (gocyclo)
    • Namf_Communication/api_individual_subscription_document.go
    • Line 43: warning: cyclomatic complexity 24 of function (*IndividualSubscriptionDocumentApiService).AMFStatusChangeSubscribeModfy() is high (> 15) (gocyclo)
    • Line 186: warning: cyclomatic complexity 17 of function (*IndividualSubscriptionDocumentApiService).AMFStatusChangeUnSubscribe() is high (> 15) (gocyclo)
    • Nsmf_EventExposure/api_default.go
    • Line 629: warning: cyclomatic complexity 29 of function (*DefaultApiService).SubscriptionsSubIdPut() is high (> 15) (gocyclo)
    • Line 201: warning: cyclomatic complexity 28 of function (*DefaultApiService).SubscriptionsPost() is high (> 15) (gocyclo)
    • Line 45: warning: cyclomatic complexity 28 of function (*DefaultCallbackApi).SmfEventExposureNotification() is high (> 15) (gocyclo)
    • Line 492: warning: cyclomatic complexity 23 of function (*DefaultApiService).SubscriptionsSubIdGet() is high (> 15) (gocyclo)
    • Line 363: warning: cyclomatic complexity 21 of function (*DefaultApiService).SubscriptionsSubIdDelete() is high (> 15) (gocyclo)
    • Npcf_AMPolicy/api_default.go
    • Line 471: warning: cyclomatic complexity 28 of function (*DefaultApiService).PoliciesPost() is high (> 15) (gocyclo)
    • Line 307: warning: cyclomatic complexity 28 of function (*DefaultApiService).PoliciesPolAssoIdUpdatePost() is high (> 15) (gocyclo)
    • Line 170: warning: cyclomatic complexity 23 of function (*DefaultApiService).PoliciesPolAssoIdGet() is high (> 15) (gocyclo)
    • Line 41: warning: cyclomatic complexity 21 of function (*DefaultApiService).PoliciesPolAssoIdDelete() is high (> 15) (gocyclo)
    • Npcf_AMPolicy/api_default_callback.go
    • Line 34: warning: cyclomatic complexity 28 of function (*DefaultCallbackApiService).PolicyUpdateNotification() is high (> 15) (gocyclo)
    • Line 187: warning: cyclomatic complexity 28 of function (*DefaultCallbackApiService).PolicyAssocitionTerminationRequestNotification() is high (> 15) (gocyclo)
    • client.go
    • Line 337: warning: cyclomatic complexity 36 of function PrepareRequest() is high (> 15) (gocyclo)
    • Line 161: warning: cyclomatic complexity 22 of function getContentID() is high (> 15) (gocyclo)
    • Namf_Communication/api_individual_ue_context_document.go
    • Line 42: warning: cyclomatic complexity 41 of function (*IndividualUeContextDocumentApiService).CreateUEContext() is high (> 15) (gocyclo)
    • Line 351: warning: cyclomatic complexity 26 of function (*IndividualUeContextDocumentApiService).RegistrationStatusUpdate() is high (> 15) (gocyclo)
    • Line 653: warning: cyclomatic complexity 25 of function (*IndividualUeContextDocumentApiService).UEContextTransfer() is high (> 15) (gocyclo)
    • Line 504: warning: cyclomatic complexity 25 of function (*IndividualUeContextDocumentApiService).ReleaseUEContext() is high (> 15) (gocyclo)
    • Line 206: warning: cyclomatic complexity 24 of function (*IndividualUeContextDocumentApiService).EBIAssignment() is high (> 15) (gocyclo)
    • Nudr_DataRepository/api_default.go
    • Line 57: warning: cyclomatic complexity 35 of function (*DefaultApiService).ApplicationDataInfluenceDataGet() is high (> 15) (gocyclo)
    • Line 705: warning: cyclomatic complexity 33 of function (*DefaultApiService).ApplicationDataInfluenceDataSubsToNotifyGet() is high (> 15) (gocyclo)
    • Line 513: warning: cyclomatic complexity 33 of function (*DefaultApiService).ApplicationDataInfluenceDataInfluenceIdPut() is high (> 15) (gocyclo)
    • Line 1730: warning: cyclomatic complexity 33 of function (*DefaultApiService).ApplicationDataPfdsAppIdPut() is high (> 15) (gocyclo)
    • Line 2791: warning: cyclomatic complexity 32 of function (*DefaultApiService).PolicyDataBdtDataBdtReferenceIdPut() is high (> 15) (gocyclo)
    • Line 5093: warning: cyclomatic complexity 32 of function (*DefaultApiService).PolicyDataUesUeIdSmDataUsageMonIdPut() is high (> 15) (gocyclo)
    • Line 5579: warning: cyclomatic complexity 31 of function (*DefaultApiService).PolicyDataUesUeIdUePolicySetPut() is high (> 15) (gocyclo)
    • Line 3387: warning: cyclomatic complexity 31 of function (*DefaultApiService).PolicyDataSubsToNotifyPost() is high (> 15) (gocyclo)
    • Line 3690: warning: cyclomatic complexity 31 of function (*DefaultApiService).PolicyDataSubsToNotifySubsIdPut() is high (> 15) (gocyclo)
    • Line 4483: warning: cyclomatic complexity 31 of function (*DefaultApiService).PolicyDataUesUeIdSmDataGet() is high (> 15) (gocyclo)
    • Line 5409: warning: cyclomatic complexity 30 of function (*DefaultApiService).PolicyDataUesUeIdUePolicySetPatch() is high (> 15) (gocyclo)
    • Line 4643: warning: cyclomatic complexity 30 of function (*DefaultApiService).PolicyDataUesUeIdSmDataPatch() is high (> 15) (gocyclo)
    • Line 1299: warning: cyclomatic complexity 29 of function (*DefaultApiService).ApplicationDataInfluenceDataSubsToNotifySubscriptionIdPut() is high (> 15) (gocyclo)
    • Line 346: warning: cyclomatic complexity 29 of function (*DefaultApiService).ApplicationDataInfluenceDataInfluenceIdPatch() is high (> 15) (gocyclo)
    • Line 862: warning: cyclomatic complexity 28 of function (*DefaultApiService).ApplicationDataInfluenceDataSubsToNotifyPost() is high (> 15) (gocyclo)
    • Line 2066: warning: cyclomatic complexity 28 of function (*DefaultApiService).ExposureDataSubsToNotifyPost() is high (> 15) (gocyclo)
    • Line 4309: warning: cyclomatic complexity 28 of function (*DefaultApiService).PolicyDataUesUeIdOperatorSpecificDataPut() is high (> 15) (gocyclo)
    • Line 2358: warning: cyclomatic complexity 28 of function (*DefaultApiService).ExposureDataSubsToNotifySubIdPut() is high (> 15) (gocyclo)
    • Line 1916: warning: cyclomatic complexity 28 of function (*DefaultApiService).ApplicationDataPfdsGet() is high (> 15) (gocyclo)
    • Line 4002: warning: cyclomatic complexity 27 of function (*DefaultApiService).PolicyDataUesUeIdOperatorSpecificDataGet() is high (> 15) (gocyclo)
    • Line 4939: warning: cyclomatic complexity 26 of function (*DefaultApiService).PolicyDataUesUeIdSmDataUsageMonIdGet() is high (> 15) (gocyclo)
    • Line 4151: warning: cyclomatic complexity 26 of function (*DefaultApiService).PolicyDataUesUeIdOperatorSpecificDataPatch() is high (> 15) (gocyclo)
    • Line 3099: warning: cyclomatic complexity 25 of function (*DefaultApiService).PolicyDataPlmnsPlmnIdUePolicySetGet() is high (> 15) (gocyclo)
    • Line 1153: warning: cyclomatic complexity 25 of function (*DefaultApiService).ApplicationDataInfluenceDataSubsToNotifySubscriptionIdGet() is high (> 15) (gocyclo)
    • Line 3244: warning: cyclomatic complexity 24 of function (*DefaultApiService).PolicyDataSponsorConnectivityDataSponsorIdGet() is high (> 15) (gocyclo)
    • Line 2964: warning: cyclomatic complexity 23 of function (*DefaultApiService).PolicyDataBdtDataGet() is high (> 15) (gocyclo)
    • Line 2650: warning: cyclomatic complexity 23 of function (*DefaultApiService).PolicyDataBdtDataBdtReferenceIdGet() is high (> 15) (gocyclo)
    • Line 1593: warning: cyclomatic complexity 23 of function (*DefaultApiService).ApplicationDataPfdsAppIdGet() is high (> 15) (gocyclo)
    • Line 5268: warning: cyclomatic complexity 23 of function (*DefaultApiService).PolicyDataUesUeIdUePolicySetGet() is high (> 15) (gocyclo)
    • Line 3860: warning: cyclomatic complexity 23 of function (*DefaultApiService).PolicyDataUesUeIdAmDataGet() is high (> 15) (gocyclo)
    • Line 3555: warning: cyclomatic complexity 21 of function (*DefaultApiService).PolicyDataSubsToNotifySubsIdDelete() is high (> 15) (gocyclo)
    • Line 4808: warning: cyclomatic complexity 21 of function (*DefaultApiService).PolicyDataUesUeIdSmDataUsageMonIdDelete() is high (> 15) (gocyclo)
    • Line 2521: warning: cyclomatic complexity 21 of function (*DefaultApiService).PolicyDataBdtDataBdtReferenceIdDelete() is high (> 15) (gocyclo)
    • Line 1464: warning: cyclomatic complexity 21 of function (*DefaultApiService).ApplicationDataPfdsAppIdDelete() is high (> 15) (gocyclo)
    • Line 216: warning: cyclomatic complexity 21 of function (*DefaultApiService).ApplicationDataInfluenceDataInfluenceIdDelete() is high (> 15) (gocyclo)
    • Line 1024: warning: cyclomatic complexity 21 of function (*DefaultApiService).ApplicationDataInfluenceDataSubsToNotifySubscriptionIdDelete() is high (> 15) (gocyclo)
    • Line 2228: warning: cyclomatic complexity 21 of function (*DefaultApiService).ExposureDataSubsToNotifySubIdDelete() is high (> 15) (gocyclo)
    • Nudr_DataRepository/api_access_and_mobility_data.go
    • Line 49: warning: cyclomatic complexity 30 of function (*AccessAndMobilityDataApiService).CreateAccessAndMobilityData() is high (> 15) (gocyclo)
    • Line 348: warning: cyclomatic complexity 27 of function (*AccessAndMobilityDataApiService).QueryAccessAndMobilityData() is high (> 15) (gocyclo)
    • Line 213: warning: cyclomatic complexity 21 of function (*AccessAndMobilityDataApiService).DeleteAccessAndMobilityData() is high (> 15) (gocyclo)
    • PfdManagement/api_default.go
    • Line 632: warning: cyclomatic complexity 30 of function (*DefaultApiService).ScsAsIdTransactionsTransactionIdApplicationsAppIdPatch() is high (> 15) (gocyclo)
    • Line 810: warning: cyclomatic complexity 30 of function (*DefaultApiService).ScsAsIdTransactionsTransactionIdApplicationsAppIdPut() is high (> 15) (gocyclo)
    • Line 1262: warning: cyclomatic complexity 28 of function (*DefaultApiService).ScsAsIdTransactionsTransactionIdPut() is high (> 15) (gocyclo)
    • Line 186: warning: cyclomatic complexity 28 of function (*DefaultApiService).ScsAsIdTransactionsPost() is high (> 15) (gocyclo)
    • Line 484: warning: cyclomatic complexity 24 of function (*DefaultApiService).ScsAsIdTransactionsTransactionIdApplicationsAppIdGet() is high (> 15) (gocyclo)
    • Line 42: warning: cyclomatic complexity 24 of function (*DefaultApiService).ScsAsIdTransactionsGet() is high (> 15) (gocyclo)
    • Line 1116: warning: cyclomatic complexity 24 of function (*DefaultApiService).ScsAsIdTransactionsTransactionIdGet() is high (> 15) (gocyclo)
    • Line 985: warning: cyclomatic complexity 21 of function (*DefaultApiService).ScsAsIdTransactionsTransactionIdDelete() is high (> 15) (gocyclo)
    • Line 351: warning: cyclomatic complexity 21 of function (*DefaultApiService).ScsAsIdTransactionsTransactionIdApplicationsAppIdDelete() is high (> 15) (gocyclo)
    • Npcf_UEPolicy/api_default.go
    • Line 334: warning: cyclomatic complexity 31 of function (*DefaultApiService).PoliciesPolAssoIdUpdatePost() is high (> 15) (gocyclo)
    • Line 523: warning: cyclomatic complexity 31 of function (*DefaultApiService).PoliciesPost() is high (> 15) (gocyclo)
    • Line 176: warning: cyclomatic complexity 25 of function (*DefaultApiService).PoliciesPolAssoIdGet() is high (> 15) (gocyclo)
    • Line 39: warning: cyclomatic complexity 22 of function (*DefaultApiService).PoliciesPolAssoIdDelete() is high (> 15) (gocyclo)
    • Nsmf_PDUSession/api_individual_sm_context.go
    • Line 366: warning: cyclomatic complexity 29 of function (*IndividualSMContextApiService).UpdateSmContext() is high (> 15) (gocyclo)
    • Line 205: warning: cyclomatic complexity 29 of function (*IndividualSMContextApiService).RetrieveSmContext() is high (> 15) (gocyclo)
    • Line 49: warning: cyclomatic complexity 26 of function (*IndividualSMContextApiService).ReleaseSmContext() is high (> 15) (gocyclo)
    • Nnssf_NSSAIAvailability/api_nf_instance_id_document.go
    • Line 327: warning: cyclomatic complexity 28 of function (*NFInstanceIDDocumentApiService).NSSAIAvailabilityPut() is high (> 15) (gocyclo)
    • Line 162: warning: cyclomatic complexity 28 of function (*NFInstanceIDDocumentApiService).NSSAIAvailabilityPatch() is high (> 15) (gocyclo)
    • Line 41: warning: cyclomatic complexity 19 of function (*NFInstanceIDDocumentApiService).NSSAIAvailabilityDelete() is high (> 15) (gocyclo)
    • Nsmf_PDUSession/api_individual_pdu_session_hsmf.go
    • Line 205: warning: cyclomatic complexity 28 of function (*IndividualPDUSessionHSMFApiService).UpdatePduSession() is high (> 15) (gocyclo)
    • Line 49: warning: cyclomatic complexity 28 of function (*IndividualPDUSessionHSMFApiService).ReleasePduSession() is high (> 15) (gocyclo)
    • Nnrf_NFManagement/api_subscription_id_document.go
    • Line 189: warning: cyclomatic complexity 27 of function (*SubscriptionIDDocumentApiService).UpdateSubscription() is high (> 15) (gocyclo)
    • Line 41: warning: cyclomatic complexity 25 of function (*SubscriptionIDDocumentApiService).RemoveSubscription() is high (> 15) (gocyclo)
    • Nudr_DataRepository/api_pdu_session_management_data.go
    • Line 361: warning: cyclomatic complexity 35 of function (*PduSessionManagementDataApiService).QuerySessionManagementData() is high (> 15) (gocyclo)
    • Line 50: warning: cyclomatic complexity 30 of function (*PduSessionManagementDataApiService).CreateSessionManagementData() is high (> 15) (gocyclo)
    • Line 216: warning: cyclomatic complexity 21 of function (*PduSessionManagementDataApiService).DeleteSessionManagementData() is high (> 15) (gocyclo)
    • Namf_Location/api_individual_ue_context_document.go
    • Line 43: warning: cyclomatic complexity 26 of function (*IndividualUEContextDocumentApiService).ProvideLocationInfo() is high (> 15) (gocyclo)
    • Line 199: warning: cyclomatic complexity 26 of function (*IndividualUEContextDocumentApiService).ProvidePositioningInfo() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!