Visitar URL original
`dcm analyze` false positives · Issue #9942 · flutter/devtools · GitHub
Skip to content

dcm analyze false positives #9942

Description

@kenzieschmoll

@incendial finding some more false positives here. I can file these somewhere else if that is better for you, just let me know.

packages/devtools_app/test/screens/debugger/syntax_highlighter_test.dart (1 issue):
WARNING   This test group does not contain any test cases.
          at packages/devtools_app/test/screens/debugger/syntax_highlighter_test.dart:514:7
          avoid-empty-test-groups : https://dcm.dev/docs/rules/common/avoid-empty-test-groups

Activity

  1. incendial commented on Aug 1, 2026

    @incendial
    Contributor

    Is it possible to mark testSingleSpan with @isTest? The rule cannot find any test invocations and that's why it shows a warning.

    I can file these somewhere else if that is better for you,

    Having them here is fine 👍

  2. kenzieschmoll commented on Aug 3, 2026

    @kenzieschmoll
    MemberAuthor

    Is it possible to mark testSingleSpan with @istest? The rule cannot find any test invocations and that's why it shows a warning.

    Yes this resolved it. I will leave this issue open for now while I am working on adding more DCM rules to our analysis_options.yaml file.

  3. added
    P2important to work on, but not at the top of the work list.
    cost: lowLow engineering cost to implement.
    on Aug 3, 2026
  4. incendial commented on Aug 19, 2026

    @incendial
    Contributor

    @kenzieschmoll jfyi, we recently published 1.39.0 that includes all fixes + I went through some of your PRs and fixed a few more cases with // ignore that are can be handled on our side

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.cost: lowLow engineering cost to implement.type-code-health

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions