Preparing report...

Report for github.com/harness/ff-proxy

(v1.0.0)

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


gocyclo93%

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.

    • gen/admin/services.gen.go
    • Line 2368: warning: cyclomatic complexity 112 of function NewGetAllFeaturesRequest() is high (> 15) (gocyclo)
    • Line 2922: warning: cyclomatic complexity 76 of function NewGetFeatureMetricsRequest() is high (> 15) (gocyclo)
    • Line 1691: warning: cyclomatic complexity 72 of function NewGetAuditByParamsRequest() is high (> 15) (gocyclo)
    • Line 5033: warning: cyclomatic complexity 51 of function NewGetAllSegmentsRequest() is high (> 15) (gocyclo)
    • Line 6153: warning: cyclomatic complexity 51 of function NewGetTargetsAndSegmentsRequest() is high (> 15) (gocyclo)
    • Line 5799: warning: cyclomatic complexity 51 of function NewGetAllTargetsRequest() is high (> 15) (gocyclo)
    • Line 6858: warning: cyclomatic complexity 47 of function NewGetTargetAvailableSegmentsRequest() is high (> 15) (gocyclo)
    • Line 5547: warning: cyclomatic complexity 47 of function NewGetAvailableFlagsForSegmentRequest() is high (> 15) (gocyclo)
    • Line 1934: warning: cyclomatic complexity 37 of function NewGetAllEnvironmentsRequest() is high (> 15) (gocyclo)
    • Line 4263: warning: cyclomatic complexity 33 of function NewGetAllProjectsRequest() is high (> 15) (gocyclo)
    • Line 3639: warning: cyclomatic complexity 33 of function NewGetFeatureEvaluationsRequest() is high (> 15) (gocyclo)
    • Line 2807: warning: cyclomatic complexity 32 of function NewGetAvailableFeaturePipelinesRequest() is high (> 15) (gocyclo)
    • Line 6042: warning: cyclomatic complexity 31 of function NewGetTargetsAndSegmentsInfoRequest() is high (> 15) (gocyclo)
    • Line 1217: warning: cyclomatic complexity 31 of function NewGetAllAPIKeysRequest() is high (> 15) (gocyclo)
    • Line 4649: warning: cyclomatic complexity 29 of function NewGetProjectFlagsRequest() is high (> 15) (gocyclo)
    • Line 3324: warning: cyclomatic complexity 28 of function NewDeleteFeatureFlagRequest() is high (> 15) (gocyclo)
    • Line 3430: warning: cyclomatic complexity 28 of function NewGetFeatureFlagRequest() is high (> 15) (gocyclo)
    • Line 10712: warning: cyclomatic complexity 26 of function ParsePatchFeatureResponse() is high (> 15) (gocyclo)
    • Line 10313: warning: cyclomatic complexity 23 of function ParseCreateFeatureFlagResponse() is high (> 15) (gocyclo)
    • Line 3547: warning: cyclomatic complexity 23 of function NewPatchFeatureRequestWithBody() is high (> 15) (gocyclo)
    • Line 11974: warning: cyclomatic complexity 23 of function ParsePatchSegmentResponse() is high (> 15) (gocyclo)
    • Line 12643: warning: cyclomatic complexity 23 of function ParseModifyTargetResponse() is high (> 15) (gocyclo)
    • Line 12575: warning: cyclomatic complexity 23 of function ParsePatchTargetResponse() is high (> 15) (gocyclo)
    • Line 1420: warning: cyclomatic complexity 22 of function NewDeleteAPIKeyRequest() is high (> 15) (gocyclo)
    • Line 3944: warning: cyclomatic complexity 22 of function NewPatchFeaturePipelineRequestWithBody() is high (> 15) (gocyclo)
    • Line 4043: warning: cyclomatic complexity 22 of function NewCreateFlagPipelineRequestWithBody() is high (> 15) (gocyclo)
    • Line 6671: warning: cyclomatic complexity 22 of function NewPatchTargetRequestWithBody() is high (> 15) (gocyclo)
    • Line 1603: warning: cyclomatic complexity 22 of function NewUpdateAPIKeyRequestWithBody() is high (> 15) (gocyclo)
    • Line 5713: warning: cyclomatic complexity 22 of function NewGetSegmentFlagsRequest() is high (> 15) (gocyclo)
    • Line 5362: warning: cyclomatic complexity 22 of function NewGetSegmentRequest() is high (> 15) (gocyclo)
    • Line 3847: warning: cyclomatic complexity 22 of function NewGetFeaturePipelineRequest() is high (> 15) (gocyclo)
    • Line 5459: warning: cyclomatic complexity 22 of function NewPatchSegmentRequestWithBody() is high (> 15) (gocyclo)
    • Line 3761: warning: cyclomatic complexity 22 of function NewDeleteFeaturePipelineRequest() is high (> 15) (gocyclo)
    • Line 1506: warning: cyclomatic complexity 22 of function NewGetAPIKeyRequest() is high (> 15) (gocyclo)
    • Line 6770: warning: cyclomatic complexity 22 of function NewModifyTargetRequestWithBody() is high (> 15) (gocyclo)
    • Line 6488: warning: cyclomatic complexity 22 of function NewDeleteTargetRequest() is high (> 15) (gocyclo)
    • Line 6574: warning: cyclomatic complexity 22 of function NewGetTargetRequest() is high (> 15) (gocyclo)
    • Line 5276: warning: cyclomatic complexity 22 of function NewDeleteSegmentRequest() is high (> 15) (gocyclo)
    • Line 7024: warning: cyclomatic complexity 22 of function NewGetTargetSegmentsRequest() is high (> 15) (gocyclo)
    • Line 6407: warning: cyclomatic complexity 21 of function NewUploadTargetsRequestWithBody() is high (> 15) (gocyclo)
    • Line 6328: warning: cyclomatic complexity 21 of function NewGetAllTargetAttributesRequest() is high (> 15) (gocyclo)
    • Line 1339: warning: cyclomatic complexity 21 of function NewAddAPIKeyRequestWithBody() is high (> 15) (gocyclo)
    • Line 10597: warning: cyclomatic complexity 20 of function ParseDeleteFeatureFlagResponse() is high (> 15) (gocyclo)
    • Line 11657: warning: cyclomatic complexity 20 of function ParsePatchGitRepoResponse() is high (> 15) (gocyclo)
    • Line 9706: warning: cyclomatic complexity 20 of function ParseAddAPIKeyResponse() is high (> 15) (gocyclo)
    • Line 2292: warning: cyclomatic complexity 18 of function NewModifyEnvironmentRequestWithBody() is high (> 15) (gocyclo)
    • Line 2207: warning: cyclomatic complexity 18 of function NewGetEnvironmentRequest() is high (> 15) (gocyclo)
    • Line 2133: warning: cyclomatic complexity 18 of function NewDeleteEnvironmentRequest() is high (> 15) (gocyclo)
    • Line 3177: warning: cyclomatic complexity 17 of function NewGetFlagsYamlRequest() is high (> 15) (gocyclo)
    • Line 12420: warning: cyclomatic complexity 17 of function ParseUploadTargetsResponse() is high (> 15) (gocyclo)
    • Line 12366: warning: cyclomatic complexity 17 of function ParseGetAllTargetAttributesResponse() is high (> 15) (gocyclo)
    • Line 12521: warning: cyclomatic complexity 17 of function ParseGetTargetResponse() is high (> 15) (gocyclo)
    • Line 12765: warning: cyclomatic complexity 17 of function ParseGetTargetSegmentsResponse() is high (> 15) (gocyclo)
    • Line 9652: warning: cyclomatic complexity 17 of function ParseGetAllAPIKeysResponse() is high (> 15) (gocyclo)
    • Line 9814: warning: cyclomatic complexity 17 of function ParseGetAPIKeyResponse() is high (> 15) (gocyclo)
    • Line 12204: warning: cyclomatic complexity 17 of function ParseCreateTargetResponse() is high (> 15) (gocyclo)
    • Line 9868: warning: cyclomatic complexity 17 of function ParseUpdateAPIKeyResponse() is high (> 15) (gocyclo)
    • Line 12042: warning: cyclomatic complexity 17 of function ParseGetAvailableFlagsForSegmentResponse() is high (> 15) (gocyclo)
    • Line 12096: warning: cyclomatic complexity 17 of function ParseGetSegmentFlagsResponse() is high (> 15) (gocyclo)
    • Line 12711: warning: cyclomatic complexity 17 of function ParseGetTargetAvailableSegmentsResponse() is high (> 15) (gocyclo)
    • Line 12150: warning: cyclomatic complexity 17 of function ParseGetAllTargetsResponse() is high (> 15) (gocyclo)
    • Line 12258: warning: cyclomatic complexity 17 of function ParseGetTargetsAndSegmentsInfoResponse() is high (> 15) (gocyclo)
    • Line 10543: warning: cyclomatic complexity 17 of function ParseUpdateFlagsYamlResponse() is high (> 15) (gocyclo)
    • Line 9978: warning: cyclomatic complexity 17 of function ParseGetAllEnvironmentsResponse() is high (> 15) (gocyclo)
    • Line 12312: warning: cyclomatic complexity 17 of function ParseGetTargetsAndSegmentsResponse() is high (> 15) (gocyclo)
    • Line 11920: warning: cyclomatic complexity 17 of function ParseGetSegmentResponse() is high (> 15) (gocyclo)
    • Line 11050: warning: cyclomatic complexity 17 of function ParseGetJiraIssuesResponse() is high (> 15) (gocyclo)
    • Line 10942: warning: cyclomatic complexity 17 of function ParsePatchFeaturePipelineResponse() is high (> 15) (gocyclo)
    • Line 11603: warning: cyclomatic complexity 17 of function ParseGetGitRepoResponse() is high (> 15) (gocyclo)
    • Line 11448: warning: cyclomatic complexity 17 of function ParseModifyProjectResponse() is high (> 15) (gocyclo)
    • Line 11167: warning: cyclomatic complexity 17 of function ParseGetUserFlagOverviewResponse() is high (> 15) (gocyclo)
    • Line 10658: warning: cyclomatic complexity 17 of function ParseGetFeatureFlagResponse() is high (> 15) (gocyclo)
    • Line 11502: warning: cyclomatic complexity 17 of function ParseGetProjectFlagsResponse() is high (> 15) (gocyclo)
    • Line 10142: warning: cyclomatic complexity 17 of function ParseGetEnvironmentResponse() is high (> 15) (gocyclo)
    • Line 10381: warning: cyclomatic complexity 17 of function ParseGetAvailableFeaturePipelinesResponse() is high (> 15) (gocyclo)
    • Line 10205: warning: cyclomatic complexity 17 of function ParseModifyEnvironmentResponse() is high (> 15) (gocyclo)
    • Line 11284: warning: cyclomatic complexity 17 of function ParseCreateProjectResponse() is high (> 15) (gocyclo)
    • Line 10888: warning: cyclomatic complexity 17 of function ParseGetFeaturePipelineResponse() is high (> 15) (gocyclo)
    • Line 11718: warning: cyclomatic complexity 17 of function ParseCreateGitRepoResponse() is high (> 15) (gocyclo)
    • Line 10996: warning: cyclomatic complexity 17 of function ParseCreateFlagPipelineResponse() is high (> 15) (gocyclo)
    • Line 10259: warning: cyclomatic complexity 17 of function ParseGetAllFeaturesResponse() is high (> 15) (gocyclo)
    • Line 11104: warning: cyclomatic complexity 17 of function ParseGetOSByIDResponse() is high (> 15) (gocyclo)
    • Line 10435: warning: cyclomatic complexity 17 of function ParseGetFeatureMetricsResponse() is high (> 15) (gocyclo)
    • Line 11221: warning: cyclomatic complexity 17 of function ParseGetAllProjectsResponse() is high (> 15) (gocyclo)
    • Line 10489: warning: cyclomatic complexity 17 of function ParseGetFlagsYamlResponse() is high (> 15) (gocyclo)
    • Line 10787: warning: cyclomatic complexity 17 of function ParseGetFeatureEvaluationsResponse() is high (> 15) (gocyclo)
    • Line 10041: warning: cyclomatic complexity 17 of function ParseCreateEnvironmentResponse() is high (> 15) (gocyclo)
    • Line 11385: warning: cyclomatic complexity 17 of function ParseGetProjectResponse() is high (> 15) (gocyclo)
    • Line 3255: warning: cyclomatic complexity 17 of function NewUpdateFlagsYamlRequestWithBody() is high (> 15) (gocyclo)
    • Line 11819: warning: cyclomatic complexity 17 of function ParseCreateSegmentResponse() is high (> 15) (gocyclo)
    • transport/http_server_test.go
    • Line 1396: warning: cyclomatic complexity 18 of function TestHTTPServer_StreamIntegration() is high (> 15) (gocyclo)
    • Line 169: warning: cyclomatic complexity 18 of function setupHTTPServer() is high (> 15) (gocyclo)
    • gen/client/services.gen.go
    • Line 1284: warning: cyclomatic complexity 17 of function ParseGetAllSegmentsResponse() is high (> 15) (gocyclo)
    • Line 1178: warning: cyclomatic complexity 17 of function ParseAuthenticateResponse() is high (> 15) (gocyclo)
    • Line 1338: warning: cyclomatic complexity 17 of function ParseGetSegmentByIdentifierResponse() is high (> 15) (gocyclo)
    • cache/wrapper.go
    • Line 77: warning: cyclomatic complexity 17 of function (*Wrapper).Set() 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!


misspell95%

Misspell Finds commonly misspelled English words