Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

ignored list should allow ellipsis #1049

Closed
rickb777 opened this issue Aug 22, 2017 · 1 comment
Closed

ignored list should allow ellipsis #1049

rickb777 opened this issue Aug 22, 2017 · 1 comment

Comments

@rickb777
Copy link

ignored lists a set of packages (not projects) that are ignored when dep statically analyzes source code. Ignored packages can be in this project, or in a dependency.

ignored = ["github.com/user/project/badpkg"]

This is problematic for a package that has many subpackages.

ignored = [
  "github.com/user/project/badpkg",
  "github.com/user/project/badpkg/a",
  "github.com/user/project/badpkg/b",
  "github.com/user/project/badpkg/c",
  "github.com/user/project/badpkg/c/c1",
  "github.com/user/project/badpkg/c/c2",
  ... etc
]

This is simply unscalable, but a neat solution would be to honour the idiomatic ellipsis, e.g.

ignored = [
  "github.com/user/project/badpkg/..."
]
@ibrasho
Copy link
Collaborator

ibrasho commented Aug 23, 2017

@rickb777 Thanks for taking the time to file an issue.

We already have an issue and a PR regarding this: #691 & #709.

@ibrasho ibrasho closed this as completed Aug 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants