Skip to content

type_annotate_public_apis reports issues over local non-API functions #57763

Closed
@chalin

Description

@chalin

Consider the local good() function declared in this test:

test('foo', () {
  good() { ... }
  expect(good, ...);
});

The type_annotate_public_apis lint causes this issue to be reported:

lint • Type annotate public APIs at test/effective_dart_test.dart:28:7 • type_annotate_public_apis

Being a local function, good() should not be considered in this lint.

cc @munificent @kevmoo

Metadata

Metadata

Assignees

No one assigned

    Labels

    devexp-linterIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.linter-false-positivetype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions