You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
958 B

lint: Enable Golint (#4212) * Fix many golint errors * Fix golint errors in the 'lite' package * Don't export Pool.store * Fix typo * Revert unwanted changes * Fix errors in counter package * Fix linter errors in kvstore package * Fix linter error in example package * Fix error in tests package * Fix linter errors in v2 package * Fix linter errors in consensus package * Fix linter errors in evidence package * Fix linter error in fail package * Fix linter errors in query package * Fix linter errors in core package * Fix linter errors in node package * Fix linter errors in mempool package * Fix linter error in conn package * Fix linter errors in pex package * Rename PEXReactor export to Reactor * Fix linter errors in trust package * Fix linter errors in upnp package * Fix linter errors in p2p package * Fix linter errors in proxy package * Fix linter errors in mock_test package * Fix linter error in client_test package * Fix linter errors in coretypes package * Fix linter errors in coregrpc package * Fix linter errors in rpcserver package * Fix linter errors in rpctypes package * Fix linter errors in rpctest package * Fix linter error in json2wal script * Fix linter error in wal2json script * Fix linter errors in kv package * Fix linter error in state package * Fix linter error in grpc_client * Fix linter errors in types package * Fix linter error in version package * Fix remaining errors * Address review comments * Fix broken tests * Reconcile package coregrpc * Fix golangci bot error * Fix new golint errors * Fix broken reference * Enable golint linter * minor changes to bring golint into line * fix failing test * fix pex reactor naming * address PR comments
5 years ago
lint: Enable Golint (#4212) * Fix many golint errors * Fix golint errors in the 'lite' package * Don't export Pool.store * Fix typo * Revert unwanted changes * Fix errors in counter package * Fix linter errors in kvstore package * Fix linter error in example package * Fix error in tests package * Fix linter errors in v2 package * Fix linter errors in consensus package * Fix linter errors in evidence package * Fix linter error in fail package * Fix linter errors in query package * Fix linter errors in core package * Fix linter errors in node package * Fix linter errors in mempool package * Fix linter error in conn package * Fix linter errors in pex package * Rename PEXReactor export to Reactor * Fix linter errors in trust package * Fix linter errors in upnp package * Fix linter errors in p2p package * Fix linter errors in proxy package * Fix linter errors in mock_test package * Fix linter error in client_test package * Fix linter errors in coretypes package * Fix linter errors in coregrpc package * Fix linter errors in rpcserver package * Fix linter errors in rpctypes package * Fix linter errors in rpctest package * Fix linter error in json2wal script * Fix linter error in wal2json script * Fix linter errors in kv package * Fix linter error in state package * Fix linter error in grpc_client * Fix linter errors in types package * Fix linter error in version package * Fix remaining errors * Address review comments * Fix broken tests * Reconcile package coregrpc * Fix golangci bot error * Fix new golint errors * Fix broken reference * Enable golint linter * minor changes to bring golint into line * fix failing test * fix pex reactor naming * address PR comments
5 years ago
  1. linters:
  2. enable:
  3. - asciicheck
  4. - bodyclose
  5. - deadcode
  6. - depguard
  7. - dogsled
  8. - dupl
  9. - errcheck
  10. - exportloopref
  11. # - funlen
  12. # - gochecknoglobals
  13. # - gochecknoinits
  14. # - gocognit
  15. - goconst
  16. # - gocritic
  17. # - gocyclo
  18. # - godox
  19. - gofmt
  20. - goimports
  21. # - golint
  22. - gosec
  23. - gosimple
  24. - govet
  25. - ineffassign
  26. # - interfacer
  27. - lll
  28. # - maligned
  29. - misspell
  30. - nakedret
  31. - nolintlint
  32. - prealloc
  33. - staticcheck
  34. - structcheck
  35. - stylecheck
  36. - typecheck
  37. - unconvert
  38. # - unparam
  39. - unused
  40. - varcheck
  41. # - whitespace
  42. # - wsl
  43. issues:
  44. exclude-rules:
  45. - path: _test\.go
  46. linters:
  47. - gosec
  48. - linters:
  49. - lll
  50. source: "https://"
  51. max-same-issues: 50
  52. linters-settings:
  53. dogsled:
  54. max-blank-identifiers: 3
  55. golint:
  56. min-confidence: 0
  57. maligned:
  58. suggest-new: true
  59. misspell:
  60. locale: US