Skip to content

Commit 610fcb8

Browse files
fix(lint): filxed lint warnings for require_trailing_commas
1 parent af10715 commit 610fcb8

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

analysis_options.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ analyzer:
1919
- "lib/i18n/stock_messages_*.dart"
2020
- "lib/src/http/**"
2121
- "example/**"
22+
- "**/*.g.dart"
2223

2324
linter:
2425
rules:
@@ -158,3 +159,4 @@ linter:
158159
- valid_regexps
159160
# - void_checks # not yet tested
160161
- public_member_api_docs
162+
- require_trailing_commas

test/abs/icon_generator_test.dart

+7-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ void main() {
2222
logger = FLILogger(false);
2323
mockGenerator = MockIconGenerator();
2424
when(mockGenerator.platformName).thenReturn('Mock');
25-
when(mockGenerator.context).thenReturn(IconGeneratorContext(
26-
config: mockFLIConfig,
27-
prefixPath: prefixPath,
28-
logger: logger,
29-
));
25+
when(mockGenerator.context).thenReturn(
26+
IconGeneratorContext(
27+
config: mockFLIConfig,
28+
prefixPath: prefixPath,
29+
logger: logger,
30+
),
31+
);
3032
});
3133
test('should execute createIcons() when validateRequiremnts() returns true', () {
3234
when(mockGenerator.validateRequirements()).thenReturn(true);

0 commit comments

Comments
 (0)