Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update swagger, grpc-gateway v2, linting issue #44

Merged
merged 2 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 48 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,52 @@
.env
.DS_Store
# Ignore all
*

# Unignore all with extensions
!*.*

# Unignore all dirs
!*/

# Exept Makefile
!Makefile

### Above combination will ignore all files without extension ###

# Binaries for programs and plugins
bin/
output/
*.exe
*.exe~
*.dll
*.so
*.dylib
*.syso

# Astilectron bundler files
bind_*.go

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
vendor/

# Editor/IDE files
.idea/
.vscode/

# Log folder
logs/

# Project customized files
config.dev.yaml
config.prod.yaml
secrets.yaml

# Generated files
coverage.txt
tls.crt
tls.key
terraform/
operation/
backup.sql
bench.txt
coverage.out
secret.yml
secrets.yaml
.eslintrc.js
bench.txt
171 changes: 0 additions & 171 deletions .golangci.toml

This file was deleted.

99 changes: 99 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
run:
tests: false

issues:
max-issues-per-linter: 0
max-same-issues: 0

linters-settings:
goconst:
min-len: 2
min-occurrences: 3
gocyclo:
min-complexity: 30 # Can be decreased
misspell:
locale: US
lll:
line-length: 140
revive:
ignore-generated-header: false
severity: warning
confidence: 0.8
errorCode: 1
warningCode: 1
rules:
- name: blank-imports
severity: warning
- name: context-as-argument
severity: warning
- name: context-keys-type
severity: warning
- name: cyclomatic
severity: warning
arguments:
- 30 # Maximum cyclomatic complexity
- name: error-return
severity: warning
- name: error-strings
severity: warning
- name: error-naming
severity: warning
- name: exported
severity: warning
- name: if-return
severity: warning
- name: increment-decrement
severity: warning
- name: var-naming
severity: warning
- name: var-declaration
severity: warning
- name: package-comments
severity: warning
- name: range
severity: warning
- name: receiver-naming
severity: warning
- name: time-naming
severity: warning
- name: unexported-return
severity: warning
- name: indent-error-flow
severity: warning
- name: errorf
severity: warning
- name: empty-block
severity: warning
- name: superfluous-else
severity: warning
- name: unreachable-code
severity: warning
- name: redefines-builtin-id
severity: warning


linters:
disable-all: true
enable:
- dupl
- exportloopref
- goconst
- gocyclo
- godox
- gofmt
- goimports
- ineffassign
- lll
- misspell
- prealloc
- revive
- rowserrcheck
- typecheck
- unconvert
- unparam
- whitespace

# Can be disabled during early devellopment
- errcheck
- gosec
- unused
Loading
Loading