Skip to content

Dart roller blocked on new lint semantics (prefer_initializing_formals) #182617

Description

@gaaclarke

example

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8689453878047766625/+/u/run_test.dart_for_tool_tests_commands_shard_and_subshard_1_1/stdout

log

Resolving dependencies...
Downloading packages...
! flutter_project 1.0.0+1 from path /Volumes/Work/s/w/ir/x/t/flutter_tools.xgAGaY/flutter_tools_create_test.OJGSIc/flutter_project (overridden)
  meta 1.18.0 (1.18.1 available)
Got dependencies!
1 package has newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
Analyzing widget_preview_scaffold9Dg7QE...                      

   info • Use an initializing formal to assign a parameter to a field • lib/src/controls.dart:16:8 • prefer_initializing_formals
   info • Use an initializing formal to assign a parameter to a field • lib/src/theme/ide_theme.dart:18:7 • prefer_initializing_formals
   info • Use an initializing formal to assign a parameter to a field • lib/src/widget_preview_rendering.dart:824:8 • prefer_initializing_formals
   info • Use an initializing formal to assign a parameter to a field • lib/src/widget_preview_scaffold_controller.dart:26:8 • prefer_initializing_formals

4 issues found. (ran in 1.7s)
05:00 +247 ~1 -8: /Volumes/Work/s/w/ir/x/w/flutter/packages/flutter_tools/test/commands.shard/permeable/widget_preview/widget_preview_test.dart: flutter widget-preview start creates .dart_tool/widget_preview_scaffold in the CWD
Expected: <0>
  Actual: <1>

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work listteam-engineOwned by Engine team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions