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

Update golangci-lint and resolve all errors #4333

Merged
merged 23 commits into from May 26, 2023

Conversation

MichaelEischer
Copy link
Member

@MichaelEischer MichaelEischer commented May 18, 2023

What does this PR change? What problem does it solve?

Upgrade golangci-lint and resolve all errors. The majority of changes revolves around cleaning up unused parameters. golangci-lint is now configured to fail if there are any warnings in the codebase and not just in changed code.

The most noteworthy changes are that the init/generate command now explicitly check that no command line arguments were passed. And the azure backend no longer honoured upload/download rate limits.

Was the change previously discussed in an issue or on the forum?

No.

Checklist

  • I have read the contribution guidelines.
  • I have enabled maintainer edits.
  • [ ] I have added tests for all code changes.
  • [ ] I have added documentation for relevant changes (in the manual).
  • There's a new file in changelog/unreleased/ that describes the changes for our users (see template).`
  • I have run gofmt on the code in all commits.
  • All commit messages are formatted in the same style as the other commits in the repo.
  • I'm done! This pull request is ready for review.

@MichaelEischer MichaelEischer changed the title Fix most warnings reported by Staticcheck Update golangci-lint and resolve all errors May 18, 2023
@greatroar
Copy link
Contributor

I only took a quick peek, but what I saw looks fine.

@MichaelEischer
Copy link
Member Author

@greatroar Thanks for having a look!

I've added a tiny changelog for the behavior change of init and generate.

@MichaelEischer MichaelEischer merged commit 998cf5a into restic:master May 26, 2023
11 checks passed
@MichaelEischer MichaelEischer deleted the staticcheck branch May 26, 2023 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants