Skip to content

Renaming project.#13

Merged
tyevco merged 1 commit intomainfrom
features/11_index_oob
May 6, 2024
Merged

Renaming project.#13
tyevco merged 1 commit intomainfrom
features/11_index_oob

Conversation

@tyevco
Copy link
Owner

@tyevco tyevco commented May 6, 2024

No description provided.

@tyevco tyevco merged commit 7d03277 into main May 6, 2024
@tyevco tyevco deleted the features/11_index_oob branch November 20, 2025 02:05
tyevco pushed a commit that referenced this pull request Nov 20, 2025
…ng operators

This commit addresses several code quality issues:

1. Enhanced Constants Class (Issue #13):
   - Added comprehensive constants for generated code
   - Organized into logical sections: GeneratedClasses, GeneratedMethods, AttributeNames
   - Provides single source of truth for framework strings
   - Includes XML documentation for clarity

2. New Duplicate Name Analyzer (Issue #12):
   - CLI007: Detects duplicate action names within a command class
   - CLI008: Detects duplicate option names within a method
   - CLI009: Detects conflicting argument positions
   - Prevents runtime errors by catching naming conflicts at compile time
   - Uses case-insensitive comparison for action and option names

3. Reduced Null-Forgiving Operators (Issue #17):
   - Replaced `.Value!` with safer null-coalescing patterns
   - Changed `optionName.Value!.ToString()` to `optionName.Value?.ToString() ?? fallback`
   - Changed `(char)shortName.Value!` to pattern matching: `shortName.Value is char ch ? ch : '\0'`
   - Eliminated 6 instances of null-forgiving operator usage
   - More explicit about null handling without suppressing warnings

Benefits:
- Better compile-time validation through new analyzer
- Clearer code intent with explicit null handling
- Centralized string constants reduce typo risks
- Improved maintainability
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant