Skip to content

Commit

Permalink
refactor: Enable new DCM rule: avoid-cascade-after-if-null
Browse files Browse the repository at this point in the history
  • Loading branch information
luanpotter committed Aug 25, 2023
1 parent 9afe639 commit 9e6a94a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/flame_jenny/jenny/test/test_scenario.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Future<void> testScenario({
List<String>? commands,
YarnProject? yarn,
}) async {
final yarnProject = yarn ?? YarnProject()
final yarnProject = (yarn ?? YarnProject())
..strictCharacterNames = false;
commands?.forEach(yarnProject.commands.addOrphanedCommand);

Expand Down
1 change: 1 addition & 0 deletions packages/flame_lint/lib/analysis_options_with_dcm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ dart_code_metrics:
rules:
# dart rules
- avoid-banned-imports
- avoid-cascade-after-if-null
# flutter rules
- prefer-define-hero-tag

0 comments on commit 9e6a94a

Please sign in to comment.