-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Oliver Eikemeier <[email protected]>
- Loading branch information
0 parents
commit d8515ad
Showing
29 changed files
with
1,154 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export GOEXPERIMENT=rangefunc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
coverage: | ||
status: | ||
project: false | ||
patch: false | ||
ignore: | ||
- atomic/nocopy.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"automerge": true, | ||
"automergeType": "branch", | ||
"extends": [ | ||
"config:base", | ||
":disableDependencyDashboard" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.