Skip to content

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

@mmorel-35 mmorel-35 requested review from a team and bogdandrutu August 30, 2024 10:38
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?

@songy23 songy23 added ci-cd CI, CD, testing, build issues Skip Contrib Tests labels Aug 30, 2024
@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
@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
@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 <[email protected]>
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