-
Notifications
You must be signed in to change notification settings - Fork 5.6k
add TSV rules for CShanpc and fix reslove placeholder variable #38924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Next Steps to Merge⌛ Please wait. Next steps to merge this PR are being evaluated by automation. ⌛Comment generated by summarize-checks workflow run. |
eng/tools/typespec-validation/src/rules/sdk-tspconfig-validation.ts
Outdated
Show resolved
Hide resolved
| [new TspConfigCsharpMgmtNamespaceSubRule()], | ||
| ); | ||
|
|
||
| const httpClientCsharpAzEmitterOutputTestCases = createEmitterOptionTestCases( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you highlight the test cases for warning without tspconfig definition? And test case for error because of wrong definition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning without tspconfig definition:
https://github.com/Azure/azure-rest-api-specs/blob/kyle/httpClientCsharpRules/eng/tools/typespec-validation/test/sdk-tspconfig-validation.test.ts#L751C1-L909C3
test case for error because of wrong definition:
https://github.com/Azure/azure-rest-api-specs/blob/kyle/httpClientCsharpRules/eng/tools/typespec-validation/test/sdk-tspconfig-validation.test.ts#L722C1-L734C5
| return option; | ||
| } | ||
|
|
||
| protected resolveVariables(value: string, config: any): { resolved: string; error?: string } { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is to resolve the issue #38964.
…ing createFailedResult method to include failure types
fix #38964
fix Azure/azure-sdk-tools#12435
add HTTP client C# rules for emitter output directory and namespace validation
Azure/azure-sdk-tools#12435
add a new TSV validation rule specifically targeting the csharp.
tspconfig samples:
@azure-typespec/http-client-csharp-mgmt
@azure-typespec/http-client-csharp
If @azure-typespec/http-client-csharp-mgmt and @azure-typespec/http-client-csharp are configured, validate that their values are correct; otherwise, show a warning if
not find.