Azure / typespec-azure

About TypeSpec Azure Libraries
https://azure.github.io/typespec-azure/
MIT License
9 stars 29 forks source link

[tcgc] add lint rule for client customization #942

Open tadelesh opened 1 month ago

tadelesh commented 1 month ago

need to force all client customization tsp content should be in client.tsp file.

pshao25 commented 1 month ago

@tadelesh how you are going to define client customization? All the decorators from typespec-client-generator-core?

tadelesh commented 1 month ago

yes.

lmazuel commented 2 weeks ago

If we can, having a linter indeed to forbid "typespec-client-generator-core" import from any other files than "client.tsp". It may be complex though, depending on how the compiler is saving or not the origin of a given statement, it's possible the compiler first step is to merge everything into one thing (autorest was doing that)