Address param-nullchecking formatting issues #58950
Labels
Area-Compilers
Area-IDE
Feature - Param Null Checking
help wanted
The issue is "up for grabs" - add a comment if you are interested in working on it
IDE-Formatter
Code formatter and/or smart indent
Milestone
We have such a test for the formatter itself. It wouldn't hurt to have it for the formatting analyzer too.
roslyn/src/Workspaces/CSharpTest/Formatting/FormattingTests.cs
Lines 5779 to 5799 in 259a9e2
I did find that we don't do the right thing in the following scenario:
I expected
!!
to always be moved to be right up against the parameter name. It seems like the leading trivia owned by!!
should be moved to the next token, for consistency with the following (which doesn't prompt any formatting errors)All that said, I'd prefer to back-burner this work and possibly make it "help wanted". The important thing I wanted to confirm with this PR is that "correctly formatted" code using the feature doesn't produce formatting warnings.
Originally posted by @RikkiGibson in #58936 (comment)
The text was updated successfully, but these errors were encountered: