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
22 changes: 22 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Go Build

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
name: Go Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version: '^1.24.7' # The Go version to download (if necessary) and use.
#- name: golangci-lint
# uses: golangci/golangci-lint-action@v8
# with:
# version: v2.4
- run: go build ./...
- run: go test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea
.idea
external-dns-coredns-webhook
96 changes: 96 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
version: "2"
run:
modules-download-mode: readonly
tests: true
linters:
default: none
enable:
- copyloopvar
- dogsled
- dupl
- errcheck
- errname
- exhaustive
- forcetypeassert
- funlen
- gocognit
- goconst
- gocritic
- gocyclo
- godox
- goprintffuncname
- gosec
- govet
- importas
- ineffassign
- lll
- misspell
- mnd
- nakedret
- nestif
- nilnil
- nolintlint
- prealloc
- predeclared
- promlinter
- testpackage
- thelper
- unconvert
- unused
- whitespace
settings:
dupl:
threshold: 100
funlen:
lines: 100
statements: 50
goconst:
min-len: 2
min-occurrences: 2
gocritic:
disabled-checks:
- ifElseChain
- octalLiteral
- wrapperFunc
enabled-tags:
- diagnostic
- opinionated
- performance
settings:
hugeParam:
sizeThreshold: 200
gocyclo:
min-complexity: 15
lll:
line-length: 130
misspell:
locale: US
nolintlint:
require-explanation: false
require-specific: false
allow-unused: false
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofumpt
- goimports
settings:
goimports:
local-prefixes:
- github.com/GDATASoftwareAG/external-dns-coredns-webhook
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
Loading
Loading