Skip to content

Commit

Permalink
chore: update template files
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Aug 8, 2024
1 parent 6aef8f3 commit 9390031
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ experimenting

## CI assets
.templates

## Taskfile
.task
5 changes: 4 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ linters:
- inamedparam # reports interfaces with unnamed method parameters
- interfacebloat # check for large interfaces
- intrange # find places where for loops could make use of an integer range
- ireturn # Accept Interfaces, Return Concrete Types.
- lll # check for long lines
- maintidx # measures the maintainability index of each function
- mirror # reports wrong mirror patterns of bytes/strings usage
Expand Down Expand Up @@ -123,6 +122,7 @@ linters:
- mnd # too many detections
- cyclop # covered by gocyclo
- gochecknoglobals # there are many valid reasons for global variables, depending on the project
- ireturn # there are too many exceptions

linters-settings:
wsl:
Expand All @@ -139,6 +139,9 @@ linters-settings:
line-length: 140
tab-width: 1

nlreturn:
block-size: 2

exhaustive:
check-generated: false
default-signifies-exhaustive: true
Expand Down
31 changes: 31 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
# β”‚ β”‚
# β”‚ IMPORTANT NOTE β”‚
# β”‚ β”‚
# β”‚ This file is synced with https://github.com/atomicgo/template β”‚
# β”‚ β”‚
# β”‚ Please apply all changes to the template repository β”‚
# β”‚ β”‚
# β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

version: "3"

tasks:
test:
desc: Run all tests
cmds:
- go test ./...
tdd:
desc: Test Driven Development - Watch tests
watch: true
sources:
- "**/*.go"
cmds:
- go test ./...

lint:
desc: Run all linters
cmds:
- go mod tidy
- wsl --allow-cuddle-declarations --force-err-cuddling --force-case-trailing-whitespace 3 --fix ./...
- golangci-lint run

0 comments on commit 9390031

Please sign in to comment.