Skip to content

Commit

Permalink
lint lint
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-cross committed Nov 17, 2023
1 parent 2bd9ad5 commit beced33
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: ❓ Ask a Question
url: https://github.com/ConduitIO/conduit/discussions
about: Please ask and answer questions here.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21 changes: 12 additions & 9 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,21 @@ linters-settings:
values:
regexp:
copyright-year: 20[2-9]\d
lll:
line-length: 120

issues:
exclude-rules:
- path: _test\.go
linters:
- dogsled
- gosec
- revive

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:
- bodyclose
- deadcode
# - depguard
- dogsled
- durationcheck
Expand All @@ -43,7 +48,7 @@ linters:
- gocritic
- gocyclo
# - cyclop # not interested in package complexities at the moment
- godot
# - godot
- gofmt
# - gofumpt
- goheader
Expand All @@ -59,20 +64,19 @@ linters:
# - ifshort
- ineffassign
# - importas
- lll
# - lll
# - misspell
- makezero
# - nakedret
# - nilerr
# - nilnil
- nlreturn
# - nlreturn
- noctx
- nolintlint
# - paralleltest
- predeclared
- rowserrcheck
- staticcheck
- structcheck
- stylecheck
- sqlclosecheck
# - tagliatelle
Expand All @@ -83,7 +87,6 @@ linters:
- unconvert
# - unparam
- unused
- varcheck
- wastedassign
- whitespace
# - wrapcheck
Expand All @@ -100,4 +103,4 @@ linters:
# - nestif
# - prealloc
# - testpackage
# - wsl
# - wsl
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ golangci-lint-install:

.PHONY:
lint:
golangci-lint run -c .golangci.yml

golangci-lint run
install-paramgen:
go install github.com/conduitio/conduit-connector-sdk/cmd/paramgen@latest

0 comments on commit beced33

Please sign in to comment.