Skip to content

Commit

Permalink
upgrade GolanCI
Browse files Browse the repository at this point in the history
kuritka committed Dec 20, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent ad7d9ae commit e12929f
Showing 15 changed files with 43 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/inspect.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
29 changes: 28 additions & 1 deletion .golangci
Original file line number Diff line number Diff line change
@@ -7,14 +7,41 @@ linters:
- gocritic
- gocyclo
- goimports
- golint
- revive
- gosec
- gosimple
- govet
- ineffassign
- 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:
2 changes: 1 addition & 1 deletion .golic.yaml
Original file line number Diff line number Diff line change
@@ -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 *"
1 change: 1 addition & 0 deletions cmd/inject.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package cmd

/*
Copyright 2022 Absa Group Limited
1 change: 1 addition & 0 deletions cmd/remove.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package cmd

/*
Copyright 2022 Absa Group Limited
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//package provides cobra commands
package cmd

/*
Copyright 2022 Absa Group Limited
1 change: 1 addition & 0 deletions cmd/runner.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package cmd

/*
Copyright 2022 Absa Group Limited
1 change: 1 addition & 0 deletions cmd/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package cmd

/*
Copyright 2022 Absa Group Limited
1 change: 1 addition & 0 deletions impl/update/config.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package update

/*
Copyright 2022 Absa Group Limited
1 change: 1 addition & 0 deletions impl/update/match.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package update

/*
Copyright 2022 Absa Group Limited
1 change: 1 addition & 0 deletions impl/update/opts.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package update

/*
Copyright 2022 Absa Group Limited
1 change: 1 addition & 0 deletions impl/update/update.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package update

/*
Copyright 2022 Absa Group Limited
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package main

/*
Copyright 2022 Absa Group Limited
1 change: 1 addition & 0 deletions utils/guard/guard.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Package guard throws errors or panics when error occur
package guard

/*
Copyright 2022 Absa Group Limited
1 change: 1 addition & 0 deletions utils/log/log.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Package log wraps zerolog logger and provides standard log functionality
package log

/*
Copyright 2022 Absa Group Limited

0 comments on commit e12929f

Please sign in to comment.