Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't emit code for empty files #1443

Merged
merged 2 commits into from
Dec 4, 2023
Merged

Don't emit code for empty files #1443

merged 2 commits into from
Dec 4, 2023

Conversation

nirinchev
Copy link
Member

#1438 introduced a regression where we would emit // ignore_for_file: type=lint for every file, even those that don't have any realm models, resulting in warnings like:

xyz.g.dart must be included as a part directive in the input library with:
part 'xyz.g.dart';

for files that don't contain models and should not have needed part files.

@nirinchev nirinchev merged commit efb2fb3 into main Dec 4, 2023
44 of 48 checks passed
@nirinchev nirinchev deleted the ni/generator branch December 4, 2023 07:32
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant