diff --git a/.github/workflows/inspect.yaml b/.github/workflows/inspect.yaml index abb70c0..4f7c0b6 100644 --- a/.github/workflows/inspect.yaml +++ b/.github/workflows/inspect.yaml @@ -25,9 +25,9 @@ jobs: - uses: actions/checkout@v2 # see: https://golangci-lint.run/usage/configuration/#config-file - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v2.5.2 with: - version: v1.32 + version: v1.42.1 - name: golic run: | go install github.com/AbsaOSS/golic@v0.5.0 diff --git a/.golangci b/.golangci index 1dda32c..877a465 100644 --- a/.golangci +++ b/.golangci @@ -7,7 +7,7 @@ linters: - gocritic - gocyclo - goimports - - golint + - revive - gosec - gosimple - govet @@ -15,6 +15,33 @@ linters: - misspell - nakedret - lll + - noctx + - rowserrcheck + - staticcheck + - structcheck + - stylecheck + - typecheck + - unconvert + - unparam + - unused + - varcheck + - depguard + - dogsled + - exportloopref + - goconst + - goprintffuncname + - nolintlint + - dupl + - gochecknoinits + + # don't enable: + # - golint # deprecated + # - whitespace + # - funlen + # - exhaustive + # - gomnd + # - gofmt + run: deadline: 3m linters-settings: diff --git a/.golic.yaml b/.golic.yaml index 15b1f27..097fb7e 100644 --- a/.golic.yaml +++ b/.golic.yaml @@ -39,7 +39,7 @@ golic: Generated by GoLic, for more details see: https://github.com/AbsaOSS/golic rules: .go: - prefix: "/*" + prefix: "\n/*" suffix: "*/" under: - "package *" diff --git a/cmd/inject.go b/cmd/inject.go index b47c8a8..2154001 100644 --- a/cmd/inject.go +++ b/cmd/inject.go @@ -1,4 +1,5 @@ package cmd + /* Copyright 2022 Absa Group Limited diff --git a/cmd/remove.go b/cmd/remove.go index e543651..f0c0570 100644 --- a/cmd/remove.go +++ b/cmd/remove.go @@ -1,4 +1,5 @@ package cmd + /* Copyright 2022 Absa Group Limited diff --git a/cmd/root.go b/cmd/root.go index 178607b..caeff18 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,5 +1,6 @@ //package provides cobra commands package cmd + /* Copyright 2022 Absa Group Limited diff --git a/cmd/runner.go b/cmd/runner.go index 7a7fb73..5ff6a74 100644 --- a/cmd/runner.go +++ b/cmd/runner.go @@ -1,4 +1,5 @@ package cmd + /* Copyright 2022 Absa Group Limited diff --git a/cmd/version.go b/cmd/version.go index fb2e021..8b5e271 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -1,4 +1,5 @@ package cmd + /* Copyright 2022 Absa Group Limited diff --git a/impl/update/config.go b/impl/update/config.go index 526bba4..c3cb329 100644 --- a/impl/update/config.go +++ b/impl/update/config.go @@ -1,4 +1,5 @@ package update + /* Copyright 2022 Absa Group Limited diff --git a/impl/update/match.go b/impl/update/match.go index ba674ed..b52f684 100644 --- a/impl/update/match.go +++ b/impl/update/match.go @@ -1,4 +1,5 @@ package update + /* Copyright 2022 Absa Group Limited diff --git a/impl/update/opts.go b/impl/update/opts.go index aff7ee1..99e1118 100644 --- a/impl/update/opts.go +++ b/impl/update/opts.go @@ -1,4 +1,5 @@ package update + /* Copyright 2022 Absa Group Limited diff --git a/impl/update/update.go b/impl/update/update.go index 46f09b4..218ea1a 100644 --- a/impl/update/update.go +++ b/impl/update/update.go @@ -1,4 +1,5 @@ package update + /* Copyright 2022 Absa Group Limited diff --git a/main.go b/main.go index 142a0e5..e5ff5cb 100644 --- a/main.go +++ b/main.go @@ -1,4 +1,5 @@ package main + /* Copyright 2022 Absa Group Limited diff --git a/utils/guard/guard.go b/utils/guard/guard.go index dbc3419..c226f77 100644 --- a/utils/guard/guard.go +++ b/utils/guard/guard.go @@ -1,5 +1,6 @@ // Package guard throws errors or panics when error occur package guard + /* Copyright 2022 Absa Group Limited diff --git a/utils/log/log.go b/utils/log/log.go index de60fdb..997b072 100644 --- a/utils/log/log.go +++ b/utils/log/log.go @@ -1,5 +1,6 @@ // Package log wraps zerolog logger and provides standard log functionality package log + /* Copyright 2022 Absa Group Limited