objectbox / objectbox/objectbox-dart
Add strict_raw_type to ignore_for_file in generated file
Open
@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?
- I have searched existing issues
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.