diff --git a/.drone.yml b/.drone.yml index d165efd..918b1be 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,7 +4,7 @@ name: test steps: - name: test - image: golang:1.20 + image: golang:1.21 environment: VERSION: ${DRONE_TAG:-${DRONE_COMMIT}} commands: @@ -32,7 +32,7 @@ trigger: steps: - name: build all binaries - image: golang:1.17 + image: golang:1.21 environment: VERSION: ${DRONE_TAG:-${DRONE_COMMIT}} commands: diff --git a/.golangci.yml b/.golangci.yml index 9118670..dc70944 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -81,16 +81,6 @@ linters: - gochecknoglobals - godox - forbidigo - # Deprecated - - golint - - interfacer - - maligned - - scopelint - - ifshort - - varcheck - - structcheck - - deadcode - - exhaustivestruct linters-settings: gomnd: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 633be70..7998095 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 + rev: v4.5.0 hooks: - id: check-added-large-files - id: check-yaml @@ -11,7 +11,7 @@ repos: - id: end-of-file-fixer - id: check-merge-conflict - repo: https://github.com/dnephin/pre-commit-golang - rev: v0.4.0 + rev: v0.5.1 hooks: - id: go-fmt - id: go-imports diff --git a/job_test.go b/job_test.go index e037ed0..1f1048e 100644 --- a/job_test.go +++ b/job_test.go @@ -148,7 +148,9 @@ func TestJobValidation(t *testing.T) { Name: "Test job", Schedule: "@daily", Config: ValidResticConfig(), - Tasks: []main.JobTask{{}}, //nolint:exhaustruct + Tasks: []main.JobTask{ + {}, //nolint:exhaustruct + }, Backup: main.BackupFilesTask{Paths: []string{"/test"}}, //nolint:exhaustruct Forget: nil, MySQL: []main.JobTaskMySQL{}, @@ -166,7 +168,9 @@ func TestJobValidation(t *testing.T) { Tasks: []main.JobTask{}, Backup: main.BackupFilesTask{Paths: []string{"/test"}}, //nolint:exhaustruct Forget: nil, - MySQL: []main.JobTaskMySQL{{}}, //nolint:exhaustruct + MySQL: []main.JobTaskMySQL{ + {}, //nolint:exhaustruct + }, Postgres: []main.JobTaskPostgres{}, Sqlite: []main.JobTaskSqlite{}, }, @@ -183,7 +187,9 @@ func TestJobValidation(t *testing.T) { Forget: nil, MySQL: []main.JobTaskMySQL{}, Postgres: []main.JobTaskPostgres{}, - Sqlite: []main.JobTaskSqlite{{}}, //nolint:exhaustruct + Sqlite: []main.JobTaskSqlite{ + {}, //nolint:exhaustruct + }, }, expectedErr: main.ErrMissingField, },