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

Add golangci lint config, add many error checks #3250

Merged
merged 14 commits into from
Jan 30, 2021

Conversation

fd0
Copy link
Member

@fd0 fd0 commented Jan 30, 2021

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

Add a configuration file for golangci-lint so that we get good results from all the linters. Also, I tried to add all the error checks mentioned by errcheck, in order to prevent things like #3249.

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

No.

Checklist

cmd/restic/integration_test.go Show resolved Hide resolved
cmd/restic/integration_test.go Show resolved Hide resolved
internal/repository/repository.go Outdated Show resolved Hide resolved
@fd0 fd0 force-pushed the add-golangci-lint-config branch from af8d672 to a00e27a Compare January 30, 2021 19:22
@fd0 fd0 marked this pull request as ready for review January 30, 2021 19:24
@fd0 fd0 changed the title WIP: Add golangci lint config, add many error checks Add golangci lint config, add many error checks Jan 30, 2021
Copy link
Member

@MichaelEischer MichaelEischer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@MichaelEischer MichaelEischer merged commit 99228be into master Jan 30, 2021
@MichaelEischer MichaelEischer deleted the add-golangci-lint-config branch January 30, 2021 20:09
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.

3 participants