-
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathbuild.yaml
More file actions
18 lines (18 loc) · 855 Bytes
/
Copy pathbuild.yaml
File metadata and controls
18 lines (18 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Code-generation config for json_serializable / freezed.
targets:
$default:
builders:
json_serializable:
options:
# Nested models serialize via their own toJson (so round-trips and
# local caching produce plain JSON, not embedded objects).
explicit_to_json: true
# Generated code is not code anyone tests into shape. `flutter test`
# leaves out every file that says `// coverage:ignore-file`, so CI's
# report and the editor's agree without a list of suffixes kept in step.
# freezed writes the comment into `.freezed.dart` on its own; this puts
# it into every `.g.dart`. test/tool/generated_code_coverage_test.dart
# fails when a generated file comes out without it.
source_gen:combining_builder:
options:
preamble: "// coverage:ignore-file"