Skip to content

Add golangci lint config, add many error checks#3250

Merged
MichaelEischer merged 14 commits intomasterfrom
add-golangci-lint-config
Jan 30, 2021
Merged

Add golangci lint config, add many error checks#3250
MichaelEischer merged 14 commits intomasterfrom
add-golangci-lint-config

Conversation

@fd0
Copy link
Copy Markdown
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

Comment thread cmd/restic/integration_test.go
Comment thread cmd/restic/integration_test.go
Comment thread internal/repository/repository.go Outdated
Comment thread internal/backend/rclone/internal_test.go Outdated
Comment thread CONTRIBUTING.md
Comment thread cmd/restic/exclude.go
@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
Copy Markdown
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