Skip to content

Commit a68712e

Browse files
Update lib/src/lints/function_lines_of_code/function_lines_of_code_rule.dart
1 parent f3a3076 commit a68712e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/lints/function_lines_of_code/function_lines_of_code_rule.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ class FunctionLinesOfCodeRule
6060

6161
// Check for an anonymous function
6262
void checkFunctionExpressionNode(FunctionExpression node) {
63+
// If a FunctionExpression is an immediate child of a FunctionDeclaration
64+
// this means it's a named function, which are already check as part of
65+
// addFunctionDeclaration call.
6366
if (node.parent is FunctionDeclaration) {
6467
return;
6568
}

0 commit comments

Comments
 (0)