Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Commit

Permalink
chore: restrict analyzer version to >=2.4.0 <3.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrutskikh committed Mar 7, 2022
1 parent f525dda commit 63d9627
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* feat: add static code diagnostics `avoid-collection-methods-with-unrelated-types`, `ban-name`, `tag-name`.
* fix: added parameter constant check in `avoid-border-all`.
* chore: restrict `analyzer` version to `>=2.4.0 <3.4.0`.
* chore: set min `mocktail` version to `^0.3.0`.

## 4.11.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class _Visitor extends RecursiveAstVisitor<void> {

@override
void visitClassDeclaration(ClassDeclaration node) {
// ignore: deprecated_member_use
final classType = node.extendsClause?.superclass2.type;
if (!isWidgetOrSubclass(classType) && !isWidgetStateOrSubclass(classType)) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class _Visitor extends RecursiveAstVisitor<void> {
void visitClassDeclaration(ClassDeclaration node) {
super.visitClassDeclaration(node);

// ignore: deprecated_member_use
final type = node.extendsClause?.superclass2.type;
if (type == null || !isWidgetStateOrSubclass(type)) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class _Visitor extends SimpleAstVisitor<void> {

@override
void visitClassDeclaration(ClassDeclaration node) {
// ignore: deprecated_member_use
final classType = node.extendsClause?.superclass2.type;
if (!isWidgetOrSubclass(classType) && !isWidgetStateOrSubclass(classType)) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class _Visitor extends SimpleAstVisitor<void> {
void visitClassDeclaration(ClassDeclaration node) {
super.visitClassDeclaration(node);

// ignore: deprecated_member_use
final classType = node.extendsClause?.superclass2.type;
if (isWidgetOrSubclass(classType) &&
(!_ignorePrivateWidgets || !Identifier.isPrivateName(node.name.name))) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ environment:
sdk: ">=2.14.0 <3.0.0"

dependencies:
analyzer: ">=2.4.0 <3.3.0"
analyzer: ">=2.4.0 <3.4.0"
analyzer_plugin: ">=0.8.0 <0.10.0"
ansicolor: ^2.0.1
args: ^2.0.0
Expand Down

0 comments on commit 63d9627

Please sign in to comment.