Commit 2ab9edd
[TSV-C#] Add TSV rules for new C# emitters (Azure#38924)
* add HTTP client C# rules for emitter output directory and namespace validation
* Enhance rule validation by introducing RuleFailureType enum and updating createFailedResult method to include failure types
* Fix import order for RuleResult and RuleFailureType in sdk-tspconfig-validation.ts
* Add validation behavior tests for CSharp emitters in sdk-tspconfig-validation.test.ts
* Refactor test case creation functions for improved clarity and maintainability
* Refactor RuleResult and related validation logic to remove RuleFailureType dependency
* fix format issue
* [TypeSpec Validation] Enhance validation logic for emitter options to handle variable resolution
* Enhance validation logic for emitter output directory to support variable resolution and update test cases accordingly
* Fix validation logic to correctly track failed sub-rule results in SdkTspConfigValidationRule
* For @azure-tools/typespec-go data plane SDKs ignore validation for configuration not found errors
* fix: remove unnecessary whitespace in SdkTspConfigValidationRule
* test: add allowUndefined parameter to goDpInjectSpans and goDpEmitterOutputDir test cases
* Refactor Tspconfig validation logic and clean up test cases for http-client-csharp
* Enhance Tspconfig validation: add variable resolution for emitter options and improve test cases for http-client-csharp
* Enhance Tspconfig validation: add support for variable resolution in emitter-output-dir and update test cases for http-client-csharp
* Refactor Tspconfig validation rules for improved clarity and maintainability
* Add emitter-output-dir for http-client-csharp in Tspconfig for EventHub and Search
* revert
* refactor: clean up test files and improve code structure
* test: add test cases for emitter output directory in TypeSpec validation
---------
Co-authored-by: Kyle Zhang <[email protected]>1 parent 3528053 commit 2ab9edd
File tree
2 files changed
+185
-8
lines changed- eng/tools/typespec-validation
- src/rules
- test
2 files changed
+185
-8
lines changedLines changed: 72 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
| |||
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
244 | | - | |
245 | | - | |
246 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
247 | 254 | | |
248 | 255 | | |
249 | 256 | | |
| |||
256 | 263 | | |
257 | 264 | | |
258 | 265 | | |
259 | | - | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
260 | 280 | | |
261 | 281 | | |
262 | 282 | | |
263 | 283 | | |
264 | 284 | | |
265 | | - | |
266 | 285 | | |
267 | 286 | | |
268 | 287 | | |
| |||
708 | 727 | | |
709 | 728 | | |
710 | 729 | | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
711 | 775 | | |
712 | 776 | | |
713 | 777 | | |
| |||
749 | 813 | | |
750 | 814 | | |
751 | 815 | | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
752 | 820 | | |
753 | 821 | | |
754 | 822 | | |
| |||
Lines changed: 113 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
572 | 576 | | |
573 | 577 | | |
574 | 578 | | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
575 | 615 | | |
576 | 616 | | |
577 | 617 | | |
| |||
610 | 650 | | |
611 | 651 | | |
612 | 652 | | |
613 | | - | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
614 | 691 | | |
615 | 692 | | |
616 | 693 | | |
617 | | - | |
618 | | - | |
| 694 | + | |
| 695 | + | |
619 | 696 | | |
620 | 697 | | |
621 | 698 | | |
622 | 699 | | |
623 | | - | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
624 | 728 | | |
625 | 729 | | |
626 | 730 | | |
| |||
800 | 904 | | |
801 | 905 | | |
802 | 906 | | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
803 | 912 | | |
804 | 913 | | |
805 | 914 | | |
| |||
0 commit comments