Skip to content

address stringent ineffectual assignment check in golangci-lint - #5093

Merged
ivandeex merged 1 commit into
rclone:masterfrom
ivandeex:pr-golangcilint
Mar 4, 2021
Merged

ivandeex merged 1 commit into
rclone:masterfrom
ivandeex:pr-golangcilint

Conversation

@ivandeex

@ivandeex ivandeex commented Mar 3, 2021 •

Copy link
Copy Markdown
Member

What is the purpose of this change?

Today the golangci-lint tool began reporting errors in two places of rclone test code.
Apparently its ineffectual assignment check has become more stringent.
This quick fix addresses it and restores commits health on the master branch.
It's recommended to back-port it on the stable branch as it affects health of all future commits.

Was the change discussed in an issue or in the forum before?

No. It's an early bird.

Checklist

  • I have read the contribution guidelines.
  • I have added tests for all changes in this PR if appropriate.
  • I have added documentation for the changes if appropriate.
  • All commit messages are in house style.
  • I'm done, this Pull Request is ready for review :-)

@ivandeex ivandeex added this to the v1.55 milestone Mar 3, 2021
@ivandeex ivandeex mentioned this pull request Mar 3, 2021
5 tasks done
@ivandeex
ivandeex requested a review from ncw March 3, 2021 19:27
@ivandeex

ivandeex commented Mar 3, 2021

Copy link
Copy Markdown
Member Author

@ncw Please merge

@ivandeex

ivandeex commented Mar 4, 2021

Copy link
Copy Markdown
Member Author

marking important as the new golangci-lint makes code quality check break in all ongoing pulls

@ivandeex ivandeex mentioned this pull request Mar 4, 2021
3 of 5 tasks
@ivandeex

ivandeex commented Mar 4, 2021

Copy link
Copy Markdown
Member Author

@ncw I will merge this without a review

@ivandeex
ivandeex merged commit 7aa7acd into rclone:master Mar 4, 2021
@ivandeex

ivandeex commented Mar 4, 2021

Copy link
Copy Markdown
Member Author

@ncw I recommend backporting this

@ivandeex
ivandeex deleted the pr-golangcilint branch March 4, 2021 16:54
@ncw

ncw commented Mar 5, 2021

Copy link
Copy Markdown
Member

Yes good idea. Do you want to cherry pick it onto the v1.54-branch?

@ivandeex

ivandeex commented Mar 5, 2021

Copy link
Copy Markdown
Member Author

Do you want to

No :)

cherry pick it onto the v1.54-branch?

Done

@ncw

ncw commented Mar 6, 2021

Copy link
Copy Markdown
Member

I think it is time to make a v1.54.1 - I will try to do that this weekend

@ivandeex

ivandeex commented Mar 7, 2021

Copy link
Copy Markdown
Member Author

I am sorry about my mistake and failing integration tests
Here is the fixing patch
ivandeex@39ba150

lafkpages pushed a commit to lafkpages/rclone that referenced this pull request Jul 20, 2026
MindThaApp pushed a commit to MindThaApp/rclone that referenced this pull request Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants