objectbox / objectbox/objectbox-dart

Add strict_raw_type to ignore_for_file in generated file

Open
#792 3 comments 0 reactions 1 assignee View on GitHub

@greenrobot-team is already working on this.

Since Mar 24, 2026.

enhancement
Dominant language
Dart
Stars
1.2k
Forks
162
Avg merge
15m
Merged PRs (30d)
1

Description

Is there an existing issue?
Use case

I'd like to get rid of the analyzer warning regarding EntityDefinition<dynamic> when using strict-raw-types analyzer option:

The generic type 'EntityDefinition<dynamic>' should have explicit type arguments but doesn't.
Use explicit type arguments for 'EntityDefinition<dynamic>'.
Proposed solution

Maybe this can be more specific or just add strict_raw_type to the already generated line:

// ignore_for_file: camel_case_types, depend_on_referenced_packages

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.