You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have my *.g.dart files committed in git, and I have dart format . --fix running in CI. I would like it if the code generated by built_value followed the advice found in dart format's --fix rules.
> dart help format
...
--fix Apply all style fixes.
I've experimented with removing "new" from parts of the source code, and realized perhaps a better description of the issue is required. Rather than point at the entire project as being effected by dart format . --fix, I guess I should point at something dependent on the project, emphasizing the generating output, using example projects embedded here. For example:
> cd example
> dart format . --fix
> # note the diff representing the "fixed" output
> dart run build_runner build
> # note the "fixed" diff is removed
I have my
*.g.dart
files committed in git, and I havedart format . --fix
running in CI. I would like it if the code generated by built_value followed the advice found in dart format's --fix rules.To see what this looks like, try a fresh clone of built_value and try
dart format . --fix
there.For example,
I didn't attempt to dig deep into the issue, I don't know if a related issue can be filed with source_gen, for example.
I'll try the following as a quick fix:
The text was updated successfully, but these errors were encountered: