This repository was archived by the owner on Jul 16, 2023. It is now read-only.
Commit 7d3f0ad 1 parent 7ffe08e commit 7d3f0ad Copy full SHA for 7d3f0ad
File tree 6 files changed +6
-3
lines changed
lib/src/analyzers/lint_analyzer/rules/rules_list
avoid_ignoring_return_values
check_for_equals_in_render_object_setters
prefer_moving_to_variable
test/src/analyzers/lint_analyzer/anti_patterns/anti_patterns_list
6 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ class _Visitor extends RecursiveAstVisitor<void> {
38
38
! _isEmptyFutureOrType (type);
39
39
40
40
bool _isEmptyType (DartType type) =>
41
+ // ignore: deprecated_member_use
41
42
type.isBottom || type.isDartCoreNull || type.isVoid;
42
43
43
44
bool _isEmptyFutureType (DartType type) =>
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ class _ReturnVisitor extends RecursiveAstVisitor<void> {
97
97
98
98
final type = node.expression? .staticType;
99
99
100
+ // ignore: deprecated_member_use
100
101
if (type == null || type.isVoid) {
101
102
_hasValidReturn = true ;
102
103
}
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ class _BlockVisitor extends RecursiveAstVisitor<void> {
62
62
void visitMethodInvocation (MethodInvocation node) {
63
63
if (node.parent is CascadeExpression ||
64
64
node.parent is VariableDeclaration ||
65
+ // ignore: deprecated_member_use
65
66
(node.staticType? .isVoid ?? false )) {
66
67
return ;
67
68
}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ platforms:
15
15
macos :
16
16
17
17
dependencies :
18
- analyzer : " >=5.1.0 <5.8 .0"
18
+ analyzer : " >=5.1.0 <5.9 .0"
19
19
analyzer_plugin : " >=0.11.0 <0.12.0"
20
20
ansicolor : ^2.0.1
21
21
args : ^2.0.0
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ void main() {
55
55
AntiPatternTestHelper .verifyInitialization (
56
56
issues: issues,
57
57
antiPatternId: 'long-method' ,
58
- severity: Severity .none ,
58
+ severity: Severity .warning ,
59
59
);
60
60
61
61
AntiPatternTestHelper .verifyIssues (
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ void main() {
53
53
AntiPatternTestHelper .verifyInitialization (
54
54
issues: issues,
55
55
antiPatternId: 'long-parameter-list' ,
56
- severity: Severity .none ,
56
+ severity: Severity .warning ,
57
57
);
58
58
59
59
AntiPatternTestHelper .verifyIssues (
You can’t perform that action at this time.
0 commit comments