Skip to content

Commit f20d8d6

Browse files
zackwintermdbMongoDB Bot
authored and
MongoDB Bot
committed
SERVER-103634 Apply "bazel run format" formatter to idl files (#34832)
GitOrigin-RevId: e23ba69af1ed014bde71eb620d93c5251cfad400
1 parent 9681c2c commit f20d8d6

File tree

435 files changed

+16104
-14754
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

435 files changed

+16104
-14754
lines changed

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
!*.md
1212
!*.yml
1313
!*.yaml
14+
!*.idl
1415

1516
# Ignore all golden test output files, which are machine-generated by the "golden"
1617
# jstests. We would have to be able to run prettier (via bazel) during a jstest

.prettierrc

+8-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
"options": {
77
"tabWidth": 4
88
}
9-
}
9+
},
10+
{
11+
"files": "*.idl",
12+
"options": {
13+
"parser": "yaml",
14+
"tabWidth": 4
15+
}
16+
},
1017
]
1118
}

buildscripts/idl/sample/sample.idl

+4-6
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ types:
6666
description: Accepts any numerical type within int32 range
6767
cpp_type: std::int64_t
6868
bson_serialization_type:
69-
- long
70-
- int
71-
- decimal
72-
- double
69+
- long
70+
- int
71+
- decimal
72+
- double
7373
deserializer: "mongo::BSONElement::numberInt"
7474
is_view: false
7575

@@ -89,7 +89,6 @@ types:
8989
deserializer: "mongo::BSONElement::uuid"
9090
is_view: false
9191

92-
9392
structs:
9493
default_values:
9594
description: UnitTest for a single safeInt32
@@ -121,4 +120,3 @@ structs:
121120
uuidField:
122121
type: bindata_uuid
123122
description: "A binData of uuid subtype"
124-

buildscripts/idl/tests/compatibility_test_fail/generic_argument/new.idl

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ global:
2929
cpp_namespace: "mongo"
3030

3131
imports:
32-
- "test_types.idl"
32+
- "test_types.idl"
3333

3434
structs:
3535
GenericArguments:

buildscripts/idl/tests/compatibility_test_fail/generic_argument/old.idl

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ global:
2929
cpp_namespace: "mongo"
3030

3131
imports:
32-
- "test_types.idl"
32+
- "test_types.idl"
3333

3434
structs:
3535
GenericArguments:

0 commit comments

Comments
 (0)