Skip to content

Add golangci-lint and Dependabot - #31

Merged
eniac111 merged 1 commit into
masterfrom
ci/lint-and-dependabot
Oct 26, 2026
Merged

eniac111 merged 1 commit into
masterfrom
ci/lint-and-dependabot

Conversation

@eniac111

Copy link
Copy Markdown
Member

Lint with the standard golangci-lint linters plus gosec and misspell, including the integration tests, in a new CI job that packaging waits for. Dependabot updates Go modules and GitHub Actions weekly.

Fixes for the findings:

  • gentimer fails when it cannot remove a stale unit file instead of leaving it installed
  • errors from setting variables from restic.env are returned
  • notification errors name the channel that failed
  • intentionally ignored errors are explicit, with the reason
  • error strings follow Go conventions

Deliberate patterns (running restic and systemctl with config arguments, world-readable unit files) are documented with nolint comments; the linter configuration explains its exclusions.

Lint with the standard golangci-lint linters plus gosec and misspell,
including the integration tests, in a new CI job that packaging waits
for. Dependabot updates Go modules and GitHub Actions weekly.

Fixes for the findings:
- gentimer fails when it cannot remove a stale unit file instead of
  leaving it installed
- errors from setting variables from restic.env are returned
- notification errors name the channel that failed
- intentionally ignored errors are explicit, with the reason
- error strings follow Go conventions

Deliberate patterns (running restic and systemctl with config
arguments, world-readable unit files) are documented with nolint
comments; the linter configuration explains its exclusions.

Signed-off-by: Blagovest Petrov <blagovest@petrovs.info>
@eniac111
eniac111 merged commit 1c789b3 into master Oct 26, 2026
5 checks passed
@eniac111
eniac111 deleted the ci/lint-and-dependabot branch October 26, 2026 16:07
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.

1 participant