Skip to content

SA1019: apply Go version filtering to imports #1117

Closed

Description

@dominikh

Depending on why and when an object in the standard library has been deprecated, we won't flag it when targeting certain Go versions. We don't currently apply the same logic to imports. This hasn't been a problem yet, because

  • crypto/md4 should never be used and would always be flagged, anyway
  • io/ioutil doesn't have the deprecated marker, and even though we've manually marked it as deprecated in our database, we don't flag it, because we don't consult the database for imports yet.

We should nevertheless fix this and prepare for the future.

Activity

  1. added 2 commits that reference this issue on Apr 25, 2022
    d9ecc38
    04e5718
  2. added 2 commits that reference this issue on May 16, 2022
    7908c9b
    8f50df0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions