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

Commit 91cfb6a

Browse files
committed
chore: add missing toJson implementation
1 parent 00d83a6 commit 91cfb6a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_late_keyword/avoid_late_keyword_rule.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ class AvoidLateKeywordRule extends CommonRule {
3232
includes: readIncludes(config),
3333
);
3434

35+
@override
36+
Map<String, Object?> toJson() {
37+
final json = super.toJson();
38+
json[_ConfigParser._allowInitializedConfig] = _allowInitialized;
39+
json[_ConfigParser._ignoredTypesConfig] = _ignoredTypes.toList();
40+
41+
return json;
42+
}
43+
3544
@override
3645
Iterable<Issue> check(InternalResolvedUnitResult source) {
3746
final visitor = _Visitor(_allowInitialized, _ignoredTypes);

0 commit comments

Comments
 (0)