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
Product and Version Used: Roslynator.Analyzers
Steps to Reproduce: set .editorconfig values:
.editorconfig
roslynator_trailing_comma_style = omit_when_single_line dotnet_diagnostic.RCS1260.severity = warning
Actual Behavior: Warning RCS1260 on the , at the end of Property1
,
Property1
var value = new Object { Property1 = "Value"{|RCS1260:,|} }
Expected Behavior: No warning
var value = new Object { Property1 = "Value", }
I believe the following code relies solely on the initializer.Expressions syntax node, when it should be based on the initializer code.
initializer.Expressions
initializer
roslynator/src/Analyzers/CSharp/Analysis/AddOrRemoveTrailingCommaAnalyzer.cs
Line 67 in 7505ae8
Other IsSingleLine() checks in this file need similar review.
IsSingleLine()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Product and Version Used:
Roslynator.Analyzers
Steps to Reproduce:
set
.editorconfig
values:Actual Behavior:
Warning RCS1260 on the
,
at the end ofProperty1
Expected Behavior:
No warning
Possible correction:
I believe the following code relies solely on the
initializer.Expressions
syntax node, when it should be based on theinitializer
code.roslynator/src/Analyzers/CSharp/Analysis/AddOrRemoveTrailingCommaAnalyzer.cs
Line 67 in 7505ae8
Other
IsSingleLine()
checks in this file need similar review.The text was updated successfully, but these errors were encountered: