Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4.3.0
- name: Get GitHub Tag
id: get_tag
run: |
Expand All @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Prepare
id: prep
run: |
Expand All @@ -41,24 +41,24 @@ jobs:
run: |
echo "::set-output name=tag::${GITHUB_REF#refs/tags/}"
- name: Cache container layers
uses: actions/cache@v2.1.4
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push container (multi arch)
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
push: true
context: .
Expand Down
182 changes: 182 additions & 0 deletions .golangci.bck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
run:
timeout: 4m

linters:
enable:
- gocyclo
- misspell
- nilerr
- unparam
- gosec
- unused
- govet
- gosimple
- errorlint
- errcheck
- dupl
- dogsled
- cyclop
- exhaustive
- funlen
- gocognit
- nestif
- goconst
- gocritic
- godot
- gofmt
- revive
- lll
- makezero
- nakedret
- prealloc
- nolintlint
- staticcheck
- thelper
- whitespace

linters-settings:
gocyclo:
min-complexity: 20

misspell:
locale: US

unparam:
check-exported: true

gosimple:
checks: [ "all" ]

errorlint:
errorf: true
asserts: true
comparison: true

errcheck:
check-type-assertions: true
check-blank: true

dupl:
threshold: 100

dogsled:
max-blank-identifiers: 2

cyclop:
max-complexity: 15
package-average: 0.0
skip-tests: true

exhaustive:
check-generated: false
default-signifies-exhaustive: false

funlen:
lines: 80
statements: 50

gocognit:
min-complexity: 20

nestif:
min-complexity: 5

goconst:
min-len: 3
min-occurrences: 3

gocritic:
enabled-checks:
#- unnamedresult
#- truncatecmp
- ruleguard
#- nestingreduce
enabled-tags:
- performance
disabled-tags:
- experimental
settings:
captLocal:
paramsOnly: true
elseif:
skipBalanced: true
hugeParam:
sizeThreshold: 80
nestingReduce:
bodyWidth: 5
rangeExprCopy:
sizeThreshold: 512
skipTestFuncs: true
rangeValCopy:
sizeThreshold: 32
skipTestFuncs: true
ruleguard:
rules: ''
truncateCmp:
skipArchDependent: true
underef:
skipRecvDeref: true
unnamedResult:
checkExported: true

godot:
scope: declarations
capital: false

gofmt:
simplify: true

revive:
ignore-generated-header: true
severity: warning

lll:
line-length: 140
tab-width: 1

makezero:
always: false

nakedret:
max-func-lines: 30

prealloc:
simple: true
range-loops: true
for-loops: false

nolintlint:
allow-unused: false
allow-no-explanation: []
require-explanation: true
require-specific: true

staticcheck:
checks: [ "all" ]

thelper:
test:
first: true
name: true
begin: true
benchmark:
first: true
name: true
begin: true
tb:
first: true
name: true
begin: true

whitespace:
multi-if: false
multi-func: false

issues:
exclude-rules:
- path: _test\.go
linters:
- gocyclo
- funlen
- gocognit
- unparam
Loading
Loading