Skip to content

Conversation

@xtqqczze
Copy link
Contributor

@xtqqczze xtqqczze commented Jul 27, 2020

PR Summary

https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1172.md

PR Context

PR Checklist

@xtqqczze
Copy link
Contributor Author

xtqqczze commented Jul 27, 2020

@iSazonov I am planning work with these analyzers too:

Would you prefer seperate PRs or to add commits here?

GitHub
A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn. - JosefPihrt/Roslynator
GitHub
A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn. - JosefPihrt/Roslynator
GitHub
A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn. - JosefPihrt/Roslynator
GitHub
A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn. - JosefPihrt/Roslynator
GitHub
A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn. - JosefPihrt/Roslynator

@iSazonov
Copy link
Collaborator

iSazonov commented Jul 27, 2020

@iSazonov I am planning work with these analyzers too:

I am unlike this. It is not add readability. Please skip.

Good!

I am unlike this. It is not add readability. Please skip.

Good!

Good but we should replace "!(... is ...)" with "is not" on second pass.

Would you prefer seperate PRs or to add commits here?

Please pull new PR for every change - this simplify a code review.

GitHub
A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn. - JosefPihrt/Roslynator
GitHub
A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn. - JosefPihrt/Roslynator
GitHub
A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn. - JosefPihrt/Roslynator
GitHub
A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn. - JosefPihrt/Roslynator
GitHub
A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn. - JosefPihrt/Roslynator

Copy link
Collaborator

@vexx32 vexx32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can simplify a couple of these a little further, but everything else looks good. Nice work!

@xtqqczze xtqqczze changed the title Autofix RCS1172: Use 'is' operator instead of 'as' operator Use 'is' operator instead of 'as' operator Jul 31, 2020
@iSazonov
Copy link
Collaborator

iSazonov commented Aug 3, 2020

@xtqqczze Please rebase to pass CIs.

@iSazonov iSazonov added the CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log label Aug 3, 2020
@xtqqczze
Copy link
Contributor Author

xtqqczze commented Aug 9, 2020

rebased to restart CI

@iSazonov iSazonov added this to the 7.1.0-preview.6 milestone Aug 10, 2020
@iSazonov iSazonov merged commit dd85bd1 into PowerShell:master Aug 10, 2020
@xtqqczze xtqqczze deleted the RCS1172 branch August 10, 2020 14:41
@ghost
Copy link

ghost commented Aug 17, 2020

🎉v7.1.0-preview.6 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants