depguard

Function, Type, and Method linting for depguard

Added configuration:

  • functions: [github.com/stretchr/testify/assert.Error]
  • functionErrorMessages: {"github.com/stretchr/testify/assert.Error", "Just use err != nil"}
  • types:
  • typeErrorMessages:
  • methods: [github.com/aws/aws-sdk-go/aws/session.New, github.com/aws/aws-sdk-go/aws/session.Must]
  • methodErrorMessages: {"github.com/aws/aws-sdk-go/aws/session.New":"use common/go/aws/session.New instead"}

Code:

If any of functions, types, or methods have a non-zero length, add go/types to the parse.