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

Commit c57cc88

Browse files
author
Roman Petrov
committed
fix: review comment
1 parent 95affbe commit c57cc88

File tree

1 file changed

+1
-1
lines changed
  • lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_static_class

1 file changed

+1
-1
lines changed

lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_static_class/visitor.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class _Visitor extends RecursiveAstVisitor<void> {
4141
}
4242

4343
bool _shouldIgnoreName(String name) =>
44-
(_ignorePrivate && name.startsWith('_')) ||
44+
(_ignorePrivate && Identifier.isPrivateName(name)) ||
4545
_ignoreNames.any((element) => element.hasMatch(name));
4646

4747
bool _hasIgnoredAnnotation(Declaration node) => node.metadata.any(

0 commit comments

Comments
 (0)