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

Issue with Omitting type annotations for local variables #3225

Closed
ShivamArora opened this issue Jan 7, 2020 · 2 comments
Closed

Issue with Omitting type annotations for local variables #3225

ShivamArora opened this issue Jan 7, 2020 · 2 comments

Comments

@ShivamArora
Copy link

As part of the upgrade to Dart language and the pub.dev website, I'm now getting lesser scores for my package.

The reason for the lower scores are health suggestions informing a linter issue as follows:

Omit type annotations for local variables

This is an issue at multiple lines.

And I don't want to remove type annotations for local variables for readability and testing purposes.

I've ignored the rule using analysis_options.yaml, but the pub.dev still uses the standard linting rules.

Can anyone provide a reason why Dart has added this rule to the linter? What are the benefits to this?

@eernstg
Copy link
Member

eernstg commented Jan 7, 2020

Cf. googlearchive/pedantic#45.

@isoos isoos closed this as completed Feb 14, 2020
@isoos
Copy link
Collaborator

isoos commented Feb 14, 2020

Since the issue was opened, we have limited the amount of lint penalty, and reverted to use pedantic 1.8.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants