[YUNIKORN-3345] Turn on nonamedreturns linter - #1129
Closed
PoiBlackTea wants to merge 1 commit into
Closed
Conversation
Turn on nonamedreturns linter in .golangci.yml and refactor functions using named returns.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1129 +/- ##
=======================================
Coverage 81.60% 81.61%
=======================================
Files 104 104
Lines 14251 14255 +4
=======================================
+ Hits 11630 11634 +4
Misses 2331 2331
Partials 290 290 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
chenyulin0719
approved these changes
Aug 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR turns on the nonamedreturns linter in .golangci.yml and refactors existing functions.
Type of change
Please delete options that are not relevant.
Jira issue
Jira ID : https://issues.apache.org/jira/browse/YUNIKORN-3345
AI Tooling
If an AI tool was used:
Check https://www.apache.org/legal/generative-tooling.html for details.
How has this been tested?
make test_allwas run, and no failures reported.Questions:
release-noteslabel.Screenshots or other details
N/A