You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.
This rule should show warning when use var on code.
The style guide for Flutter indicate to avoid using var on code, so that will be a nice rule to have
What type of rule is this?
Warns about a potential problem
Example code
BAD:
var x =10; // LINTStringconcat(int a, int b) {
var c =3; // LINTreturn a + b + c;
}
GOOD:
int x =10;
final x =10;
Stringconcat(int a, int b) {
int c =3; // or final c = 3;return a + b + c;
}
Participation
I am willing to submit a pull request to implement this rule.
Additional comments
No response
The text was updated successfully, but these errors were encountered:
Rule details
This rule should show warning when use
var
on code.The style guide for Flutter indicate to avoid using var on code, so that will be a nice rule to have
What type of rule is this?
Warns about a potential problem
Example code
BAD:
GOOD:
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: