Skip to content

Commit

Permalink
fix: move golang lint check file to specific folders
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sanders <marksanders194@gmail.com>
  • Loading branch information
sandersms committed Mar 11, 2024
1 parent 746ca8f commit 6cb3731
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 0 deletions.
File renamed without changes.
65 changes: 65 additions & 0 deletions nwgate/.golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# This file contains all available configuration options
# with their default values.

# options for analysis running
run:
# directories to skip
skip-dirs:
- Experiment
- grpc_gw
- protobuf

# output configuration options
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
format: colored-line-number

linters-settings:
funlen:
lines: 150
statements: 120
dupl:
threshold: 200
gocognit:
min-complexity: 32

linters:
enable:
- bodyclose
- dogsled
- errcheck
- exportloopref
- funlen
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- prealloc
- revive
- staticcheck
- stylecheck
- unconvert
- unparam
- whitespace

issues:
# Independently from option `exclude` we use default exclude patterns,
# it can be disabled by this option. To list all
# excluded by default patterns execute `golangci-lint run --help`.
# Default value for this option is true.
exclude-use-default: false

# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0

# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
max-same-issues: 0
65 changes: 65 additions & 0 deletions testclient/.golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# This file contains all available configuration options
# with their default values.

# options for analysis running
run:
# directories to skip
skip-dirs:
- Experiment
- grpc_gw
- protobuf

# output configuration options
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
format: colored-line-number

linters-settings:
funlen:
lines: 150
statements: 120
dupl:
threshold: 200
gocognit:
min-complexity: 32

linters:
enable:
- bodyclose
- dogsled
- errcheck
- exportloopref
- funlen
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- prealloc
- revive
- staticcheck
- stylecheck
- unconvert
- unparam
- whitespace

issues:
# Independently from option `exclude` we use default exclude patterns,
# it can be disabled by this option. To list all
# excluded by default patterns execute `golangci-lint run --help`.
# Default value for this option is true.
exclude-use-default: false

# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0

# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
max-same-issues: 0

0 comments on commit 6cb3731

Please sign in to comment.