microsoft / microsoft/typespec
Add a strict no implicit import validation
Open
compiler:core
mq
triaged:core
- Dominant language
- Java
- Stars
- 5.9k
- Forks
- 394
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 104
Description
If library lib1 rely on lib2 and the spec also rely on elements from lib2 but doesn't import it directly then there is a chance of breaking if lib1 stop relying on lib2 and remove its imports
We should add a validation(probably needs to be opt-in or warning) to flag use of types from a library not directly imported
Contributor guide
Assessment
This issue has not been assessed yet.