We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
RelayCommand generates code that violates CA1708
private global::CommunityToolkit.Mvvm.Input.AsyncRelayCommand? editCommand; public global::CommunityToolkit.Mvvm.Input.IAsyncRelayCommand EditCommand => editCommand ??= new global::CommunityToolkit.Mvvm.Input.AsyncRelayCommand(new global::System.Func<global::System.Threading.Tasks.Task>(EditAsync), CanEdit);
but should be:
private global::CommunityToolkit.Mvvm.Input.AsyncRelayCommand? _editCommand; public global::CommunityToolkit.Mvvm.Input.IAsyncRelayCommand EditCommand => _editCommand ??= new global::CommunityToolkit.Mvvm.Input.AsyncRelayCommand(new global::System.Func<global::System.Threading.Tasks.Task>(EditAsync), CanEdit);
No response
Set latest-recommended on project
The error happens on net9 onwards since analysislevel_9_recommended.global has the rule
# CA1708: Identifiers should differ by more than case dotnet_diagnostic.CA1708.severity = warning
[RelayCommand(CanExecute = nameof(CanEdit))] private async Task EditAsync() {}
Generated code be like suggested in CA1708 description:
Rider
8.4.0
Yes, but only if others can assist
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
RelayCommand generates code that violates CA1708
but should be:
Regression
No response
Steps to reproduce
Set latest-recommended on project
The error happens on net9 onwards since analysislevel_9_recommended.global has the rule
Expected behavior
Generated code be like suggested in CA1708 description:
Screenshots
No response
IDE and version
Rider
IDE version
No response
Nuget packages
Nuget package version(s)
8.4.0
Additional context
No response
Help us help you
Yes, but only if others can assist
The text was updated successfully, but these errors were encountered: