Skip to content
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

[VB] Remove redundant Call #71818

Closed
tats-u opened this issue Jan 26, 2024 · 3 comments
Closed

[VB] Remove redundant Call #71818

tats-u opened this issue Jan 26, 2024 · 3 comments
Labels
Area-IDE Feature Request Resolution-External The behavior lies outside the functionality covered by this repository
Milestone

Comments

@tats-u
Copy link

tats-u commented Jan 26, 2024

Brief description:

Describe your code style rule here.

VB requires Call before method call expressions if the method calls do not start with identifiers.
However, some old-fashioned developers have forced others to add this Call to every method call.
It is mainly because of the compatibility with VBA/VB6 and because they do not know when Call is necessary.

Languages applicable:

Is your analyzer C# only? VB Only? Or Both?

VB Only

Code example that the analyzer should report:

Call SomeClass.SomeMethod(arg1, arg2)
'--
'Call' here can be removed.

A small code snippet that describes a case that the analyzer should report.

Note: the following Calls are necessary:

Call New SomeForm().Show()
Call If(condition, form1, form2).Show()

Additional information:

Any more additional information you would like to add.

Documentation requirements:

When this analyzer is implemented, it must be documented by following the steps at Documentation for IDE CodeStyle analyzers.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Jan 26, 2024
@genlu genlu removed the untriaged Issues and PRs which have not yet been triaged by a lead label Apr 30, 2024
@genlu genlu added this to the Backlog milestone Apr 30, 2024
@genlu genlu added the Resolution-External The behavior lies outside the functionality covered by this repository label Apr 30, 2024
@genlu
Copy link
Member

genlu commented Apr 30, 2024

@tats-u thanks for your feedback and spending time work on a solution. But as mentioned from the discussion in the linked PR, we believe this functionality would be more suitable as a separate analyzer outside of Roslyn.

@genlu genlu closed this as completed Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Feature Request Resolution-External The behavior lies outside the functionality covered by this repository
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants