Skip to content

Commit

Permalink
fix(lint): filxed lint warnings for require_trailing_commas
Browse files Browse the repository at this point in the history
  • Loading branch information
RatakondalaArun committed Jul 20, 2022
1 parent af10715 commit 610fcb8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ analyzer:
- "lib/i18n/stock_messages_*.dart"
- "lib/src/http/**"
- "example/**"
- "**/*.g.dart"

linter:
rules:
Expand Down Expand Up @@ -158,3 +159,4 @@ linter:
- valid_regexps
# - void_checks # not yet tested
- public_member_api_docs
- require_trailing_commas
12 changes: 7 additions & 5 deletions test/abs/icon_generator_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ void main() {
logger = FLILogger(false);
mockGenerator = MockIconGenerator();
when(mockGenerator.platformName).thenReturn('Mock');
when(mockGenerator.context).thenReturn(IconGeneratorContext(
config: mockFLIConfig,
prefixPath: prefixPath,
logger: logger,
));
when(mockGenerator.context).thenReturn(
IconGeneratorContext(
config: mockFLIConfig,
prefixPath: prefixPath,
logger: logger,
),
);
});
test('should execute createIcons() when validateRequiremnts() returns true', () {
when(mockGenerator.validateRequirements()).thenReturn(true);
Expand Down

0 comments on commit 610fcb8

Please sign in to comment.