-
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.
Housekeeping (update SDK, CI actions, linter, paramgen...) (#119)
* various housekeeping * update SDK to v0.10.0 * update golangci-lint, nats dependencies * paramgen * update docker compose file * go mod tidy, extend start period of test containers * enable monitoring port in all nats test containers * limit start period again * remove validator, enable containedctx linter * go mod tidy * enable errorlint * enable remaining linters * remove prerequisites in readme * Update common/config.go Co-authored-by: Maha Hajja <[email protected]> * Update common/config.go Co-authored-by: Maha Hajja <[email protected]> * make generate --------- Co-authored-by: Maha Hajja <[email protected]>
- Loading branch information
1 parent
ea05157
commit da9748f
Showing
37 changed files
with
1,068 additions
and
1,788 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: project-management | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
project-mgmt: | ||
uses: ConduitIO/automation/.github/workflows/project-automation.yml@main | ||
secrets: | ||
project-automation-token: ${{ secrets.PROJECT_AUTOMATION }} |
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,23 @@ | ||
name: validate-generated-files | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
|
||
jobs: | ||
validate-generated-files: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'go.mod' | ||
|
||
- name: Check generated files | ||
run: | | ||
export PATH=$PATH:$(go env GOPATH)/bin | ||
make install-tools generate | ||
git diff --exit-code --numstat |
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,100 +1,125 @@ | ||
run: | ||
timeout: 5m | ||
|
||
linters-settings: | ||
gofmt: | ||
simplify: false | ||
govet: | ||
check-shadowing: false | ||
nolintlint: | ||
allow-unused: false # report any unused nolint directives | ||
require-explanation: true # require an explanation for nolint directives | ||
require-specific: true # require nolint directives to mention the specific linter being suppressed | ||
gocyclo: | ||
min-complexity: 20 | ||
goconst: | ||
ignore-tests: true | ||
wrapcheck: | ||
ignoreSigs: | ||
- .Errorf( | ||
- errors.New( | ||
- errors.Unwrap( | ||
- errors.Join( | ||
- .Wrap( | ||
- .Wrapf( | ||
- .WithMessage( | ||
- .WithMessagef( | ||
- .WithStack( | ||
- (context.Context).Err() | ||
goheader: | ||
template-path: '.golangci.goheader.template' | ||
values: | ||
regexp: | ||
copyright-year: 20[2-9]\d | ||
lll: | ||
line-length: 120 | ||
|
||
issues: | ||
exclude-rules: | ||
- path: _test\.go | ||
linters: | ||
- dogsled | ||
- gosec | ||
- gocognit | ||
- errcheck | ||
- forcetypeassert | ||
- funlen | ||
- err113 | ||
- dupl | ||
- maintidx | ||
|
||
linters: | ||
# please, do not use `enable-all`: it's deprecated and will be removed soon. | ||
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint | ||
disable-all: true | ||
enable: | ||
- asasalint | ||
- asciicheck | ||
- bidichk | ||
- bodyclose | ||
- containedctx | ||
- contextcheck | ||
- copyloopvar | ||
- decorder | ||
# - depguard | ||
- dogsled | ||
- dupl | ||
- dupword | ||
- durationcheck | ||
- errcheck | ||
- errchkjson | ||
- errname | ||
# - errorlint | ||
# - exhaustive | ||
# - exhaustivestruct | ||
- exportloopref | ||
- errorlint | ||
- exhaustive | ||
# - forbidigo | ||
# - forcetypeassert | ||
# - funlen | ||
# - gochecknoinits | ||
- forcetypeassert | ||
- funlen | ||
- gci | ||
- ginkgolinter | ||
- gocheckcompilerdirectives | ||
- gochecknoinits | ||
- gocognit | ||
- goconst | ||
- gocritic | ||
- gocyclo | ||
# - cyclop # not interested in package complexities at the moment | ||
- godot | ||
- err113 | ||
- gofmt | ||
# - gofumpt | ||
- gofumpt | ||
- goheader | ||
- goimports | ||
- revive | ||
# - gomnd | ||
- gomoddirectives | ||
- gomodguard | ||
- goprintffuncname | ||
- gosec | ||
- gosimple | ||
- gosmopolitan | ||
- govet | ||
# - ifshort | ||
- grouper | ||
- importas | ||
- ineffassign | ||
# - importas | ||
- lll | ||
# - misspell | ||
- interfacebloat | ||
# - ireturn # Doesn't have correct support for generic types https://github.com/butuzov/ireturn/issues/37 | ||
- loggercheck | ||
- maintidx | ||
- makezero | ||
# - nakedret | ||
# - nilerr | ||
# - nilnil | ||
- nlreturn | ||
- mirror | ||
- misspell | ||
- musttag | ||
- nakedret | ||
- nestif | ||
- nilerr | ||
- nilnil | ||
- noctx | ||
- nolintlint | ||
- paralleltest | ||
- nosprintfhostport | ||
- prealloc | ||
- predeclared | ||
- promlinter | ||
- reassign | ||
- revive | ||
- rowserrcheck | ||
- sqlclosecheck | ||
- staticcheck | ||
- stylecheck | ||
- sqlclosecheck | ||
# - tagliatelle | ||
# - tenv | ||
# - thelper | ||
# - tparallel | ||
- typecheck | ||
- tenv | ||
- testableexamples | ||
- thelper | ||
- unconvert | ||
# - unparam | ||
- unparam | ||
- unused | ||
- usestdlibvars | ||
- wastedassign | ||
- whitespace | ||
# - wrapcheck | ||
# - wsl | ||
|
||
# don't enable: | ||
# - asciicheck | ||
# - dupl | ||
# - gochecknoglobals | ||
# - gocognit | ||
# - godox | ||
# - goerr113 | ||
# - maligned | ||
# - nestif | ||
# - prealloc | ||
# - testpackage | ||
# - wsl | ||
- wrapcheck | ||
- zerologlint |
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.