-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
linter(testifylint): use Len or Empty for arrays testing #7555
Conversation
@mmorel-35 thanks for your work improving the code quality! A few comments:
|
@mateusoliveira43, WDYT ? |
@mmorel-35 I agree, the more simple the PR, the better! Just want to warn maintainers that current project's config is not very reliable |
I agree with your opinion. To enable linter for all test files, would be good, although it doesn't have a high priority. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7555 +/- ##
==========================================
+ Coverage 61.68% 61.70% +0.01%
==========================================
Files 263 263
Lines 28826 28861 +35
==========================================
+ Hits 17781 17808 +27
- Misses 9787 9793 +6
- Partials 1258 1260 +2 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
I believe this is ready for CI. |
I could give it a try if you are interested ? |
@mmorel-35 |
@blackpiglet , |
@mateusoliveira43 |
Please add a summary of your change
Use testifylint to use Len and Empty in tests when possible
This has been done through
It is then ensured through golangci-lint configuration
Does your change fix a particular issue?
No
Please indicate you've done the following:
/kind changelog-not-required
as a comment on this pull request.site/content/docs/main
.