Skip to content

Commit

Permalink
Initial commit 🥳
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Eikemeier <[email protected]>
  • Loading branch information
eikemeier committed Jul 9, 2024
0 parents commit d8515ad
Show file tree
Hide file tree
Showing 29 changed files with 1,154 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: "2"
checks:
similar-code:
enabled: false
identical-code:
enabled: false
exclude_patterns:
- "**/.*"
- "**/*_test.go"
- "**/*.md"
- "LICENSE"
- "go.mod"
- "go.sum"
engines:
golangci:
enabled: true
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export GOEXPERIMENT=rangefunc
26 changes: 26 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
* text=auto
*.adoc text
*.bat text eol=crlf
*.bazel text
*.bin filter=lfs diff=lfs merge=lfs -text
*.bzl text
*.css text eol=lf
*.env text
*.go text
*.html text eol=lf
*.jar filter=lfs diff=lfs merge=lfs -text
*.java text
*.js text eol=lf
*.json text
*.md text
*.patch text
*.png filter=lfs diff=lfs merge=lfs -text
*.proto text linguist-detectable
*.scala text
*.ts text eol=lf
*.yaml text
*.zip filter=lfs diff=lfs merge=lfs -text
go.mod text
go.sum text
BUILD text -linguist-detectable
WORKSPACE text -linguist-detectable
7 changes: 7 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
coverage:
status:
project: false
patch: false
ignore:
- atomic/nocopy.go
8 changes: 8 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"automerge": true,
"automergeType": "branch",
"extends": [
"config:base",
":disableDependencyDashboard"
]
}
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: Test
"on":
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test on Go ${{ matrix.go }}
permissions:
checks: write
contents: read
pull-requests: read
statuses: write
runs-on: ubuntu-24.04
strategy:
matrix:
go: ["1.22", "1.21"]
env:
GOTOOLCHAIN: local
steps:
- name: ✔ Check out
uses: actions/checkout@v4
- name: 🐹 Set up Go ${{ matrix.go }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
check-latest: true
- name: 🧸 golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59.1
- name: 🔨 Test
run: go test -coverprofile=cover.out ./...
- name: 🧑🏻‍💻 codecov
uses: codecov/codecov-action@v4
with:
files: ./cover.out
token: ${{ secrets.CODECOV_TOKEN }}
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.*
!/.buildkite/
!/.codeclimate.yml
!/.custom-gcl.yaml
!/.envrc
!/.gitattributes
!/.github/
!/.gitignore
!/.golangci.yaml
!/.markdownlint.yaml
!/.mockery.yaml
!/.prettierrc.yaml
!/.yamlfmt
!/.yamllint
/bin/
/cover.out
/test.xml
/trace.out
/custom-gcl
/zerolint
52 changes: 52 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
run:
modules-download-mode: readonly
linters:
enable-all: true
disable:
# deprecated
- execinquery
- gomnd
# disabled
- depguard
- dupl
- exhaustruct
- forbidigo
- nonamedreturns
- varnamelen
- wrapcheck
- wsl
# Go 1.22
- copyloopvar
- intrange
linters-settings:
govet:
enable-all: true
disable:
- fieldalignment
settings:
shadow:
strict: true
testifylint:
enable-all: true
disable:
- require-error
ireturn:
allow:
- anon
- error
- empty
- stdlib
- generic
predeclared:
ignore: "new"
issues:
exclude-rules:
- path: _test\.go$
linters:
- revive
text: "dot-imports"
- path: _test\.go$
linters:
- govet
text: "lostcancel"
7 changes: 7 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
no-hard-tabs:
ignore_code_languages:
- go
spaces_per_tab: 4
line-length:
line_length: 120
9 changes: 9 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
printWidth: 120
proseWrap: always
tabWidth: 4
useTabs: false
overrides:
- files: "*.md"
options:
tabWidth: 2
8 changes: 8 additions & 0 deletions .yamlfmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
formatter:
type: basic
include_document_start: true
retain_line_breaks: true
scan_folded_as_literal: true
max_line_length: 100
pad_line_comments: 2
7 changes: 7 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
extends: default
rules:
empty-lines:
max: 1
line-length:
max: 120
Loading

0 comments on commit d8515ad

Please sign in to comment.