Skip to content

dcm check-unused-code false positives #9907

Description

@kenzieschmoll

Command: dcm check-unused-code packages/devtools_app/ --exclude-public-api

False positives (one common theme I see here is that anything used in assert statements is falsely determined "unused"):

packages/devtools_app/test/test_infra/utils/extent_delegate_utils.dart (1 issue):
    ✖ unused field _renderObjectInitialized
      at packages/devtools_app/test/test_infra/utils/extent_delegate_utils.dart:19:3

packages/devtools_app/lib/src/extensions/embedded/_controller_web.dart (1 issue):
    ✖ unused field _initialized
      at packages/devtools_app/lib/src/extensions/embedded/_controller_web.dart:81:3

packages/devtools_app/lib/src/framework/home_screen.dart (2 issues):
    ✖ unused method _debugInitVmServiceCache
      at packages/devtools_app/lib/src/framework/home_screen.dart:174:3

packages/devtools_app/lib/src/app.dart (2 issues):
    ✖ unused class _AlternateCheckedModeBanner
      at packages/devtools_app/lib/src/app.dart:616:1
    ✖ unused constructor _AlternateCheckedModeBanner
      at packages/devtools_app/lib/src/app.dart:622:3

packages/devtools_app/lib/src/screens/performance/panes/timeline_events/perfetto/_perfetto_controller_web.dart (1 issue):
    ✖ unused field _initialized
      at packages/devtools_app/lib/src/screens/performance/panes/timeline_events/perfetto/_perfetto_controller_web.dart:162:3

I will add more false positives to this list as I find them (working through different directories #9906).

@incendial

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2important to work on, but not at the top of the work list.a: qualitycost: lowLow engineering cost to implement.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions