Azure / Azure/typespec-azure

Need linter warning for namespace and models with the same name

Open
#3,162 1 comment 0 reactions 0 assignees View on GitHub
feature lib:azure-core linter
Dominant language
TypeScript
Stars
27
Forks
90
Avg merge
1d 22h
Merged PRs (30d)
156

Description

In C# (and possibly other languages) having a namespace named the same as a model (whether via clientName or directly in the spec) will result in build errors. We should warn about this up front to save time and rework.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by locating the TypeScript linter implementation and its existing diagnostic tests, then trace how namespace and model names are represented; done means a clear warning appears for the conflicting C# case, including names supplied through clientName.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.