diff --git a/.golangci.yml b/Goexp/Network/.golangci.yml similarity index 100% rename from .golangci.yml rename to Goexp/Network/.golangci.yml diff --git a/nwgate/.golangci.yml b/nwgate/.golangci.yml new file mode 100644 index 0000000..bcdc04a --- /dev/null +++ b/nwgate/.golangci.yml @@ -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 diff --git a/testclient/.golangci.yml b/testclient/.golangci.yml new file mode 100644 index 0000000..bcdc04a --- /dev/null +++ b/testclient/.golangci.yml @@ -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