-
Notifications
You must be signed in to change notification settings - Fork 83
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
enabled nonamedreturns linter #1033
Open
hrapovd1
wants to merge
19
commits into
ydb-platform:master
Choose a base branch
from
hrapovd1:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
4cb8351
enabled nonamedreturns linter
hrapovd1 046768a
Sync upstream repo to my fork.
hrapovd1 8094dd2
Sync with upsteam this fork.
hrapovd1 7ed5a33
fix owner's comment about CHANGELOG file
hrapovd1 fcc3a3f
Sync this fork with upstream repo
hrapovd1 5c3b04d
fix PR comments
hrapovd1 eba8f27
sync fork with upstream
hrapovd1 27069a2
fixed native/xorm example client tests
hrapovd1 b80e770
fix test's erorrs
hrapovd1 2a55b1e
fixed integration tests
hrapovd1 a62169a
sync fork with upstream repo
hrapovd1 cf8ffa5
fix integration tests
hrapovd1 bc83353
sync fork with upstream
hrapovd1 7142fbc
fix integration tests
hrapovd1 e852c2f
sync fork with upstream
hrapovd1 1fac9de
fix linter after sync
hrapovd1 74b12a2
sync fork with upstream
hrapovd1 ab2def6
fix test's errors
hrapovd1 68e1ee6
sync fork to upstream
hrapovd1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,7 @@ func episodeData(seriesID, seasonID, episodeID, title string, date time.Time) ty | |
) | ||
} | ||
|
||
//nolint:nonamedreturns | ||
func getData() (series, seasons, episodes []types.Value) { | ||
for seriesID, fill := range map[string]func(seriesID string) ( | ||
seriesData types.Value, seasons []types.Value, episodes []types.Value, | ||
|
@@ -61,9 +62,10 @@ func getData() (series, seasons, episodes []types.Value) { | |
episodes = append(episodes, episodesData...) | ||
} | ||
|
||
return | ||
return series, seasons, episodes | ||
} | ||
|
||
//nolint:nonamedreturns | ||
func getDataForITCrowd(seriesID string) (series types.Value, seasons, episodes []types.Value) { | ||
series = seriesData( | ||
seriesID, date("2006-02-03"), "IT Crowd", ""+ | ||
|
@@ -120,6 +122,7 @@ func getDataForITCrowd(seriesID string) (series types.Value, seasons, episodes [ | |
return series, seasons, episodes | ||
} | ||
|
||
//nolint:nonamedreturns | ||
func getDataForSiliconValley(seriesID string) (series types.Value, seasons, episodes []types.Value) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Read previous comment There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK. I returned previous declaration. |
||
series = seriesData( | ||
seriesID, date("2014-04-06"), "Silicon Valley", ""+ | ||
|
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this changes not required and harmful
Because if I call
getDataForITCrowd
- I want to know about each of three results.Old variant helps to understand. New variant cannot helps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. I returned previous declaration.
I simple followed by linter's comment.