Skip to content

Commit fcef85f

Browse files
authored
Emit 'swift-format-ignore-file' in generated files to avoid having them reformatted by swift-format (#1606)
1 parent 6b55ce0 commit fcef85f

File tree

16 files changed

+16
-1
lines changed

16 files changed

+16
-1
lines changed

Examples/Google/NaturalLanguage/Sources/language_service.grpc.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//
22
// DO NOT EDIT.
3+
// swift-format-ignore-file
34
//
45
// Generated by the protocol buffer compiler.
56
// Source: google/cloud/language/v1/language_service.proto

Sources/Examples/Echo/Model/echo.grpc.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//
22
// DO NOT EDIT.
3+
// swift-format-ignore-file
34
//
45
// Generated by the protocol buffer compiler.
56
// Source: echo.proto

Sources/Examples/HelloWorld/Model/helloworld.grpc.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//
22
// DO NOT EDIT.
3+
// swift-format-ignore-file
34
//
45
// Generated by the protocol buffer compiler.
56
// Source: helloworld.proto

Sources/Examples/RouteGuide/Model/route_guide.grpc.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//
22
// DO NOT EDIT.
3+
// swift-format-ignore-file
34
//
45
// Generated by the protocol buffer compiler.
56
// Source: route_guide.proto

Sources/GRPCInteroperabilityTestModels/Generated/test.grpc.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//
22
// DO NOT EDIT.
3+
// swift-format-ignore-file
34
//
45
// Generated by the protocol buffer compiler.
56
// Source: src/proto/grpc/testing/test.proto

Sources/protoc-gen-grpc-swift/Generator.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ class Generator {
111111
self.printer.print("""
112112
//
113113
// DO NOT EDIT.
114+
// swift-format-ignore-file
114115
//
115116
// Generated by the protocol buffer compiler.
116117
// Source: \(self.file.name)

Tests/GRPCTests/Codegen/Normalization/normalization.grpc.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//
22
// DO NOT EDIT.
3+
// swift-format-ignore-file
34
//
45
// Generated by the protocol buffer compiler.
56
// Source: normalization.proto

dev/codegen-tests/01-echo/golden/echo.grpc.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//
22
// DO NOT EDIT.
3+
// swift-format-ignore-file
34
//
45
// Generated by the protocol buffer compiler.
56
// Source: echo.proto

dev/codegen-tests/02-multifile/golden/a.grpc.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//
22
// DO NOT EDIT.
3+
// swift-format-ignore-file
34
//
45
// Generated by the protocol buffer compiler.
56
// Source: a.proto

dev/codegen-tests/02-multifile/golden/b.grpc.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//
22
// DO NOT EDIT.
3+
// swift-format-ignore-file
34
//
45
// Generated by the protocol buffer compiler.
56
// Source: b.proto

0 commit comments

Comments
 (0)