Azure / Azure/typespec-azure

[azure core]: Add linting rules for explicit `@action`

Open
#297 0 comments 1 reaction 0 assignees View on GitHub
design:accepted feature lib:azure-core
Dominant language
TypeScript
Stars
27
Forks
90
Avg merge
1d 22h
Merged PRs (30d)
156

Description

- Add a warning if a reused 'post' action operation would change the action suffix
`myNewAction is someInterface.myOldAction; // action suffix changed to myNewAction`
- Consider adding a warning if `@action(actionSuffix)` is not added to post operations

Contributor guide

Open the contributing guide

Research direction

Start by locating the Azure Core linting rules and the code that handles reused post action operations. Check how action suffixes are resolved and how explicit @action annotations are detected; done means warnings cover the changed suffix case and the missing annotation case described in the issue.

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.