Azure / Azure/azure-sdk-tools

apiviewgo points out internal/exported pattern

Open
#8,696 1 comment 0 reactions 0 assignees View on GitHub
APIView feature-request Go
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
143

Description

Have it show a message that the `type` from internal is being exported.
"Type `x` is exported from internal. Exported types from internal must be in the ...../internal/exported module"

_Originally posted by @RickWinter in https://github.com/Azure/azure-sdk-tools/pull/8668#discussion_r1688469929_

Contributor guide

Open the contributing guide

Research direction

Start by locating the apiviewgo check that detects types exported from internal and its existing diagnostic tests. Confirm how the message is assembled and add coverage showing the requested warning for an exported internal type, with the issue's prescribed wording and module guidance as the expected result.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.