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

Commit 5c06f67

Browse files
committed
fix: override toJson for arguments-ordering
1 parent 3b48b76 commit 5c06f67

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/src/analyzers/lint_analyzer/rules/rules_list/arguments_ordering/arguments_ordering_rule.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ class ArgumentsOrderingRule extends CommonRule {
3535
includes: readIncludes(config),
3636
);
3737

38+
@override
39+
Map<String, Object?> toJson() {
40+
final json = super.toJson();
41+
json[_ConfigParser._childLast] = _childLast;
42+
43+
return json;
44+
}
45+
3846
@override
3947
Iterable<Issue> check(InternalResolvedUnitResult source) {
4048
final visitor = _Visitor(childLast: _childLast);

0 commit comments

Comments
 (0)