Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] address linting issues in generated tests #30452

Merged

Conversation

codeboten
Copy link
Contributor

This addresses the following lint failure:

var-naming: don't use underscores in Go names; func Test_ComponentLifecycle should be TestComponentLifecycle (revive)
func Test_ComponentLifecycle(t *testing.T) {

This addresses the following lint failure:

```
var-naming: don't use underscores in Go names; func Test_ComponentLifecycle should be TestComponentLifecycle (revive)
func Test_ComponentLifecycle(t *testing.T) {
```

Signed-off-by: Alex Boten <aboten@lightstep.com>
@dmitryax
Copy link
Member

Is there a way to enable this linter for generated files?

@codeboten
Copy link
Contributor Author

Is there a way to enable this linter for generated files?

I'm looking at this, not sure yet though

@codeboten codeboten merged commit 5caa803 into open-telemetry:main Jan 11, 2024
78 of 79 checks passed
@codeboten codeboten deleted the codeboten/address-linting-issues branch January 11, 2024 21:48
@github-actions github-actions bot added this to the next release milestone Jan 11, 2024
cparkins pushed a commit to AmadeusITGroup/opentelemetry-collector-contrib that referenced this pull request Feb 1, 2024
This addresses the following lint failure:

```
var-naming: don't use underscores in Go names; func Test_ComponentLifecycle should be TestComponentLifecycle (revive)
func Test_ComponentLifecycle(t *testing.T) {
```

Signed-off-by: Alex Boten <aboten@lightstep.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd/mdatagen mdatagen command exporter/alertmanager exporter/alibabacloudlogservice Alibaba components exporter/awss3 exporter/signalfx exporter/splunkhec extension/bearertokenauth extension/headerssetter extension/healthcheck Health Check Extension extension/opamp extension/pprof extension/remotetap extension/sigv4auth processor/attributes Attributes processor processor/cumulativetodelta Cumulative To Delta processor processor/datadog processor/deltatorate Delta To Rate processor processor/filter Filter processor processor/groupbyattrs Group By Attributes processor processor/groupbytrace Group By Trace processor processor/k8sattributes k8s Attributes processor processor/logstransform Logs Transform processor processor/metricsgeneration Metrics Generation processor processor/metricstransform Metrics Transform processor processor/probabilisticsampler Probabilistic Sampler processor processor/redaction Redaction processor processor/remotetap processor/resource Resource processor processor/resourcedetection Resource detection processor processor/routing Routing processor processor/schema Schema processor processor/servicegraph Service graph processor processor/span processor/spanmetrics Span Metrics processor processor/sumologic processor/tailsampling Tail sampling processor processor/transform Transform processor receiver/aerospike receiver/apache receiver/apachespark receiver/awscloudwatch receiver/awscloudwatchmetrics receiver/awscontainerinsight receiver/awsfirehose receiver/azureblob receiver/azureeventhub receiver/azuremonitor receiver/bigip receiver/carbon receiver/cloudflare receiver/cloudfoundry receiver/collectd receiver/couchdb receiver/expvar receiver/filestats receiver/flinkmetrics receiver/fluentforward receiver/googlecloudpubsub receiver/googlecloudspanner receiver/haproxy receiver/hostmetrics receiver/httpcheck HTTP Check receiver receiver/influxdb receiver/jaeger receiver/k8sevents receiver/kafka receiver/kafkametrics receiver/mysql receiver/nginx receiver/nsxt NSXT Receiver receiver/opencensus receiver/oracledb receiver/otlpjsonfile receiver/podman receiver/postgresql receiver/prometheus Prometheus receiver receiver/pulsar receiver/purefa receiver/purefb receiver/rabbitmq receiver/redis Redis related issues receiver/riak receiver/sapm receiver/signalfx receiver/simpleprometheus receiver/skywalking receiver/snmp receiver/snowflake Snowflake receiver receiver/splunkenterprise receiver/splunkhec receiver/sqlquery SQL query receiver receiver/sshcheck receiver/statsd statsd related issues receiver/syslog receiver/tcplog receiver/udplog receiver/vcenter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants