Skip to content

Commit b5c08fa

Browse files
committed
chore: Tweak config
1 parent 0ec2e15 commit b5c08fa

8 files changed

Lines changed: 72 additions & 48 deletions

File tree

.github/dependabot.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/renovate.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended",
5+
"docker:pinDigests"
6+
],
7+
"pre-commit": {
8+
"enabled": true
9+
},
10+
"postUpdateOptions": [
11+
"gomodTidy"
12+
]
13+
}

.github/workflows/build.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ jobs:
1414
test:
1515
name: Build and Test
1616
runs-on: ubuntu-latest
17-
strategy:
18-
fail-fast: false
19-
matrix:
20-
go:
21-
- '1.21'
22-
- '1.22'
2317

2418
env:
2519
DNS_HOST: ns.example.com
@@ -38,28 +32,28 @@ jobs:
3832
- name: Set up Go
3933
uses: actions/setup-go@v5
4034
with:
41-
go-version: ${{ matrix.go }}
35+
go-version-file: 'go.mod'
4236

4337
- name: Install Kerberos client
4438
run: |
4539
sudo apt-get update
4640
sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq libkrb5-dev krb5-user
4741
4842
- name: golangci-lint (gokrb5)
49-
uses: golangci/golangci-lint-action@v6
43+
uses: golangci/golangci-lint-action@v9
5044
if: github.event_name == 'pull_request'
5145
with:
5246
only-new-issues: true
5347

5448
- name: golangci-lint (apcera)
55-
uses: golangci/golangci-lint-action@v6
49+
uses: golangci/golangci-lint-action@v9
5650
if: github.event_name == 'pull_request'
5751
with:
5852
only-new-issues: true
5953
args: --build-tags apcera
6054

6155
- name: golangci-lint (SSPI)
62-
uses: golangci/golangci-lint-action@v6
56+
uses: golangci/golangci-lint-action@v9
6357
if: github.event_name == 'pull_request'
6458
with:
6559
only-new-issues: true

.golangci.yaml

Lines changed: 52 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,121 @@
1-
---
2-
issues:
3-
exclude-use-default: false
1+
version: "2"
42
linters:
5-
disable-all: true
3+
default: none
64
enable:
75
- asasalint
86
- asciicheck
97
- bidichk
108
- bodyclose
9+
- canonicalheader
1110
- containedctx
1211
- contextcheck
12+
#- copyloopvar
1313
- cyclop
1414
- decorder
1515
- dogsled
1616
- dupl
1717
- dupword
1818
- durationcheck
19+
#- err113
1920
- errcheck
2021
- errchkjson
2122
- errname
2223
- errorlint
23-
- execinquery
2424
- exhaustive
25-
- exportloopref
25+
- exptostd
26+
- fatcontext
2627
- forbidigo
2728
- forcetypeassert
29+
#- funcorder
2830
- funlen
29-
- gci
31+
- ginkgolinter
32+
- gocheckcompilerdirectives
3033
- gochecknoglobals
3134
- gochecknoinits
35+
- gochecksumtype
3236
- gocognit
3337
- goconst
3438
- gocritic
3539
- gocyclo
3640
- godot
37-
- gofmt
38-
- gofumpt
41+
#- godox
3942
- goheader
40-
- goimports
4143
- gomoddirectives
4244
- gomodguard
4345
- goprintffuncname
44-
- gosec
45-
- gosimple
46-
- govet
46+
#- gosec
47+
- gosmopolitan
48+
#- govet
4749
- grouper
50+
- iface
4851
- importas
52+
#- inamedparam
4953
- ineffassign
5054
- interfacebloat
55+
#- intrange
5156
- lll
5257
- loggercheck
5358
- maintidx
5459
- makezero
60+
- mirror
5561
- misspell
62+
- musttag
5663
- nakedret
5764
- nestif
5865
- nilerr
66+
- nilnesserr
5967
- nilnil
6068
- nlreturn
6169
- noctx
6270
- nolintlint
71+
#- nonamedreturns
6372
- nosprintfhostport
6473
- paralleltest
74+
#- perfsprint
6575
- prealloc
6676
- predeclared
6777
- promlinter
78+
- protogetter
6879
- reassign
69-
- revive
80+
- recvcheck
81+
#- revive
7082
- rowserrcheck
83+
- sloglint
84+
- spancheck
7185
- sqlclosecheck
7286
- staticcheck
73-
- stylecheck
87+
- tagalign
7488
- tagliatelle
75-
- tenv
7689
- testableexamples
90+
#- testifylint
7791
- testpackage
7892
- thelper
7993
- tparallel
80-
- typecheck
8194
- unconvert
8295
- unparam
8396
- unused
8497
- usestdlibvars
98+
- usetesting
8599
- wastedassign
86100
- whitespace
87-
- wsl
101+
#- wrapcheck
102+
#- wsl
103+
- zerologlint
104+
exclusions:
105+
generated: lax
106+
paths:
107+
- third_party$
108+
- builtin$
109+
- examples$
110+
formatters:
111+
enable:
112+
- gci
113+
- gofmt
114+
- gofumpt
115+
- goimports
116+
exclusions:
117+
generated: lax
118+
paths:
119+
- third_party$
120+
- builtin$
121+
- examples$

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ repos:
44
hooks:
55
- id: commitizen
66
- repo: https://github.com/golangci/golangci-lint
7-
rev: v1.54.1
7+
rev: v2.11.4
88
hooks:
99
- id: golangci-lint

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
[![Coverage Status](https://coveralls.io/repos/github/bodgit/tsig/badge.svg?branch=main)](https://coveralls.io/github/bodgit/tsig?branch=main)
44
[![Go Report Card](https://goreportcard.com/badge/github.com/bodgit/tsig)](https://goreportcard.com/report/github.com/bodgit/tsig)
55
[![GoDoc](https://godoc.org/github.com/bodgit/tsig?status.svg)](https://godoc.org/github.com/bodgit/tsig)
6-
![Go version](https://img.shields.io/badge/Go-1.22-brightgreen.svg)
7-
![Go version](https://img.shields.io/badge/Go-1.21-brightgreen.svg)
6+
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/bodgit/tsig)
87

98
# Additional TSIG methods
109

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/bodgit/tsig
22

3-
go 1.18
3+
go 1.25
44

55
require (
66
github.com/alexbrainman/sspi v0.0.0-20180613141037-e580b900e9f5

renovate.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)