-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
dart-archive/linter
#4568Closed
Copy link
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work ondevexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.linter-false-positiveIssues related to lint rules that report a problem when it isn't a problem.Issues related to lint rules that report a problem when it isn't a problem.linter-set-recommended
Description
one.dart
:
library one;
part "two.dart";
void foo() {
Foo foo = Foo._(1);
foo._foo = 3;
print(foo._foo);
}
two.dart
:
part of one;
class Foo {
Foo._(this._foo);
int _foo; // 🔥 incorrect `prefer_final_fields` warning
}
Foo._foo
in two.dart
is being written to from one.dart
, so it cannot be final and the lint should not trigger.
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work ondevexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.linter-false-positiveIssues related to lint rules that report a problem when it isn't a problem.Issues related to lint rules that report a problem when it isn't a problem.linter-set-recommended