Add a linter for staged libraries included in the base snap
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
### What needs to get done
Add a linter that can display any libraries in a snap that are also provided by the base snap.
The bases for this implementation are https://github.com/snapcore/snapcraft/pull/3413 (described in item 3 https://github.com/snapcore/snapcraft/pull/3413#issuecomment-909104850)
### Why it needs to get done
This reduces the surface area of a snap from a security standpoint and makes the snap smaller.
A `stage-packages` entry will always stage a package, even if it is included by the base snap. This may be intentional but usually it isn't.
Evaluation history
No evaluation history available.