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]: enable len and empty rules from testifylint #6125

Merged
merged 4 commits into from
Sep 20, 2024

Conversation

mmorel-35
Copy link
Contributor

@mmorel-35 mmorel-35 commented Sep 18, 2024

Description

Testifylint is a linter that provides best practices with the use of testify.

This PR enables empty and len rules from testifylint

It's linter provided by golangci-lint.

Here all available rules are activated except those who require to be fixed. This PR only fixes empty and len so the quantity of changes stays reasonnable for reviewers.

Makefile Outdated Show resolved Hide resolved
Copy link

codecov bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.4%. Comparing base (b077d79) to head (7915362).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #6125   +/-   ##
=====================================
  Coverage   66.4%   66.4%           
=====================================
  Files        205     205           
  Lines      13093   13093           
=====================================
  Hits        8706    8706           
  Misses      4119    4119           
  Partials     268     268           

@dmathieu dmathieu merged commit d295ae3 into open-telemetry:main Sep 20, 2024
24 checks passed
@mmorel-35 mmorel-35 deleted the testifylint/bool-compare branch September 20, 2024 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants