microsoft / microsoft/typespec

Add a strict no implicit import validation

Open
#8,869 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.