Commit 1dd0ffe
committed
Add Roslyn analyzers for string optimization patterns
- Implemented 8 diagnostic rules (OPENTXT001-008) for detecting inefficient string patterns
- Created analyzers for: Substring, Split, string concatenation, IndexOf+Substring, Trim+Equals
- Added code fix provider for Split patterns
- Comprehensive test suite with smart detection tests to prevent false positives
- Extensive documentation: README, EXAMPLES, CONTRIBUTING, TESTING_STRATEGY, QUICK_REFERENCE
- Integrated into solution with proper NuGet package configuration
- Analyzers use semantic analysis for type safety and context-aware suggestions1 parent abdc3ee commit 1dd0ffe
24 files changed
Lines changed: 3748 additions & 0 deletions
File tree
- Analyzers.Tests
- Analyzers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments