-
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: Kevin Mulvey <kmulvey@linux.com>
- Loading branch information
Showing
5 changed files
with
75 additions
and
36 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
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
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,34 @@ | ||
# Options for analysis running. | ||
run: | ||
concurrency: 2 | ||
timeout: 10m | ||
tests: true | ||
modules-download-mode: readonly | ||
go: "1.20" | ||
linters: | ||
#enable-all: true | ||
enable: | ||
- bidichk | ||
- bodyclose | ||
- containedctx | ||
#- cyclop | ||
#- dupl | ||
- exportloopref | ||
- gocritic | ||
- goconst | ||
- gosec | ||
- misspell | ||
- nilerr | ||
- paralleltest | ||
- prealloc | ||
# - unparam https://github.com/mvdan/unparam/issues/52 | ||
- usestdlibvars | ||
- wastedassign | ||
linters-settings: | ||
govet: | ||
check-shadowing: false | ||
disable-all: false | ||
enable-all: true | ||
disable: | ||
- shadow | ||
- fieldalignment # giving false positives |
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 |
---|---|---|
@@ -1,32 +1,40 @@ | ||
# This is an example .goreleaser.yml file with some sensible defaults. | ||
# Make sure to check the documentation at https://goreleaser.com | ||
before: | ||
hooks: | ||
# You may remove this if you don't use go modules. | ||
- go mod tidy | ||
|
||
builds: | ||
- id: concurrenthash | ||
main: ./cmd/main.go | ||
env: | ||
- CGO_ENABLED=0 | ||
binary: concurrenthash | ||
ldflags: | ||
- -s -w -X main.build={{.Version}} | ||
goos: | ||
- linux | ||
- freebsd | ||
- windows | ||
- darwin | ||
- linux | ||
- js | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
|
||
archives: | ||
- replacements: | ||
darwin: Darwin | ||
linux: Linux | ||
windows: Windows | ||
386: i386 | ||
amd64: x86_64 | ||
- id: dist | ||
name_template: >- | ||
{{ .ProjectName }}_ | ||
{{- title .Os }}_ | ||
{{- if eq .Arch "amd64" }}x86_64 | ||
{{- else if eq .Arch "386" }}i386 | ||
{{- else }}{{ .Arch }}{{ end }} | ||
checksum: | ||
name_template: 'checksums.txt' | ||
name_template: "checksums.txt" | ||
snapshot: | ||
name_template: "{{ incpatch .Version }}-next" | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' | ||
- "^docs:" | ||
- "^test:" |
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,3 @@ | ||
parsers: | ||
go: | ||
partials_as_hits: true |