Preparing report...

Report for github.com/lacework/go-sdk

A+    Excellent!    Found 82 issues across 242 files

Tweet

gofmt92%

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


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!


golint73%

Golint is a linter for Go source code.

    • go-sdk/api/integration_alert_channels_slack.go
    • Line 85: warning: exported type SlackAlertChannelResponse should have comment or be unexported (golint)
    • Line 91: warning: exported type SlackAlertChannel should have comment or be unexported (golint)
    • Line 96: warning: exported type SlackChannelData should have comment or be unexported (golint)
    • go-sdk/api/lql.go
    • Line 36: warning: exported const LQLQueryTranslateError should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported type LQLQuery should have comment or be unexported (golint)
    • Line 49: warning: exported method LQLQuery.Validate should have comment or be unexported (golint)
    • Line 65: warning: exported method LQLQuery.Translate should have comment or be unexported (golint)
    • Line 86: warning: exported method LQLQuery.TranslateQuery should have comment or be unexported (golint)
    • Line 112: warning: exported method LQLQuery.TranslateTime should have comment or be unexported (golint)
    • Line 132: warning: exported method LQLQuery.ValidateRange should have comment or be unexported (golint)
    • Line 165: warning: exported type LQLQueryResponse should have comment or be unexported (golint)
    • Line 177: warning: exported method LQLService.CreateQuery should have comment or be unexported (golint)
    • Line 190: warning: exported method LQLService.GetQueries should have comment or be unexported (golint)
    • Line 194: warning: exported method LQLService.GetQueryByID should have comment or be unexported (golint)
    • Line 208: warning: exported method LQLService.RunQuery should have comment or be unexported (golint)
    • go-sdk/api/lql_delete.go
    • Line 32: warning: exported type LQLDeleteResponse should have comment or be unexported (golint)
    • Line 37: warning: exported type LQLDeleteMessage should have comment or be unexported (golint)
    • Line 41: warning: exported method LQLService.DeleteQuery should have comment or be unexported (golint)
    • go-sdk/api/policy.go
    • Line 38: warning: exported type PolicyResponse should have comment or be unexported (golint)
    • Line 44: warning: exported type Policy should have comment or be unexported (golint)
    • Line 54: warning: exported method PolicyService.Create should have comment or be unexported (golint)
    • Line 66: warning: exported method PolicyService.GetAll should have comment or be unexported (golint)
    • Line 70: warning: exported method PolicyService.GetByID should have comment or be unexported (golint)
    • Line 84: warning: exported method PolicyService.Update should have comment or be unexported (golint)
    • Line 113: warning: exported method PolicyService.Delete should have comment or be unexported (golint)
    • go-sdk/lwtime/reltime.go
    • Line 19: warning: package comment should be of the form "Package lwtime ..." (golint)
    • Line 62: warning: exported const Year should have comment (or a comment on this block) or be unexported (golint)
    • Line 135: warning: don't use underscores in Go names; var rel_parts should be relParts (golint)
    • Line 218: warning: comment on exported function ParseRelative should be of the form "ParseRelative ..." (golint)
    • go-sdk/api/client.go
    • Line 35: warning: exported type Client should have comment or be unexported (golint)
    • Line 59: warning: exported type Option should have comment or be unexported (golint)
    • Line 69: warning: comment on exported function NewClient should be of the form "NewClient ..." (golint)
    • go-sdk/api/integration_alert_channels_datadog.go
    • Line 28: warning: comment on exported const DatadogSiteEu should be of the form "DatadogSiteEu ..." (golint)
    • Line 30: warning: exported const DatadogSiteCom should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: comment on exported const DatadogServiceLogsDetails should be of the form "DatadogServiceLogsDetails ..." (golint)
    • Line 113: warning: exported type DatadogAlertChannelResponse should have comment or be unexported (golint)
    • Line 135: warning: exported type DatadogAlertChannel should have comment or be unexported (golint)
    • Line 140: warning: exported type DatadogChannelData should have comment or be unexported (golint)
    • go-sdk/api/integrations_ctr_reg.go
    • Line 24: warning: comment on exported const NoneRegistry should be of the form "NoneRegistry ..." (golint)
    • Line 26: warning: exported const DockerHubRegistry should have comment (or a comment on this block) or be unexported (golint)
    • Line 83: warning: exported function NewDockerHubRegistryIntegration should have comment or be unexported (golint)
    • Line 89: warning: exported function NewDockerV2RegistryIntegration should have comment or be unexported (golint)
    • Line 94: warning: exported function NewGcrRegistryIntegration should have comment or be unexported (golint)
    • Line 133: warning: exported type ContainerRegIntResponse should have comment or be unexported (golint)
    • Line 139: warning: exported type ContainerRegIntegration should have comment or be unexported (golint)
    • Line 144: warning: exported type ContainerRegData should have comment or be unexported (golint)
    • Line 162: warning: exported type ContainerRegCreds should have comment or be unexported (golint)
    • go-sdk/api/auth.go
    • Line 28: warning: exported const DefaultTokenExpiryTime should have comment or be unexported (golint)
    • Line 91: warning: exported method Client.TokenExpired should have comment or be unexported (golint)
    • Line 152: warning: exported type TokenResponse should have comment or be unexported (golint)
    • Line 158: warning: exported method TokenResponse.Token should have comment or be unexported (golint)
    • Line 167: warning: exported method TokenResponse.ExpiresAt should have comment or be unexported (golint)
    • Line 179: warning: exported type TokenData should have comment or be unexported (golint)
    • go-sdk/api/events.go
    • Line 86: warning: exported type EventDetailsResponse should have comment or be unexported (golint)
    • Line 90: warning: exported type EventDetails should have comment or be unexported (golint)
    • Line 100: warning: exported type EventEntityMap should have comment or be unexported (golint)
    • Line 120: warning: exported type EventUserEntity should have comment or be unexported (golint)
    • Line 125: warning: exported type EventApplicationEntity should have comment or be unexported (golint)
    • Line 133: warning: exported type EventMachineEntity should have comment or be unexported (golint)
    • Line 142: warning: exported type EventContainerEntity should have comment or be unexported (golint)
    • Line 153: warning: exported type EventDnsNameEntity should have comment or be unexported (golint)
    • Line 160: warning: exported type EventIpAddressEntity should have comment or be unexported (golint)
    • Line 172: warning: exported type EventProcessEntity should have comment or be unexported (golint)
    • Line 180: warning: exported type EventFileDataHashEntity should have comment or be unexported (golint)
    • Line 188: warning: exported type EventFileExePathEntity should have comment or be unexported (golint)
    • Line 197: warning: exported type EventSourceIpAddressEntity should have comment or be unexported (golint)
    • Line 203: warning: exported type EventAPIEntity should have comment or be unexported (golint)
    • Line 208: warning: exported type EventRegionEntity should have comment or be unexported (golint)
    • Line 213: warning: exported type EventCTUserEntity should have comment or be unexported (golint)
    • Line 222: warning: exported type EventResourceEntity should have comment or be unexported (golint)
    • Line 229: warning: exported type EventRecIDEntity should have comment or be unexported (golint)
    • Line 239: warning: exported type EventCustomRuleEntity should have comment or be unexported (golint)
    • Line 246: warning: exported type EventNewViolationEntity should have comment or be unexported (golint)
    • Line 252: warning: exported type EventViolationReasonEntity should have comment or be unexported (golint)
    • Line 257: warning: exported type EventsResponse should have comment or be unexported (golint)
    • Line 261: warning: exported type Event should have comment or be unexported (golint)
    • Line 269: warning: exported method Event.SeverityString should have comment or be unexported (golint)
    • Line 286: warning: exported type EventsCount should have comment or be unexported (golint)
    • Line 295: warning: exported method EventsResponse.GetEventsCount should have comment or be unexported (golint)
    • go-sdk/api/integration_alert_channels_qradar.go
    • Line 87: warning: exported type QRadarAlertChannelResponse should have comment or be unexported (golint)
    • Line 93: warning: exported type QRadarAlertChannel should have comment or be unexported (golint)
    • Line 98: warning: exported type QRadarChannelData should have comment or be unexported (golint)
    • Line 107: warning: comment on exported const QRadarCommHttps should be of the form "QRadarCommHttps ..." (golint)
    • Line 109: warning: exported const QRadarCommHttpsSelfSigned should have comment (or a comment on this block) or be unexported (golint)
    • go-sdk/api/lql_update.go
    • Line 21: warning: exported type LQLUpdateResponse should have comment or be unexported (golint)
    • Line 26: warning: exported type LQLUpdateMessage should have comment or be unexported (golint)
    • Line 30: warning: exported method LQLService.UpdateQuery should have comment or be unexported (golint)
    • go-sdk/cli/cmd/version.go
    • Line 35: warning: comment on exported var Version should be of the form "Version ..." (golint)
    • Line 47: warning: comment on exported var VersionCacheFile should be of the form "VersionCacheFile ..." (golint)
    • go-sdk/api/integration_alert_channels_new_relic.go
    • Line 86: warning: exported type NewRelicAlertChannelResponse should have comment or be unexported (golint)
    • Line 92: warning: exported type NewRelicAlertChannel should have comment or be unexported (golint)
    • Line 97: warning: exported type NewRelicChannelData should have comment or be unexported (golint)
    • go-sdk/api/integrations_gcp.go
    • Line 25: warning: comment on exported const GcpProjectIntegration should be of the form "GcpProjectIntegration ..." (golint)
    • Line 28: warning: comment on exported const GcpOrganizationIntegration should be of the form "GcpOrganizationIntegration ..." (golint)
    • Line 141: warning: exported type GcpIntegrationsResponse should have comment or be unexported (golint)
    • Line 147: warning: exported type GcpIntegration should have comment or be unexported (golint)
    • Line 152: warning: exported type GcpIntegrationData should have comment or be unexported (golint)
    • Line 163: warning: exported type GcpCredentials should have comment or be unexported (golint)
    • go-sdk/lwtime/nattime.go
    • Line 19: warning: package comment should be of the form "Package lwtime ..." (golint)
    • Line 39: warning: exported const Today should have comment (or a comment on this block) or be unexported (golint)
    • Line 105: warning: don't use underscores in Go names; var nt_parts should be ntParts (golint)
    • Line 180: warning: comment on exported function ParseNatural should be of the form "ParseNatural ..." (golint)
    • go-sdk/internal/lacework/server.go
    • Line 60: warning: exported method Mock.UseApiV2 should have comment or be unexported (golint)
    • Line 69: warning: exported method Mock.MockToken should have comment or be unexported (golint)
    • Line 69: warning: receiver name s should be consistent with previous receiver name m for Mock (golint)
    • Line 85: warning: exported method Mock.MockTokenV2 should have comment or be unexported (golint)
    • Line 85: warning: receiver name s should be consistent with previous receiver name m for Mock (golint)
    • Line 98: warning: exported method Mock.URL should have comment or be unexported (golint)
    • Line 105: warning: exported method Mock.Close should have comment or be unexported (golint)
    • go-sdk/api/integrations_ctr_reg_ecr_access_key.go
    • Line 24: warning: exported function NewAwsEcrWithAccessKeyIntegration should have comment or be unexported (golint)
    • Line 66: warning: exported type AwsEcrCommonData should have comment or be unexported (golint)
    • Line 76: warning: exported type AwsEcrWithAccessKeyIntegrationResponse should have comment or be unexported (golint)
    • Line 82: warning: exported type AwsEcrWithAccessKeyIntegration should have comment or be unexported (golint)
    • Line 87: warning: exported type AwsEcrDataWithAccessKeyCreds should have comment or be unexported (golint)
    • Line 92: warning: exported type AwsEcrAccessKeyCreds should have comment or be unexported (golint)
    • go-sdk/api/vulnerabilities_container.go
    • Line 53: warning: exported method ContainerVulnerabilityService.ScanStatus should have comment or be unexported (golint)
    • Line 62: warning: exported method ContainerVulnerabilityService.AssessmentFromImageID should have comment or be unexported (golint)
    • Line 71: warning: comment on exported method ContainerVulnerabilityService.AssessmentFromImageDigest should be of the form "AssessmentFromImageDigest ..." (golint)
    • Line 159: warning: exported type VulnContainerAssessmentResponse should have comment or be unexported (golint)
    • Line 165: warning: exported method VulnContainerAssessmentResponse.CheckStatus should have comment or be unexported (golint)
    • Line 181: warning: exported type VulnContainerAssessment should have comment or be unexported (golint)
    • Line 205: warning: exported method VulnContainerAssessment.VulnFixableCount should have comment or be unexported (golint)
    • Line 267: warning: exported type VulnContainerImage should have comment or be unexported (golint)
    • Line 282: warning: exported type VulnContainerImageLayer should have comment or be unexported (golint)
    • Line 288: warning: exported type VulnContainerPackage should have comment or be unexported (golint)
    • Line 307: warning: exported type ContainerVulnerability should have comment or be unexported (golint)
    • Line 350: warning: exported method ContainerVulnerability.CVSSv3Score should have comment or be unexported (golint)
    • Line 360: warning: exported method ContainerVulnerability.CVSSv2Score should have comment or be unexported (golint)
    • Line 370: warning: exported type VulnContainerAssessmentsResponse should have comment or be unexported (golint)
    • Line 376: warning: comment on exported type Json16DigitTime should be of the form "Json16DigitTime ..." (with optional leading article) (golint)
    • Line 379: warning: comment on exported method Json16DigitTime.UnmarshalJSON should be of the form "UnmarshalJSON ..." (golint)
    • Line 380: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 387: warning: exported method Json16DigitTime.MarshalJSON should have comment or be unexported (golint)
    • Line 387: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 392: warning: comment on exported method Json16DigitTime.ToTime should be of the form "ToTime ..." (golint)
    • Line 393: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 396: warning: exported method Json16DigitTime.Format should have comment or be unexported (golint)
    • Line 396: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 399: warning: exported method Json16DigitTime.UTC should have comment or be unexported (golint)
    • Line 399: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 403: warning: comment on exported type NanoTime should be of the form "NanoTime ..." (with optional leading article) (golint)
    • Line 410: warning: exported method NanoTime.UnmarshalJSON should have comment or be unexported (golint)
    • Line 410: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 420: warning: exported method NanoTime.MarshalJSON should have comment or be unexported (golint)
    • Line 420: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 425: warning: comment on exported method NanoTime.ToTime should be of the form "ToTime ..." (golint)
    • Line 426: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 429: warning: exported method NanoTime.Format should have comment or be unexported (golint)
    • Line 429: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 432: warning: exported method NanoTime.UTC should have comment or be unexported (golint)
    • Line 432: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 436: warning: exported type VulnContainerAssessmentSummary should have comment or be unexported (golint)
    • go-sdk/api/compliance_azure.go
    • Line 30: warning: exported type ComplianceAzureReportConfig should have comment or be unexported (golint)
    • Line 36: warning: exported method ComplianceService.ListAzureSubscriptions should have comment or be unexported (golint)
    • Line 45: warning: exported method ComplianceService.GetAzureReport should have comment or be unexported (golint)
    • Line 65: warning: exported method ComplianceService.DownloadAzureReportPDF should have comment or be unexported (golint)
    • Line 104: warning: exported method ComplianceService.RunAzureReport should have comment or be unexported (golint)
    • Line 138: warning: exported type CompAzureSubscriptions should have comment or be unexported (golint)
    • Line 149: warning: exported type ComplianceAzureReport should have comment or be unexported (golint)
    • go-sdk/api/integration_alert_channels.go
    • Line 21: warning: comment on exported type AlertLevel should be of the form "AlertLevel ..." (with optional leading article) (golint)
    • Line 25: warning: exported const CriticalAlertLevel should have comment (or a comment on this block) or be unexported (golint)
    • go-sdk/api/lql_data_sources.go
    • Line 21: warning: exported type LQLDataSourcesResponse should have comment or be unexported (golint)
    • Line 27: warning: exported method LQLService.DataSources should have comment or be unexported (golint)
    • go-sdk/internal/array/contains.go
    • Line 23: warning: exported function ContainsStr should have comment or be unexported (golint)
    • Line 32: warning: exported function ContainsStrCaseInsensitive should have comment or be unexported (golint)
    • Line 41: warning: exported function ContainsPartialStr should have comment or be unexported (golint)
    • Line 50: warning: exported function ContainsInt should have comment or be unexported (golint)
    • Line 59: warning: exported function ContainsBool should have comment or be unexported (golint)
    • go-sdk/api/compliance_aws.go
    • Line 30: warning: exported type ComplianceAwsReportConfig should have comment or be unexported (golint)
    • Line 35: warning: exported method ComplianceService.GetAwsReport should have comment or be unexported (golint)
    • Line 55: warning: exported method ComplianceService.DownloadAwsReportPDF should have comment or be unexported (golint)
    • Line 94: warning: exported method ComplianceService.RunAwsReport should have comment or be unexported (golint)
    • Line 109: warning: exported type ComplianceAwsReport should have comment or be unexported (golint)
    • go-sdk/api/integrations_ctr_reg_ecr_cross_account.go
    • Line 27: warning: exported const AwsEcrIAM should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported function NewAwsEcrWithCrossAccountIntegration should have comment or be unexported (golint)
    • Line 84: warning: exported type AwsEcrWithCrossAccountIntegrationResponse should have comment or be unexported (golint)
    • Line 90: warning: exported type AwsEcrWithCrossAccountIntegration should have comment or be unexported (golint)
    • Line 95: warning: exported type AwsEcrDataWithCrossAccountCreds should have comment or be unexported (golint)
    • go-sdk/api/lql_describe.go
    • Line 26: warning: exported type LQLDescribeResponse should have comment or be unexported (golint)
    • Line 32: warning: exported type LQLDescribeData should have comment or be unexported (golint)
    • Line 42: warning: exported type LQLDescribeParameters should have comment or be unexported (golint)
    • Line 50: warning: exported type LQLDescribeSchema should have comment or be unexported (golint)
    • Line 56: warning: exported method LQLService.Describe should have comment or be unexported (golint)
    • go-sdk/lwrunner/runner.go
    • Line 19: warning: package comment should be of the form "Package lwrunner ..." (golint)
    • Line 36: warning: exported type Runner should have comment or be unexported (golint)
    • Line 42: warning: exported function New should have comment or be unexported (golint)
    • Line 63: warning: exported method Runner.UseIdentityFile should have comment or be unexported (golint)
    • Line 72: warning: exported method Runner.UsePassword should have comment or be unexported (golint)
    • Line 76: warning: exported method Runner.Address should have comment or be unexported (golint)
    • Line 194: warning: exported function DefaultIdentityFilePath should have comment or be unexported (golint)
    • go-sdk/api/integrations.go
    • Line 34: warning: comment on exported const NoneIntegration should be of the form "NoneIntegration ..." (golint)
    • Line 37: warning: comment on exported const AwsCfgIntegration should be of the form "AwsCfgIntegration ..." (golint)
    • Line 40: warning: comment on exported const AwsCloudTrailIntegration should be of the form "AwsCloudTrailIntegration ..." (golint)
    • Line 43: warning: comment on exported const AwsGovCloudCfgIntegration should be of the form "AwsGovCloudCfgIntegration ..." (golint)
    • Line 46: warning: comment on exported const AwsGovCloudCTIntegration should be of the form "AwsGovCloudCTIntegration ..." (golint)
    • Line 49: warning: comment on exported const AwsS3ChannelIntegration should be of the form "AwsS3ChannelIntegration ..." (golint)
    • Line 52: warning: comment on exported const DatadogChannelIntegration should be of the form "DatadogChannelIntegration ..." (golint)
    • Line 55: warning: comment on exported const GcpCfgIntegration should be of the form "GcpCfgIntegration ..." (golint)
    • Line 58: warning: comment on exported const GcpAuditLogIntegration should be of the form "GcpAuditLogIntegration ..." (golint)
    • Line 61: warning: comment on exported const GcpPubSubChannelIntegration should be of the form "GcpPubSubChannelIntegration ..." (golint)
    • Line 64: warning: comment on exported const NewRelicChannelIntegration should be of the form "NewRelicChannelIntegration ..." (golint)
    • Line 67: warning: comment on exported const AzureCfgIntegration should be of the form "AzureCfgIntegration ..." (golint)
    • Line 70: warning: comment on exported const AzureActivityLogIntegration should be of the form "AzureActivityLogIntegration ..." (golint)
    • Line 73: warning: comment on exported const CiscoWebexChannelIntegration should be of the form "CiscoWebexChannelIntegration ..." (golint)
    • Line 76: warning: comment on exported const ContainerRegistryIntegration should be of the form "ContainerRegistryIntegration ..." (golint)
    • Line 79: warning: comment on exported const MicrosoftTeamsChannelIntegration should be of the form "MicrosoftTeamsChannelIntegration ..." (golint)
    • Line 82: warning: comment on exported const QRadarChannelIntegration should be of the form "QRadarChannelIntegration ..." (golint)
    • Line 85: warning: comment on exported const SlackChannelIntegration should be of the form "SlackChannelIntegration ..." (golint)
    • Line 88: warning: comment on exported const ServiceNowChannelIntegration should be of the form "ServiceNowChannelIntegration ..." (golint)
    • Line 91: warning: comment on exported const SplunkIntegration should be of the form "SplunkIntegration ..." (golint)
    • Line 94: warning: comment on exported const AwsCloudWatchIntegration should be of the form "AwsCloudWatchIntegration ..." (golint)
    • Line 97: warning: comment on exported const PagerDutyIntegration should be of the form "PagerDutyIntegration ..." (golint)
    • Line 100: warning: comment on exported const JiraIntegration should be of the form "JiraIntegration ..." (golint)
    • Line 103: warning: comment on exported const VictorOpsChannelIntegration should be of the form "VictorOpsChannelIntegration ..." (golint)
    • Line 106: warning: comment on exported const WebhookIntegration should be of the form "WebhookIntegration ..." (golint)
    • Line 261: warning: exported type IntegrationState should have comment or be unexported (golint)
    • Line 267: warning: exported type RawIntegration should have comment or be unexported (golint)
    • Line 272: warning: exported type RawIntegrationsResponse should have comment or be unexported (golint)
    • go-sdk/api/user_profile.go
    • Line 27: warning: exported method UserProfileService.Get should have comment or be unexported (golint)
    • Line 32: warning: exported type UserProfileResponse should have comment or be unexported (golint)
    • go-sdk/api/v2.go
    • Line 30: warning: exported function NewV2Endpoints should have comment or be unexported (golint)
    • go-sdk/api/integration_alert_channels_service_now.go
    • Line 92: warning: exported type ServiceNowAlertChannelResponse should have comment or be unexported (golint)
    • Line 98: warning: exported type ServiceNowAlertChannel should have comment or be unexported (golint)
    • Line 103: warning: exported type ServiceNowChannelData should have comment or be unexported (golint)
    • Line 111: warning: exported method ServiceNowChannelData.EncodeCustomTemplateFile should have comment or be unexported (golint)
    • Line 116: warning: exported method ServiceNowChannelData.DecodeCustomTemplateFile should have comment or be unexported (golint)
    • go-sdk/api/integrations_azure.go
    • Line 127: warning: exported type AzureIntegrationsResponse should have comment or be unexported (golint)
    • Line 133: warning: exported type AzureIntegration should have comment or be unexported (golint)
    • Line 138: warning: exported type AzureIntegrationData should have comment or be unexported (golint)
    • Line 147: warning: exported type AzureIntegrationCreds should have comment or be unexported (golint)
    • go-sdk/api/integration_alert_channels_splunk.go
    • Line 91: warning: exported type SplunkAlertChannelResponse should have comment or be unexported (golint)
    • Line 97: warning: exported type SplunkAlertChannel should have comment or be unexported (golint)
    • Line 102: warning: exported type SplunkChannelData should have comment or be unexported (golint)
    • Line 111: warning: exported type SplunkEventData should have comment or be unexported (golint)
    • go-sdk/api/lql_compile.go
    • Line 21: warning: exported type LQLCompileResponse should have comment or be unexported (golint)
    • Line 27: warning: exported method LQLService.CompileQuery should have comment or be unexported (golint)
    • go-sdk/api/agent.go
    • Line 90: warning: exported type AgentTokensResponse should have comment or be unexported (golint)
    • Line 96: warning: exported type AgentToken should have comment or be unexported (golint)
    • Line 106: warning: comment on exported method AgentToken.PrettyStatus should be of the form "PrettyStatus ..." (golint)
    • Line 113: warning: exported method AgentToken.Status should have comment or be unexported (golint)
    • Line 117: warning: exported method AgentToken.EnabledInt should have comment or be unexported (golint)
    • Line 124: warning: exported type AgentTokenRequest should have comment or be unexported (golint)
    • Line 130: warning: exported type AgentTokenProps should have comment or be unexported (golint)
    • go-sdk/api/compliance.go
    • Line 29: warning: exported method ComplianceService.ListGcpProjects should have comment or be unexported (golint)
    • Line 38: warning: exported method ComplianceService.RunIntegrationReport should have comment or be unexported (golint)
    • Line 53: warning: exported type CompGcpProjects should have comment or be unexported (golint)
    • Line 58: warning: exported type ComplianceSummary should have comment or be unexported (golint)
    • Line 73: warning: exported type ComplianceRecommendation should have comment or be unexported (golint)
    • Line 87: warning: exported method ComplianceRecommendation.SeverityString should have comment or be unexported (golint)
    • Line 104: warning: exported type ComplianceViolation should have comment or be unexported (golint)
    • go-sdk/api/compliance_gcp.go
    • Line 30: warning: exported type ComplianceGcpReportConfig should have comment or be unexported (golint)
    • Line 36: warning: exported method ComplianceService.GetGcpReport should have comment or be unexported (golint)
    • Line 56: warning: exported method ComplianceService.DownloadGcpReportPDF should have comment or be unexported (golint)
    • Line 95: warning: exported method ComplianceService.RunGcpReport should have comment or be unexported (golint)
    • Line 129: warning: exported type ComplianceGcpReport should have comment or be unexported (golint)
    • go-sdk/api/integration_alert_channels_aws_s3.go
    • Line 89: warning: exported type AwsS3AlertChannelResponse should have comment or be unexported (golint)
    • Line 95: warning: exported type AwsS3AlertChannel should have comment or be unexported (golint)
    • Line 100: warning: exported type AwsS3ChannelData should have comment or be unexported (golint)
    • Line 104: warning: exported type AwsS3Creds should have comment or be unexported (golint)
    • go-sdk/api/integration_alert_channels_jira.go
    • Line 28: warning: exported const JiraCloudAlertType should have comment (or a comment on this block) or be unexported (golint)
    • Line 114: warning: exported type JiraAlertChannelResponse should have comment or be unexported (golint)
    • Line 120: warning: exported type JiraAlertChannel should have comment or be unexported (golint)
    • Line 125: warning: exported type JiraAlertChannelData should have comment or be unexported (golint)
    • Line 143: warning: exported method JiraAlertChannelData.EncodeCustomTemplateFile should have comment or be unexported (golint)
    • Line 148: warning: exported method JiraAlertChannelData.DecodeCustomTemplateFile should have comment or be unexported (golint)
    • go-sdk/api/integration_alert_channels_webhook.go
    • Line 83: warning: exported type WebhookAlertChannelResponse should have comment or be unexported (golint)
    • Line 89: warning: exported type WebhookAlertChannel should have comment or be unexported (golint)
    • Line 94: warning: exported type WebhookChannelData should have comment or be unexported (golint)
    • go-sdk/api/integrations_aws.go
    • Line 122: warning: exported type AwsIntegrationsResponse should have comment or be unexported (golint)
    • Line 128: warning: exported type AwsIntegration should have comment or be unexported (golint)
    • Line 133: warning: exported type AwsIntegrationData should have comment or be unexported (golint)
    • Line 154: warning: exported method AwsIntegrationData.GetCredentials should have comment or be unexported (golint)
    • Line 161: warning: exported method AwsIntegrationData.GetGovCloudCredentials should have comment or be unexported (golint)
    • Line 168: warning: exported method AwsIntegrationData.GetAccountID should have comment or be unexported (golint)
    • Line 175: warning: exported method AwsIntegrationData.EncodeAccountMappingFile should have comment or be unexported (golint)
    • Line 180: warning: exported method AwsIntegrationData.DecodeAccountMappingFile should have comment or be unexported (golint)
    • Line 196: warning: exported type AwsCrossAccountCreds should have comment or be unexported (golint)
    • Line 201: warning: exported type AwsGovCloudIntegrationsResponse should have comment or be unexported (golint)
    • Line 207: warning: exported type AwsGovCloudIntegration should have comment or be unexported (golint)
    • Line 212: warning: exported type AwsGovCloudIntegrationData should have comment or be unexported (golint)
    • Line 216: warning: exported type AwsGovCloudCreds should have comment or be unexported (golint)
    • go-sdk/lwlogger/logger.go
    • Line 19: warning: package comment should be of the form "Package lwlogger ..." (golint)
    • Line 36: warning: exported var SupportedLogLevels should have comment or be unexported (golint)
    • Line 108: warning: exported function ValidLevel should have comment or be unexported (golint)
    • go-sdk/api/vulnerabilities_host.go
    • Line 56: warning: exported method HostVulnerabilityService.ListCves should have comment or be unexported (golint)
    • Line 64: warning: exported method HostVulnerabilityService.ListHostsWithCVE should have comment or be unexported (golint)
    • Line 73: warning: exported method HostVulnerabilityService.GetHostAssessment should have comment or be unexported (golint)
    • Line 88: warning: exported type HostVulnHostAssessment should have comment or be unexported (golint)
    • Line 99: warning: exported type HostVulnDetail should have comment or be unexported (golint)
    • Line 135: warning: exported type HostVulnCVE should have comment or be unexported (golint)
    • Line 141: warning: exported type HostVulnPackage should have comment or be unexported (golint)
    • Line 159: warning: exported method HostVulnHostAssessment.VulnerabilityCounts should have comment or be unexported (golint)
    • Line 247: warning: exported type HostVulnCounts should have comment or be unexported (golint)
    • Line 262: warning: exported type HostVulnSeverityCounts should have comment or be unexported (golint)
    • Line 270: warning: exported method HostVulnSeverityCounts.VulnerabilityCounts should have comment or be unexported (golint)
    • Line 311: warning: exported type HostVulnSeverityCountsDetails should have comment or be unexported (golint)
    • Line 316: warning: exported type HostVulnCveSummary should have comment or be unexported (golint)
    • Line 322: warning: exported type HostVulnScanPkgManifestResponse should have comment or be unexported (golint)
    • Line 344: warning: exported method HostVulnScanPkgManifestResponse.VulnerabilityCounts should have comment or be unexported (golint)
    • Line 390: warning: exported method HostScanPackageVulnDetails.ScoreString should have comment or be unexported (golint)
    • Line 402: warning: exported type HostScanPackageVulnDetails should have comment or be unexported (golint)
    • Line 464: warning: exported method HostScanPackageVulnDetails.Match should have comment or be unexported (golint)
    • Line 464: warning: receiver name v should be consistent with previous receiver name scanPkg for HostScanPackageVulnDetails (golint)
    • Line 474: warning: exported method HostScanPackageVulnDetails.HasFix should have comment or be unexported (golint)
    • Line 474: warning: receiver name v should be consistent with previous receiver name scanPkg for HostScanPackageVulnDetails (golint)
    • Line 495: warning: exported type OsPkgInfo should have comment or be unexported (golint)
    • Line 502: warning: exported type HostScanPackageVulnFixInfo should have comment or be unexported (golint)

gocyclo97%

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.

    • go-sdk/cli/cmd/integration.go
    • Line 353: warning: cyclomatic complexity 62 of function reflectIntegrationData() is high (> 15) (gocyclo)
    • Line 196: warning: cyclomatic complexity 31 of function promptCreateIntegration() 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!


misspell96%

Misspell Finds commonly misspelled English words