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

ci: add more linters to golangci-lint #96

Merged
merged 1 commit into from
Mar 21, 2025
Merged

Conversation

ccoVeille
Copy link
Owner

@ccoVeille ccoVeille commented Mar 21, 2025

  • revive.exported
  • stylecheck

Please note, the golangci-lint default exclusions rules I had to disable
to make things work as expected.

For more information, please refer to the golangci-lint documentation about what they call false-positive issues

@ccoVeille ccoVeille added the enhancement New feature or request label Mar 21, 2025
Copy link

codecov bot commented Mar 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.81%. Comparing base (39b3bfa) to head (f309faa).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #96   +/-   ##
=======================================
  Coverage   98.81%   98.81%           
=======================================
  Files           3        3           
  Lines         254      254           
=======================================
  Hits          251      251           
  Misses          3        3           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ccoVeille
Copy link
Owner Author

Please note the tests won't pass, it's normal and expected.

The idea is to report the existing issues in the code base.

cc @acquisitionist who reported #94 and made me noticed I forgot some linters.

Once #94 and #95 will be merged, the PR will be rebased, and the tests will pass.

@ccoVeille ccoVeille mentioned this pull request Mar 21, 2025
@ccoVeille ccoVeille force-pushed the golangci-improvement branch from 20b253a to 8453c1c Compare March 21, 2025 10:51
- revive.exported
- stylecheck

Please note, the golangci-lint default exclusions rules I had to disable
to make things work as expected.
@ccoVeille ccoVeille force-pushed the golangci-improvement branch from 8453c1c to f309faa Compare March 21, 2025 17:51
@ccoVeille
Copy link
Owner Author

now #94 and #95 are merged, everything passes

Thanks again @acquisitionist for helping me to spot this, now it would be automatically reported as an error.

@ccoVeille ccoVeille merged commit 3cfb5dd into main Mar 21, 2025
15 checks passed
@ccoVeille ccoVeille deleted the golangci-improvement branch March 21, 2025 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant