-
Notifications
You must be signed in to change notification settings - Fork 205
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
Makefile: update versions & FPGA: fix naked return error from linter #1477
Conversation
What change in golangi-lint triggers the error? Did they change the |
I thought |
can you find out please? |
I really do not understand... So, my guess is just that there was some logic change of calculating how many lines a func has (and I think there was a problem in the logic in the past so that it did not show the errors though they should have). |
this was fixed in v1.53.0: golangci/golangci-lint#1317 |
Given this ^, it's not
but
|
golangci-lint version < v1.53.0 used nakedret linter that did not check return values in conditionals. That got changed in v1.53.0 and some of our code starts failing because of naked returns from conditionals. Update the code to get nakedret linter passing. Signed-off-by: Hyeongju Johannes Lee <[email protected]>
Signed-off-by: Hyeongju Johannes Lee <[email protected]>
Signed-off-by: Hyeongju Johannes Lee <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #1477 +/- ##
=======================================
Coverage 50.10% 50.10%
=======================================
Files 43 43
Lines 4878 4878
=======================================
Hits 2444 2444
Misses 2295 2295
Partials 139 139
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
New version of golangci-lint shows errors about
return
with having no value.FPGA related codes have such, so fixed.