-
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.
all: add golangci.yaml and fix errors
- Loading branch information
Showing
26 changed files
with
298 additions
and
141 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,38 @@ | ||
linters: | ||
enable: | ||
- gci | ||
- godot | ||
- gofmt | ||
- goheader | ||
- misspell | ||
- revive | ||
- whitespace | ||
- unparam | ||
linters-settings: | ||
gci: | ||
sections: | ||
- standard | ||
- default | ||
- prefix(github.com/adevinta/vulcan-tracker) | ||
custom-order: true | ||
goheader: | ||
values: | ||
const: | ||
COMPANY: Adevinta | ||
regexp: | ||
ANY-YEAR: \d{4} | ||
template: |- | ||
Copyright {{ ANY-YEAR }} {{ COMPANY }} | ||
issues: | ||
max-issues-per-linter: 0 | ||
max-same-issues: 0 | ||
exclude-use-default: false | ||
exclude-rules: | ||
- linters: | ||
- errcheck | ||
text: 'Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv). is not checked' | ||
- linters: | ||
- revive | ||
text: 'unused-parameter: parameter ''.*'' seems to be unused' | ||
run: | ||
timeout: 5m |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
Copyright 2022 Adevinta | ||
*/ | ||
|
||
// Package main start a vulcan-tracker server. | ||
package main | ||
|
||
import ( | ||
|
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,36 +1,49 @@ | ||
module github.com/adevinta/vulcan-tracker | ||
|
||
go 1.20 | ||
go 1.21 | ||
|
||
require ( | ||
github.com/BurntSushi/toml v1.2.0 | ||
github.com/BurntSushi/toml v1.3.2 | ||
github.com/andygrunwald/go-jira v1.16.0 | ||
github.com/aws/aws-sdk-go v1.44.284 | ||
github.com/aws/aws-secretsmanager-caching-go v1.1.0 | ||
github.com/go-testfixtures/testfixtures/v3 v3.8.1 | ||
github.com/google/go-cmp v0.5.9 | ||
github.com/aws/aws-sdk-go v1.50.31 | ||
github.com/aws/aws-secretsmanager-caching-go v1.1.3 | ||
github.com/go-testfixtures/testfixtures/v3 v3.10.0 | ||
github.com/google/go-cmp v0.6.0 | ||
github.com/jmoiron/sqlx v1.3.5 | ||
github.com/labstack/echo/v4 v4.9.0 | ||
github.com/labstack/gommon v0.3.1 | ||
github.com/lib/pq v1.10.6 | ||
github.com/labstack/echo/v4 v4.11.4 | ||
github.com/labstack/gommon v0.4.2 | ||
github.com/lib/pq v1.10.9 | ||
) | ||
|
||
require ( | ||
github.com/ClickHouse/ch-go v0.58.2 // indirect | ||
github.com/ClickHouse/clickhouse-go/v2 v2.18.0 // indirect | ||
github.com/andybalholm/brotli v1.1.0 // indirect | ||
github.com/fatih/structs v1.1.0 // indirect | ||
github.com/go-faster/city v1.0.1 // indirect | ||
github.com/go-faster/errors v0.6.1 // indirect | ||
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect | ||
github.com/golang-jwt/jwt/v4 v4.4.2 // indirect | ||
github.com/google/go-querystring v1.1.0 // indirect | ||
github.com/google/uuid v1.6.0 // indirect | ||
github.com/jmespath/go-jmespath v0.4.0 // indirect | ||
github.com/mattn/go-colorable v0.1.11 // indirect | ||
github.com/mattn/go-isatty v0.0.14 // indirect | ||
github.com/klauspost/compress v1.16.7 // indirect | ||
github.com/mattn/go-colorable v0.1.13 // indirect | ||
github.com/mattn/go-isatty v0.0.20 // indirect | ||
github.com/paulmach/orb v0.11.1 // indirect | ||
github.com/pierrec/lz4/v4 v4.1.18 // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/segmentio/asm v1.2.0 // indirect | ||
github.com/shopspring/decimal v1.3.1 // indirect | ||
github.com/trivago/tgo v1.0.7 // indirect | ||
github.com/valyala/bytebufferpool v1.0.0 // indirect | ||
github.com/valyala/fasttemplate v1.2.1 // indirect | ||
golang.org/x/crypto v0.10.0 // indirect | ||
golang.org/x/net v0.11.0 // indirect | ||
golang.org/x/sys v0.9.0 // indirect | ||
golang.org/x/text v0.10.0 // indirect | ||
golang.org/x/time v0.0.0-20201208040808-7e3f01d25324 // indirect | ||
github.com/valyala/fasttemplate v1.2.2 // indirect | ||
go.opentelemetry.io/otel v1.22.0 // indirect | ||
go.opentelemetry.io/otel/trace v1.22.0 // indirect | ||
golang.org/x/crypto v0.21.0 // indirect | ||
golang.org/x/net v0.21.0 // indirect | ||
golang.org/x/sys v0.18.0 // indirect | ||
golang.org/x/text v0.14.0 // indirect | ||
golang.org/x/time v0.5.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
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
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
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
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
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
Oops, something went wrong.