open-telemetry / opentelemetry-go

OpenTelemetry Go API and SDK
https://opentelemetry.io/docs/languages/go
Apache License 2.0
5.2k stars 1.05k forks source link

Add tenv linter #5524

Closed dmathieu closed 3 months ago

dmathieu commented 3 months ago

This starts adding more linters we aren't currently using, based on the ones used by the collector.

This linter does not currently have any issues, so it requires no further changes. I'll be opening other PRs for linters that do require fixes.

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 84.8%. Comparing base (773aec2) to head (771bcec).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/open-telemetry/opentelemetry-go/pull/5524/graphs/tree.svg?width=650&height=150&src=pr&token=8efTmh4kvf&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry)](https://app.codecov.io/gh/open-telemetry/opentelemetry-go/pull/5524?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry) ```diff @@ Coverage Diff @@ ## main #5524 +/- ## ===================================== Coverage 84.8% 84.8% ===================================== Files 269 269 Lines 18091 18091 ===================================== + Hits 15344 15345 +1 + Misses 2421 2420 -1 Partials 326 326 ``` [see 1 file with indirect coverage changes](https://app.codecov.io/gh/open-telemetry/opentelemetry-go/pull/5524/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry)