Preparing report...

Report for github.com/keptn-contrib/dynatrace-service

(v0.0.0-20211130152927-c6a6d914a525)

A+    Excellent!    Found 96 issues across 149 files

Tweet

gofmt99%

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!


gocyclo96%

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.


golint35%

Golint is a linter for Go source code.

    • internal/keptn/keptn_service_client.go
    • Line 15: warning: exported type ServiceClientInterface should have comment or be unexported (golint)
    • Line 20: warning: exported type ServiceClient should have comment or be unexported (golint)
    • Line 25: warning: exported function NewDefaultServiceClient should have comment or be unexported (golint)
    • Line 31: warning: exported function NewServiceClient should have comment or be unexported (golint)
    • Line 41: warning: exported method ServiceClient.GetServiceNames should have comment or be unexported (golint)
    • Line 59: warning: exported method ServiceClient.CreateServiceInProject should have comment or be unexported (golint)
    • internal/credentials/dynatrace_k8s_secret_reader.go
    • Line 10: warning: comment on exported type DynatraceCredentialsProvider should be of the form "DynatraceCredentialsProvider ..." (with optional leading article) (golint)
    • Line 15: warning: exported type DynatraceK8sSecretReader should have comment or be unexported (golint)
    • Line 19: warning: exported function NewDynatraceK8sSecretReader should have comment or be unexported (golint)
    • Line 23: warning: exported function NewDefaultDynatraceK8sSecretReader should have comment or be unexported (golint)
    • Line 31: warning: exported method DynatraceK8sSecretReader.GetDynatraceCredentials should have comment or be unexported (golint)
    • internal/dynatrace/alerting_profiles_client.go
    • Line 10: warning: exported type AlertingProfile should have comment or be unexported (golint)
    • Line 18: warning: exported type AlertingProfileMetadata should have comment or be unexported (golint)
    • Line 22: warning: exported type AlertingProfileTagFilter should have comment or be unexported (golint)
    • Line 26: warning: exported type AlertingProfileRules should have comment or be unexported (golint)
    • Line 32: warning: exported type AlertingProfileEventTypeFilter should have comment or be unexported (golint)
    • Line 35: warning: exported type CustomTitleFilter should have comment or be unexported (golint)
    • Line 42: warning: exported type CustomEventFilter should have comment or be unexported (golint)
    • Line 46: warning: exported type AlertingProfilesClient should have comment or be unexported (golint)
    • Line 50: warning: exported function NewAlertingProfilesClient should have comment or be unexported (golint)
    • Line 87: warning: exported method AlertingProfilesClient.Create should have comment or be unexported (golint)
    • internal/dynatrace/dynatrace_api_models.go
    • Line 3: warning: exported const KeptnProject should have comment or be unexported (golint)
    • Line 4: warning: exported const KeptnStage should have comment or be unexported (golint)
    • Line 6: warning: exported const ServiceEntityType should have comment or be unexported (golint)
    • internal/problem/action_finished_adapter.go
    • Line 10: warning: exported type ActionFinishedAdapterInterface should have comment or be unexported (golint)
    • Line 89: warning: exported method ActionFinishedAdapter.GetResult should have comment or be unexported (golint)
    • Line 93: warning: exported method ActionFinishedAdapter.GetStatus should have comment or be unexported (golint)
    • internal/test/payload_based_url_handler.go
    • Line 16: warning: exported type PayloadBasedURLHandler should have comment or be unexported (golint)
    • Line 24: warning: exported function NewPayloadBasedURLHandler should have comment or be unexported (golint)
    • Line 34: warning: exported method PayloadBasedURLHandler.AddExact should have comment or be unexported (golint)
    • Line 43: warning: exported method PayloadBasedURLHandler.AddExactError should have comment or be unexported (golint)
    • Line 52: warning: exported method PayloadBasedURLHandler.AddStartsWith should have comment or be unexported (golint)
    • Line 61: warning: exported method PayloadBasedURLHandler.AddStartsWithError should have comment or be unexported (golint)
    • internal/credentials/dynatrace_credentials.go
    • Line 13: warning: exported type DynatraceCredentials should have comment or be unexported (golint)
    • Line 18: warning: exported function NewDynatraceCredentials should have comment or be unexported (golint)
    • Line 37: warning: exported method DynatraceCredentials.GetAPIToken should have comment or be unexported (golint)
    • internal/sli/get_sli_triggered_event_handler.go
    • Line 27: warning: exported const ProblemOpenSLI should have comment or be unexported (golint)
    • Line 29: warning: exported type GetSLIEventHandler should have comment or be unexported (golint)
    • Line 39: warning: exported function NewGetSLITriggeredHandler should have comment or be unexported (golint)
    • Line 50: warning: exported method GetSLIEventHandler.HandleEvent should have comment or be unexported (golint)
    • internal/problem/problem_event_handler.go
    • Line 12: warning: exported type DTProblemEvent should have comment or be unexported (golint)
    • Line 39: warning: exported type DTProblemDetails should have comment or be unexported (golint)
    • Line 50: warning: exported type ProblemEventHandler should have comment or be unexported (golint)
    • Line 55: warning: exported function NewProblemEventHandler should have comment or be unexported (golint)
    • Line 62: warning: exported type RemediationTriggeredEventData should have comment or be unexported (golint)
    • Line 69: warning: exported type ProblemDetails should have comment or be unexported (golint)
    • Line 107: warning: exported method ProblemEventHandler.HandleEvent should have comment or be unexported (golint)
    • internal/sli/dashboard/slo_tile_processing.go
    • Line 13: warning: exported type SLOTileProcessing should have comment or be unexported (golint)
    • Line 19: warning: exported function NewSLOTileProcessing should have comment or be unexported (golint)
    • Line 27: warning: exported method SLOTileProcessing.Process should have comment or be unexported (golint)
    • internal/keptn/keptn_project_client.go
    • Line 10: warning: exported type ProjectClientInterface should have comment or be unexported (golint)
    • Line 14: warning: exported type ProjectClient should have comment or be unexported (golint)
    • Line 18: warning: exported function NewDefaultProjectClient should have comment or be unexported (golint)
    • Line 23: warning: exported function NewProjectClient should have comment or be unexported (golint)
    • internal/dynatrace/metric_events_client.go
    • Line 11: warning: exported type MetricEvent should have comment or be unexported (golint)
    • Line 30: warning: exported type MEMetadata should have comment or be unexported (golint)
    • Line 35: warning: exported type METagFilter should have comment or be unexported (golint)
    • Line 40: warning: exported type MEAlertingScope should have comment or be unexported (golint)
    • Line 46: warning: exported type MetricEventsClient should have comment or be unexported (golint)
    • Line 50: warning: exported function NewMetricEventsClient should have comment or be unexported (golint)
    • Line 86: warning: exported method MetricEventsClient.Create should have comment or be unexported (golint)
    • Line 100: warning: exported method MetricEventsClient.Update should have comment or be unexported (golint)
    • Line 145: warning: exported method MetricEventsClient.DeleteMetricEventByName should have comment or be unexported (golint)
    • internal/dynatrace/metrics_client.go
    • Line 29: warning: exported type DimensionDefinition should have comment or be unexported (golint)
    • Line 41: warning: exported type MetricQueryResultValues should have comment or be unexported (golint)
    • Line 47: warning: exported type MetricQueryResultNumbers should have comment or be unexported (golint)
    • internal/common/common.go
    • Line 19: warning: exported const KEPTNSBRIDGE_LABEL should have comment or be unexported (golint)
    • Line 123: warning: exported function ParsePassAndWarningWithoutDefaultsFrom should have comment or be unexported (golint)
    • internal/sli/dashboard/usql_tile_processing.go
    • Line 15: warning: exported type USQLTileProcessing should have comment or be unexported (golint)
    • Line 23: warning: exported function NewUSQLTileProcessing should have comment or be unexported (golint)
    • Line 33: warning: exported method USQLTileProcessing.Process should have comment or be unexported (golint)
    • internal/deployment/evaluation_finished_adapter.go
    • Line 12: warning: exported type EvaluationFinishedAdapterInterface should have comment or be unexported (golint)
    • Line 96: warning: exported method EvaluationFinishedAdapter.GetEvaluationScore should have comment or be unexported (golint)
    • Line 100: warning: exported method EvaluationFinishedAdapter.GetResult should have comment or be unexported (golint)
    • internal/monitoring/configure_monitoring_event_handler.go
    • Line 16: warning: exported type KeptnAPIConnectionCheck should have comment or be unexported (golint)
    • Line 22: warning: exported type ConfigureMonitoringEventHandler should have comment or be unexported (golint)
    • Line 41: warning: exported method ConfigureMonitoringEventHandler.HandleEvent should have comment or be unexported (golint)
    • internal/monitoring/configure_monitoring_finished_factory.go
    • Line 11: warning: exported type ConfigureMonitoringFinishedEventFactory should have comment or be unexported (golint)
    • Line 18: warning: exported method ConfigureMonitoringFinishedEventFactory.CreateCloudEvent should have comment or be unexported (golint)
    • Line 22: warning: exported function NewSucceededConfigureMonitoringFinishedEventFactory should have comment or be unexported (golint)
    • Line 31: warning: exported function NewErroredConfigureMonitoringFinishedEventFactory should have comment or be unexported (golint)
    • internal/keptn/keptn_resource_client.go
    • Line 13: warning: exported type SLOResourceReaderInterface should have comment or be unexported (golint)
    • Line 16: warning: exported type SLIAndSLOResourceWriterInterface should have comment or be unexported (golint)
    • Line 20: warning: exported type ResourceClientInterface should have comment or be unexported (golint)
    • Line 25: warning: exported type DynatraceConfigResourceClientInterface should have comment or be unexported (golint)
    • Line 51: warning: exported method ResourceClient.GetSLOs should have comment or be unexported (golint)
    • Line 66: warning: exported method ResourceClient.UploadSLOs should have comment or be unexported (golint)
    • Line 76: warning: exported method ResourceClient.UploadSLI should have comment or be unexported (golint)
    • Line 85: warning: exported method ResourceClient.GetDynatraceConfig should have comment or be unexported (golint)
    • internal/dynatrace/dashboards_client.go
    • Line 12: warning: exported type DashboardsClient should have comment or be unexported (golint)
    • Line 16: warning: exported function NewDashboardsClient should have comment or be unexported (golint)
    • Line 22: warning: exported method DashboardsClient.GetAll should have comment or be unexported (golint)
    • Line 38: warning: exported method DashboardsClient.GetByID should have comment or be unexported (golint)
    • Line 54: warning: exported method DashboardsClient.Create should have comment or be unexported (golint)
    • Line 68: warning: exported method DashboardsClient.Delete should have comment or be unexported (golint)
    • internal/sli/dashboard/dashboard_query.go
    • Line 10: warning: exported type TileResult should have comment or be unexported (golint)
    • Line 33: warning: exported method QueryResult.DashboardLink should have comment or be unexported (golint)
    • Line 37: warning: exported method QueryResult.Dashboard should have comment or be unexported (golint)
    • Line 41: warning: exported method QueryResult.SLI should have comment or be unexported (golint)
    • Line 50: warning: exported method QueryResult.SLO should have comment or be unexported (golint)
    • Line 59: warning: exported method QueryResult.SLIResults should have comment or be unexported (golint)
    • internal/event_handler/error_event_factory.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 13: warning: exported type ErrorData should have comment or be unexported (golint)
    • Line 19: warning: exported type ErrorEventFactory should have comment or be unexported (golint)
    • Line 25: warning: exported function NewErrorEventFactory should have comment or be unexported (golint)
    • Line 33: warning: exported method ErrorEventFactory.CreateCloudEvent should have comment or be unexported (golint)
    • internal/event_handler/handler.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 22: warning: exported type DynatraceEventHandler should have comment or be unexported (golint)
    • Line 55: warning: exported function NewEventHandler should have comment or be unexported (golint)
    • internal/config/dynatrace_config_getter.go
    • Line 14: warning: comment on exported type DynatraceConfigGetterInterface should be of the form "DynatraceConfigGetterInterface ..." (with optional leading article) (golint)
    • Line 19: warning: exported type DynatraceConfigGetter should have comment or be unexported (golint)
    • Line 23: warning: exported function NewDynatraceConfigGetter should have comment or be unexported (golint)
    • internal/credentials/keptn_credentials_reader.go
    • Line 17: warning: comment on exported type KeptnCredentialsProvider should be of the form "KeptnCredentialsProvider ..." (with optional leading article) (golint)
    • Line 22: warning: exported type KeptnCredentialsReader should have comment or be unexported (golint)
    • Line 27: warning: exported function NewKeptnCredentialsReader should have comment or be unexported (golint)
    • Line 31: warning: exported function NewDefaultKeptnCredentialsReader should have comment or be unexported (golint)
    • Line 43: warning: exported method KeptnCredentialsReader.GetKeptnCredentials should have comment or be unexported (golint)
    • internal/monitoring/management_zones_creation.go
    • Line 11: warning: exported type ManagementZoneCreation should have comment or be unexported (golint)
    • Line 15: warning: exported function NewManagementZoneCreation should have comment or be unexported (golint)
    • Line 88: warning: exported function GetManagementZoneNameForProjectAndStage should have comment or be unexported (golint)
    • Line 92: warning: exported function GetManagementZoneNameForProject should have comment or be unexported (golint)
    • internal/dynatrace/events_client.go
    • Line 13: warning: exported type ConfigurationEvent should have comment or be unexported (golint)
    • Line 24: warning: exported type DeploymentEvent should have comment or be unexported (golint)
    • Line 37: warning: exported type InfoEvent should have comment or be unexported (golint)
    • Line 47: warning: exported type AnnotationEvent should have comment or be unexported (golint)
    • Line 239: warning: exported type EventsClient should have comment or be unexported (golint)
    • internal/dynatrace/slo_client.go
    • Line 12: warning: exported type SLOResult should have comment or be unexported (golint)
    • Line 34: warning: exported type SLOClient should have comment or be unexported (golint)
    • Line 38: warning: exported function NewSLOClient should have comment or be unexported (golint)
    • internal/adapter/cloud_event_adapter.go
    • Line 13: warning: exported type TriggeredCloudEventContentAdapter should have comment or be unexported (golint)
    • Line 19: warning: exported type CloudEventContentAdapter should have comment or be unexported (golint)
    • Line 23: warning: exported type CloudEventPayloadParseError should have comment or be unexported (golint)
    • Line 31: warning: exported type CloudEventAdapter should have comment or be unexported (golint)
    • Line 35: warning: exported function NewCloudEventAdapter should have comment or be unexported (golint)
    • Line 39: warning: exported method CloudEventAdapter.GetShKeptnContext should have comment or be unexported (golint)
    • Line 47: warning: exported method CloudEventAdapter.GetSource should have comment or be unexported (golint)
    • Line 51: warning: exported method CloudEventAdapter.GetEventID should have comment or be unexported (golint)
    • Line 55: warning: exported method CloudEventAdapter.GetType should have comment or be unexported (golint)
    • internal/event_handler/error_handler.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 15: warning: exported type ErrorHandler should have comment or be unexported (golint)
    • Line 20: warning: exported function NewErrorHandler should have comment or be unexported (golint)
    • Line 27: warning: exported method ErrorHandler.HandleEvent should have comment or be unexported (golint)
    • internal/sli/get_sli_triggered_adapter.go
    • Line 9: warning: exported type GetSLITriggeredAdapterInterface should have comment or be unexported (golint)
    • Line 93: warning: exported method GetSLITriggeredAdapter.IsNotForDynatrace should have comment or be unexported (golint)
    • Line 97: warning: exported method GetSLITriggeredAdapter.GetSLIStart should have comment or be unexported (golint)
    • Line 101: warning: exported method GetSLITriggeredAdapter.GetSLIEnd should have comment or be unexported (golint)
    • Line 105: warning: exported method GetSLITriggeredAdapter.GetIndicators should have comment or be unexported (golint)
    • Line 109: warning: exported method GetSLITriggeredAdapter.GetCustomSLIFilters should have comment or be unexported (golint)
    • Line 113: warning: exported method GetSLITriggeredAdapter.GetEventID should have comment or be unexported (golint)
    • Line 117: warning: exported method GetSLITriggeredAdapter.AddLabel should have comment or be unexported (golint)
    • internal/credentials/k8s_secret_reader.go
    • Line 13: warning: exported type K8sSecretReader should have comment or be unexported (golint)
    • Line 17: warning: exported function NewK8sSecretReader should have comment or be unexported (golint)
    • Line 21: warning: exported function NewDefaultK8sSecretReader should have comment or be unexported (golint)
    • Line 30: warning: exported method K8sSecretReader.ReadSecret should have comment or be unexported (golint)
    • internal/credentials/keptn_credentials.go
    • Line 11: warning: exported type KeptnCredentials should have comment or be unexported (golint)
    • Line 17: warning: exported function NewKeptnCredentials should have comment or be unexported (golint)
    • Line 38: warning: exported method KeptnCredentials.GetAPIURL should have comment or be unexported (golint)
    • Line 42: warning: exported method KeptnCredentials.GetAPIToken should have comment or be unexported (golint)
    • Line 46: warning: exported method KeptnCredentials.GetBridgeURL should have comment or be unexported (golint)
    • internal/test/file_based_url_handler.go
    • Line 17: warning: exported type FileBasedURLHandler should have comment or be unexported (golint)
    • Line 25: warning: exported function NewFileBasedURLHandler should have comment or be unexported (golint)
    • Line 35: warning: exported method FileBasedURLHandler.AddExact should have comment or be unexported (golint)
    • Line 46: warning: exported method FileBasedURLHandler.AddExactError should have comment or be unexported (golint)
    • Line 57: warning: exported method FileBasedURLHandler.AddStartsWith should have comment or be unexported (golint)
    • Line 68: warning: exported method FileBasedURLHandler.AddStartsWithError should have comment or be unexported (golint)
    • internal/sli/dashboard/problem_tile_processing.go
    • Line 13: warning: exported type ProblemTileProcessing should have comment or be unexported (golint)
    • Line 19: warning: exported function NewProblemTileProcessing should have comment or be unexported (golint)
    • Line 27: warning: exported method ProblemTileProcessing.Process should have comment or be unexported (golint)
    • internal/sli/get_sli_events_factory.go
    • Line 11: warning: exported type GetSliStartedEventFactory should have comment or be unexported (golint)
    • Line 15: warning: exported function NewGetSliStartedEventFactory should have comment or be unexported (golint)
    • Line 21: warning: exported method GetSliStartedEventFactory.CreateCloudEvent should have comment or be unexported (golint)
    • Line 37: warning: exported type GetSliFinishedEventFactory should have comment or be unexported (golint)
    • Line 44: warning: exported function NewSucceededGetSLIFinishedEventFactory should have comment or be unexported (golint)
    • Line 53: warning: exported function NewErroredGetSLIFinishedEventFactory should have comment or be unexported (golint)
    • Line 62: warning: exported method GetSliFinishedEventFactory.CreateCloudEvent should have comment or be unexported (golint)
    • internal/event_handler/no_op_handler.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 3: warning: exported type NoOpHandler should have comment or be unexported (golint)
    • Line 6: warning: exported method NoOpHandler.HandleEvent should have comment or be unexported (golint)
    • internal/rest/rest_client.go
    • Line 13: warning: exported const NoStatus should have comment or be unexported (golint)
    • Line 15: warning: exported type ClientInterface should have comment or be unexported (golint)
    • Line 22: warning: exported type HTTPHeader should have comment or be unexported (golint)
    • Line 24: warning: exported method HTTPHeader.Add should have comment or be unexported (golint)
    • Line 28: warning: exported type ClientError should have comment or be unexported (golint)
    • Line 37: warning: exported type Client should have comment or be unexported (golint)
    • Line 57: warning: exported method Client.Get should have comment or be unexported (golint)
    • Line 61: warning: exported method Client.Post should have comment or be unexported (golint)
    • Line 65: warning: exported method Client.Put should have comment or be unexported (golint)
    • Line 69: warning: exported method Client.Delete should have comment or be unexported (golint)
    • internal/keptn/keptn_client.go
    • Line 16: warning: exported const Throughput should have comment or be unexported (golint)
    • Line 18: warning: exported const ResponseTimeP50 should have comment or be unexported (golint)
    • Line 22: warning: exported type CustomQueries should have comment or be unexported (golint)
    • Line 26: warning: exported function NewEmptyCustomQueries should have comment or be unexported (golint)
    • Line 32: warning: exported function NewCustomQueries should have comment or be unexported (golint)
    • Line 38: warning: exported method CustomQueries.GetQueryByNameOrDefault should have comment or be unexported (golint)
    • Line 52: warning: exported method CustomQueries.GetQueryByNameOrDefaultIfEmpty should have comment or be unexported (golint)
    • Line 72: warning: exported type ClientInterface should have comment or be unexported (golint)
    • Line 78: warning: exported type Client should have comment or be unexported (golint)
    • Line 82: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 88: warning: exported function NewDefaultClient should have comment or be unexported (golint)
    • Line 100: warning: exported method Client.GetCustomQueries should have comment or be unexported (golint)
    • Line 113: warning: exported method Client.GetShipyard should have comment or be unexported (golint)
    • Line 122: warning: exported method Client.SendCloudEvent should have comment or be unexported (golint)
    • internal/monitoring/configuration.go
    • Line 25: warning: exported type ConfigResult should have comment or be unexported (golint)
    • Line 31: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 38: warning: exported function NewConfiguration should have comment or be unexported (golint)
    • internal/dynatrace/management_zones_client.go
    • Line 8: warning: exported type ManagementZone should have comment or be unexported (golint)
    • Line 13: warning: exported type MZKey should have comment or be unexported (golint)
    • Line 16: warning: exported type MZValue should have comment or be unexported (golint)
    • Line 21: warning: exported type MZComparisonInfo should have comment or be unexported (golint)
    • Line 27: warning: exported type MZConditions should have comment or be unexported (golint)
    • Line 31: warning: exported type MZRules should have comment or be unexported (golint)
    • Line 40: warning: exported type ManagementZones should have comment or be unexported (golint)
    • Line 44: warning: exported method ManagementZones.GetByName should have comment or be unexported (golint)
    • Line 49: warning: exported method ManagementZones.Contains should have comment or be unexported (golint)
    • Line 54: warning: exported type ManagementZonesClient should have comment or be unexported (golint)
    • Line 58: warning: exported function NewManagementZonesClient should have comment or be unexported (golint)
    • Line 64: warning: exported method ManagementZonesClient.GetAll should have comment or be unexported (golint)
    • Line 90: warning: exported method ManagementZonesClient.Create should have comment or be unexported (golint)
    • internal/sli/dashboard/data_explorer_tile_processing.go
    • Line 17: warning: exported type DataExplorerTileProcessing should have comment or be unexported (golint)
    • Line 25: warning: exported function NewDataExplorerTileProcessing should have comment or be unexported (golint)
    • Line 35: warning: exported method DataExplorerTileProcessing.Process should have comment or be unexported (golint)
    • internal/sli/dashboard/security_problem_tile_processing.go
    • Line 13: warning: exported type SecurityProblemTileProcessing should have comment or be unexported (golint)
    • Line 19: warning: exported function NewSecurityProblemTileProcessing should have comment or be unexported (golint)
    • Line 27: warning: exported method SecurityProblemTileProcessing.Process should have comment or be unexported (golint)
    • internal/dynatrace/dashboard.go
    • Line 3: warning: exported type Dashboard should have comment or be unexported (golint)
    • Line 10: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 15: warning: exported type DashboardMetadata should have comment or be unexported (golint)
    • Line 24: warning: exported type SharingDetails should have comment or be unexported (golint)
    • Line 28: warning: exported type DashboardFilter should have comment or be unexported (golint)
    • Line 33: warning: exported type ManagementZoneEntry should have comment or be unexported (golint)
    • Line 38: warning: exported type Tile should have comment or be unexported (golint)
    • Line 55: warning: exported type Bounds should have comment or be unexported (golint)
    • Line 62: warning: exported type TileFilter should have comment or be unexported (golint)
    • Line 77: warning: exported type DataExplorerFilter should have comment or be unexported (golint)
    • Line 86: warning: exported type DataExplorerCriterion should have comment or be unexported (golint)
    • Line 91: warning: exported type FilterConfig should have comment or be unexported (golint)
    • Line 99: warning: exported type FilterMap should have comment or be unexported (golint)
    • Line 145: warning: exported type ChartConfig should have comment or be unexported (golint)
    • Line 152: warning: exported type Series should have comment or be unexported (golint)
    • Line 164: warning: exported type ResultMetadata should have comment or be unexported (golint)
    • Line 167: warning: exported type Dimensions should have comment or be unexported (golint)
    • internal/dynatrace/notifications_client.go
    • Line 28: warning: exported type NotificationsError should have comment or be unexported (golint)
    • Line 32: warning: exported method NotificationsError.HasErrors should have comment or be unexported (golint)
    • Line 49: warning: exported type NotificationsClient should have comment or be unexported (golint)
    • Line 53: warning: exported function NewNotificationsClient should have comment or be unexported (golint)
    • Line 74: warning: exported method NotificationsClient.DeleteExistingKeptnProblemNotifications should have comment or be unexported (golint)
    • internal/problem/action_triggered_adapter.go
    • Line 10: warning: exported type ActionTriggeredAdapterInterface should have comment or be unexported (golint)
    • Line 89: warning: exported method ActionTriggeredAdapter.GetAction should have comment or be unexported (golint)
    • Line 93: warning: exported method ActionTriggeredAdapter.GetActionDescription should have comment or be unexported (golint)
    • internal/sli/metrics/query_parsing.go
    • Line 15: warning: exported function NewQueryParameters should have comment or be unexported (golint)
    • Line 33: warning: exported method QueryParameters.Get should have comment or be unexported (golint)
    • Line 42: warning: exported method QueryParameters.GetMetricSelector should have comment or be unexported (golint)
    • Line 93: warning: exported function NewQueryParsing should have comment or be unexported (golint)
    • internal/problem/problem_events_factory.go
    • Line 13: warning: exported type ProblemClosedEventFactory should have comment or be unexported (golint)
    • Line 17: warning: exported function NewProblemClosedEventFactory should have comment or be unexported (golint)
    • Line 23: warning: exported method ProblemClosedEventFactory.CreateCloudEvent should have comment or be unexported (golint)
    • Line 47: warning: exported type RemediationTriggeredEventFactory should have comment or be unexported (golint)
    • Line 51: warning: exported function NewRemediationTriggeredEventFactory should have comment or be unexported (golint)
    • Line 57: warning: exported method RemediationTriggeredEventFactory.CreateCloudEvent should have comment or be unexported (golint)
    • internal/common/errors.go
    • Line 10: warning: exported type MarshalError should have comment or be unexported (golint)
    • Line 17: warning: exported function NewUnmarshalYAMLError should have comment or be unexported (golint)
    • Line 26: warning: exported function NewMarshalYAMLError should have comment or be unexported (golint)
    • Line 35: warning: exported function NewUnmarshalJSONError should have comment or be unexported (golint)
    • Line 44: warning: exported function NewMarshalJSONError should have comment or be unexported (golint)
    • internal/keptn/keptn_local_resource_client.go
    • Line 13: warning: exported type LocalResourceClient should have comment or be unexported (golint)
    • Line 16: warning: exported function NewLocalResourceClient should have comment or be unexported (golint)
    • Line 20: warning: exported method LocalResourceClient.GetDynatraceConfig should have comment or be unexported (golint)
    • Line 24: warning: exported method LocalResourceClient.GetResource should have comment or be unexported (golint)
    • Line 46: warning: exported method LocalResourceClient.GetProjectResource should have comment or be unexported (golint)
    • Line 54: warning: exported method LocalResourceClient.GetServiceResource should have comment or be unexported (golint)
    • Line 58: warning: exported method LocalResourceClient.UploadKeptnResource should have comment or be unexported (golint)
    • internal/keptn/keptn_api_client.go
    • Line 10: warning: exported type APIClientInterface should have comment or be unexported (golint)
    • Line 15: warning: exported type APIClient should have comment or be unexported (golint)
    • Line 19: warning: exported function NewAPIClient should have comment or be unexported (golint)
    • Line 25: warning: exported method APIClient.Get should have comment or be unexported (golint)
    • Line 34: warning: exported method APIClient.Post should have comment or be unexported (golint)
    • Line 58: warning: exported type APIError should have comment or be unexported (golint)
    • internal/dynatrace/auto_tags_client.go
    • Line 10: warning: exported type DTTaggingRule should have comment or be unexported (golint)
    • Line 14: warning: exported type DynamicKey should have comment or be unexported (golint)
    • Line 18: warning: exported type Key should have comment or be unexported (golint)
    • Line 23: warning: exported type ComparisonInfo should have comment or be unexported (golint)
    • Line 30: warning: exported type Conditions should have comment or be unexported (golint)
    • Line 34: warning: exported type Rules should have comment or be unexported (golint)
    • Line 42: warning: exported type TagNames should have comment or be unexported (golint)
    • Line 46: warning: exported type AutoTagsClient should have comment or be unexported (golint)
    • Line 50: warning: exported function NewAutoTagClient should have comment or be unexported (golint)
    • Line 56: warning: exported method AutoTagsClient.Create should have comment or be unexported (golint)
    • Line 67: warning: exported method AutoTagsClient.GetAllTagNames should have comment or be unexported (golint)
    • internal/dynatrace/dynatrace_client.go
    • Line 16: warning: exported type EnvironmentAPIv2Error should have comment or be unexported (golint)
    • Line 24: warning: exported type ConstraintViolation should have comment or be unexported (golint)
    • Line 35: warning: exported type ConstraintViolations should have comment or be unexported (golint)
    • Line 48: warning: exported type APIError should have comment or be unexported (golint)
    • Line 55: warning: exported method APIError.Code should have comment or be unexported (golint)
    • Line 59: warning: exported method APIError.Message should have comment or be unexported (golint)
    • Line 78: warning: exported type ClientInterface should have comment or be unexported (golint)
    • Line 87: warning: exported type Client should have comment or be unexported (golint)
    • Line 106: warning: exported function NewClientWithHTTP should have comment or be unexported (golint)
    • Line 116: warning: exported method Client.Get should have comment or be unexported (golint)
    • Line 125: warning: exported method Client.Post should have comment or be unexported (golint)
    • Line 134: warning: exported method Client.Put should have comment or be unexported (golint)
    • Line 143: warning: exported method Client.Delete should have comment or be unexported (golint)
    • Line 177: warning: exported method Client.Credentials should have comment or be unexported (golint)
    • internal/dynatrace/helper.go
    • Line 8: warning: exported type StringSet should have comment or be unexported (golint)
    • Line 12: warning: exported method StringSet.Contains should have comment or be unexported (golint)
    • Line 17: warning: exported function CheckForUnexpectedHTMLResponseError should have comment or be unexported (golint)
    • internal/common/image_and_tag.go
    • Line 3: warning: exported const NotAvailable should have comment or be unexported (golint)
    • Line 5: warning: exported type ImageAndTag should have comment or be unexported (golint)
    • Line 10: warning: exported method ImageAndTag.Tag should have comment or be unexported (golint)
    • Line 14: warning: exported method ImageAndTag.Image should have comment or be unexported (golint)
    • Line 18: warning: exported function NewImageAndTag should have comment or be unexported (golint)
    • Line 25: warning: exported function NewNotAvailableImageAndTag should have comment or be unexported (golint)
    • internal/sli/dashboard/custom_charting_tile_processing.go
    • Line 19: warning: exported type CustomChartingTileProcessing should have comment or be unexported (golint)
    • Line 27: warning: exported function NewCustomChartingTileProcessing should have comment or be unexported (golint)
    • Line 37: warning: exported method CustomChartingTileProcessing.Process should have comment or be unexported (golint)
    • internal/monitoring/metric_events_creation.go
    • Line 21: warning: exported type CriteriaObject should have comment or be unexported (golint)
    • Line 29: warning: exported type MetricEventCreation should have comment or be unexported (golint)
    • Line 35: warning: exported function NewMetricEventCreation should have comment or be unexported (golint)
    • Line 387: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • internal/keptn/keptn_event_client.go
    • Line 17: warning: exported type EventClientBaseInterface should have comment or be unexported (golint)
    • Line 21: warning: exported type EventClientBase should have comment or be unexported (golint)
    • Line 25: warning: exported function NewEventClientBase should have comment or be unexported (golint)
    • Line 31: warning: exported method EventClientBase.GetEvents should have comment or be unexported (golint)
    • Line 42: warning: exported type EventClientInterface should have comment or be unexported (golint)
    • Line 48: warning: exported type EventClient should have comment or be unexported (golint)
    • Line 52: warning: exported function NewEventClient should have comment or be unexported (golint)
    • Line 58: warning: exported function NewDefaultEventClient should have comment or be unexported (golint)
    • Line 132: warning: exported method EventClient.GetImageAndTag should have comment or be unexported (golint)
    • internal/keptn/keptn_uniform_client.go
    • Line 16: warning: exported const UniformPath should have comment or be unexported (golint)
    • Line 18: warning: exported type UniformClientInterface should have comment or be unexported (golint)
    • Line 23: warning: exported type UniformClient should have comment or be unexported (golint)
    • Line 27: warning: exported function NewDefaultUniformClient should have comment or be unexported (golint)
    • Line 32: warning: exported function NewUniformClient should have comment or be unexported (golint)
    • Line 41: warning: exported method UniformClient.GetIntegrationIDFor should have comment or be unexported (golint)
    • internal/adapter/cloud_event_factory.go
    • Line 9: warning: exported type CloudEventFactoryInterface should have comment or be unexported (golint)
    • Line 13: warning: exported type CloudEventFactory should have comment or be unexported (golint)
    • Line 19: warning: exported function NewCloudEventFactory should have comment or be unexported (golint)
    • Line 27: warning: exported method CloudEventFactory.CreateCloudEvent should have comment or be unexported (golint)
    • Line 40: warning: exported type CloudEventFactoryBase should have comment or be unexported (golint)
    • Line 46: warning: exported function NewCloudEventFactoryBase should have comment or be unexported (golint)
    • Line 54: warning: exported method CloudEventFactoryBase.CreateCloudEvent should have comment or be unexported (golint)
    • internal/problem/problem_adapter.go
    • Line 17: warning: exported type ProblemAdapterInterface should have comment or be unexported (golint)
    • Line 116: warning: exported method ProblemAdapter.IsNotFromDynatrace should have comment or be unexported (golint)
    • Line 120: warning: exported method ProblemAdapter.GetState should have comment or be unexported (golint)
    • Line 124: warning: exported method ProblemAdapter.GetPID should have comment or be unexported (golint)
    • Line 128: warning: exported method ProblemAdapter.GetProblemID should have comment or be unexported (golint)
    • Line 132: warning: exported method ProblemAdapter.GetProblemTitle should have comment or be unexported (golint)
    • Line 136: warning: exported method ProblemAdapter.GetProblemURL should have comment or be unexported (golint)
    • Line 140: warning: exported method ProblemAdapter.GetImpactedEntity should have comment or be unexported (golint)
    • Line 144: warning: exported method ProblemAdapter.GetProblemTags should have comment or be unexported (golint)
    • Line 148: warning: exported method ProblemAdapter.GetProblemDetails should have comment or be unexported (golint)
    • Line 174: warning: exported method ProblemAdapter.IsResolved should have comment or be unexported (golint)
    • internal/monitoring/configure_monitoring_adapter.go
    • Line 9: warning: exported type ConfigureMonitoringAdapterInterface should have comment or be unexported (golint)
    • Line 88: warning: exported method ConfigureMonitoringAdapter.IsNotForDynatrace should have comment or be unexported (golint)
    • Line 92: warning: exported method ConfigureMonitoringAdapter.GetEventID should have comment or be unexported (golint)

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