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 #11021

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

mmorel-35
Copy link
Contributor

@mmorel-35 mmorel-35 commented Aug 30, 2024

Description

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

This PR enables len and empty rules from testifylint

It also adds testifylint as tool to use with a make command

Copy link

codecov bot commented Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.21%. Comparing base (2c22ed7) to head (5e0fec0).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11021   +/-   ##
=======================================
  Coverage   92.21%   92.21%           
=======================================
  Files         414      414           
  Lines       19728    19728           
=======================================
  Hits        18193    18193           
  Misses       1165     1165           
  Partials      370      370           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@songy23 songy23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR enables len rule from testifylint

I don't see .golangci.yml being changed, is it missed out?

@mmorel-35
Copy link
Contributor Author

You're right, I did it on the Makefile.common but not the golangci config file

@mmorel-35 mmorel-35 force-pushed the testifylint/len branch 3 times, most recently from 67afab1 to 66adcd2 Compare September 3, 2024 20:24
Makefile.Common Outdated Show resolved Hide resolved
Makefile.Common Outdated Show resolved Hide resolved
Makefile.Common Outdated Show resolved Hide resolved
@mmorel-35 mmorel-35 force-pushed the testifylint/len branch 6 times, most recently from 40f908a to ae0f898 Compare September 6, 2024 10:39
@mmorel-35 mmorel-35 changed the title [chore]: enable len rule from testifylint [chore]: enable len and empty rules from testifylint Sep 6, 2024
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
@bogdandrutu bogdandrutu merged commit 6925a30 into open-telemetry:main Sep 9, 2024
36 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 9, 2024
@mmorel-35 mmorel-35 deleted the testifylint/len branch September 9, 2024 17:34
dmathieu pushed a commit to dmathieu/opentelemetry-collector that referenced this pull request Sep 10, 2024
…11021)

#### Description

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

This PR enables
[len](https://github.com/Antonboom/testifylint?tab=readme-ov-file#len)
and
[empty](https://github.com/Antonboom/testifylint?tab=readme-ov-file#empty)
rules from [testifylint](https://github.com/Antonboom/testifylint)

It also adds testifylint as tool to use with a make command

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-cd CI, CD, testing, build issues Skip Contrib Tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants