Skip to content

Commit d8515ad

Browse files
committed
Initial commit 🥳
Signed-off-by: Oliver Eikemeier <[email protected]>
0 parents  commit d8515ad

29 files changed

+1154
-0
lines changed

.codeclimate.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
version: "2"
3+
checks:
4+
similar-code:
5+
enabled: false
6+
identical-code:
7+
enabled: false
8+
exclude_patterns:
9+
- "**/.*"
10+
- "**/*_test.go"
11+
- "**/*.md"
12+
- "LICENSE"
13+
- "go.mod"
14+
- "go.sum"
15+
engines:
16+
golangci:
17+
enabled: true

.envrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export GOEXPERIMENT=rangefunc

.gitattributes

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
* text=auto
2+
*.adoc text
3+
*.bat text eol=crlf
4+
*.bazel text
5+
*.bin filter=lfs diff=lfs merge=lfs -text
6+
*.bzl text
7+
*.css text eol=lf
8+
*.env text
9+
*.go text
10+
*.html text eol=lf
11+
*.jar filter=lfs diff=lfs merge=lfs -text
12+
*.java text
13+
*.js text eol=lf
14+
*.json text
15+
*.md text
16+
*.patch text
17+
*.png filter=lfs diff=lfs merge=lfs -text
18+
*.proto text linguist-detectable
19+
*.scala text
20+
*.ts text eol=lf
21+
*.yaml text
22+
*.zip filter=lfs diff=lfs merge=lfs -text
23+
go.mod text
24+
go.sum text
25+
BUILD text -linguist-detectable
26+
WORKSPACE text -linguist-detectable

.github/codecov.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
coverage:
3+
status:
4+
project: false
5+
patch: false
6+
ignore:
7+
- atomic/nocopy.go

.github/renovate.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"automerge": true,
3+
"automergeType": "branch",
4+
"extends": [
5+
"config:base",
6+
":disableDependencyDashboard"
7+
]
8+
}

.github/workflows/test.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: Test
3+
"on":
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
jobs:
11+
test:
12+
name: Test on Go ${{ matrix.go }}
13+
permissions:
14+
checks: write
15+
contents: read
16+
pull-requests: read
17+
statuses: write
18+
runs-on: ubuntu-24.04
19+
strategy:
20+
matrix:
21+
go: ["1.22", "1.21"]
22+
env:
23+
GOTOOLCHAIN: local
24+
steps:
25+
- name: ✔ Check out
26+
uses: actions/checkout@v4
27+
- name: 🐹 Set up Go ${{ matrix.go }}
28+
uses: actions/setup-go@v5
29+
with:
30+
go-version: ${{ matrix.go }}
31+
check-latest: true
32+
- name: 🧸 golangci-lint
33+
uses: golangci/golangci-lint-action@v6
34+
with:
35+
version: v1.59.1
36+
- name: 🔨 Test
37+
run: go test -coverprofile=cover.out ./...
38+
- name: 🧑🏻‍💻 codecov
39+
uses: codecov/codecov-action@v4
40+
with:
41+
files: ./cover.out
42+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.*
2+
!/.buildkite/
3+
!/.codeclimate.yml
4+
!/.custom-gcl.yaml
5+
!/.envrc
6+
!/.gitattributes
7+
!/.github/
8+
!/.gitignore
9+
!/.golangci.yaml
10+
!/.markdownlint.yaml
11+
!/.mockery.yaml
12+
!/.prettierrc.yaml
13+
!/.yamlfmt
14+
!/.yamllint
15+
/bin/
16+
/cover.out
17+
/test.xml
18+
/trace.out
19+
/custom-gcl
20+
/zerolint

.golangci.yaml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
run:
3+
modules-download-mode: readonly
4+
linters:
5+
enable-all: true
6+
disable:
7+
# deprecated
8+
- execinquery
9+
- gomnd
10+
# disabled
11+
- depguard
12+
- dupl
13+
- exhaustruct
14+
- forbidigo
15+
- nonamedreturns
16+
- varnamelen
17+
- wrapcheck
18+
- wsl
19+
# Go 1.22
20+
- copyloopvar
21+
- intrange
22+
linters-settings:
23+
govet:
24+
enable-all: true
25+
disable:
26+
- fieldalignment
27+
settings:
28+
shadow:
29+
strict: true
30+
testifylint:
31+
enable-all: true
32+
disable:
33+
- require-error
34+
ireturn:
35+
allow:
36+
- anon
37+
- error
38+
- empty
39+
- stdlib
40+
- generic
41+
predeclared:
42+
ignore: "new"
43+
issues:
44+
exclude-rules:
45+
- path: _test\.go$
46+
linters:
47+
- revive
48+
text: "dot-imports"
49+
- path: _test\.go$
50+
linters:
51+
- govet
52+
text: "lostcancel"

.markdownlint.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
no-hard-tabs:
3+
ignore_code_languages:
4+
- go
5+
spaces_per_tab: 4
6+
line-length:
7+
line_length: 120

.prettierrc.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
printWidth: 120
3+
proseWrap: always
4+
tabWidth: 4
5+
useTabs: false
6+
overrides:
7+
- files: "*.md"
8+
options:
9+
tabWidth: 2

.yamlfmt

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
formatter:
3+
type: basic
4+
include_document_start: true
5+
retain_line_breaks: true
6+
scan_folded_as_literal: true
7+
max_line_length: 100
8+
pad_line_comments: 2

.yamllint

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
extends: default
3+
rules:
4+
empty-lines:
5+
max: 1
6+
line-length:
7+
max: 120

0 commit comments

Comments
 (0)