-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
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
Enable FormattingAnalyzer #31142
Enable FormattingAnalyzer #31142
Conversation
// diagnostics have been reported (not necessarily on this thread). | ||
done: | ||
// Don't return until we've seen all of the CompletionParts. This ensures all | ||
// diagnostics have been reported (not necessarily on this thread). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
likely formatting bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, this appears to be a bug.
src/Compilers/CSharp/Portable/Lowering/LocalRewriter/LocalRewriter_Conversion.cs
Outdated
Show resolved
Hide resolved
@@ -1122,7 +1122,7 @@ static S1 MayWrap(ref int arg) | |||
} | |||
"; | |||
CreateCompilationWithMscorlibAndSpan(text).VerifyDiagnostics( | |||
// no diagnostics expected | |||
// no diagnostics expected |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change is minor, but seems also undesirable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably not a big deal though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree this appears to be a bug.
This comment has been minimized.
This comment has been minimized.
ec5d28b
to
a979978
Compare
src/Compilers/Core/Portable/InternalUtilities/TextKeyedCache.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Lowering/LocalRewriter/LocalRewriter_Call.cs
Outdated
Show resolved
Hide resolved
Commit looks good! :) |
a979978
to
33199ac
Compare
src/Workspaces/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexLexer.cs
Outdated
Show resolved
Hide resolved
Went through all the change. LGTM. Thanks for breaking it out into pieces. It made reviewing much easier! |
src/Compilers/Core/Portable/InternalUtilities/TextKeyedCache.cs
Outdated
Show resolved
Hide resolved
a016af6
to
187686d
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
187686d
to
b22a9ac
Compare
build/scripts/tools.ps1
Outdated
@@ -413,7 +413,7 @@ function MSBuild() { | |||
$cmdArgs = "$($buildTool.Command) /m /nologo /clp:Summary /v:$verbosity /nr:$nodeReuse" | |||
|
|||
if ($warnAsError) { | |||
$cmdArgs += " /warnaserror /p:TreatWarningsAsErrors=true" | |||
$cmdArgs += " /p:TreatWarningsAsErrors=true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tmat I had to make this change or the build would ignore my request for <WarningsNotAsErrors>
.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to disable the analyzer warnings on only the build correctness leg.
b22a9ac
to
25a63ee
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This changes the code style analyzers so that they only execute on the build correctness leg. This means that even in the face of style errors our build will be covered via this leg but we will also get test run output as the other legs won't hit the style errors.
Pretty sure this commit should do the trick |
@jinujoseph for approval |
Recommend reviewing by individual commit.
Reviewers should pay particular attention to all commits that are not the large and automated application of formatting changes.