Skip to content

Commit

Permalink
Initial commit 🥳
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Eikemeier <eikemeier@fillmore-labs.com>
  • Loading branch information
eikemeier committed Apr 21, 2024
0 parents commit 941f069
Show file tree
Hide file tree
Showing 25 changed files with 1,036 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
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"
]
}
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Test
"on":
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
strategy:
matrix:
go: ['1.22', '1.21']
name: Test on Go ${{ matrix.go }}
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
pull-requests: read
statuses: write
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@v4
with:
version: v1.57.2
- name: 🔨 Test
run: go test -race -coverprofile=cover.out ./...
- name: 🧑🏻‍💻 codecov
uses: codecov/codecov-action@v4
with:
files: ./cover.out
token: ${{ secrets.CODECOV_TOKEN }}
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.*
!/.buildkite/
!/.codeclimate.yml
!/.envrc
!/.gitattributes
!/.github/
!/.gitignore
!/.golangci.yaml
!/.markdownlint.yaml
!/.mockery.yaml
!/.prettierrc.yaml
!/.yamlfmt
!/.yamllint
/bin/
/cover.out
/test.xml
/trace.out
46 changes: 46 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
run:
modules-download-mode: readonly
linters:
enable-all: true
disable:
# deprecated
- deadcode
- exhaustivestruct
- golint
- ifshort
- interfacer
- maligned
- nosnakecase
- scopelint
- structcheck
- varcheck
# disabled
- depguard
- dupl
- exhaustruct
- forbidigo
- nonamedreturns
- varnamelen
- wrapcheck
- wsl
# Go 1.22
- copyloopvar
- intrange
linters-settings:
testifylint:
enable-all: true
disable:
- require-error
ireturn:
allow:
- error
- generic
predeclared:
ignore: "new"
issues:
exclude-rules:
- path: _test\.go$
linters:
- revive
text: "dot-imports"
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 941f069

Please sign in to comment.