فهرست منبع

Add `swiftlint:disable all` to leading trivia (#53)

This line is also present on files generated by `swift-protobuf`.

---------

Co-authored-by: George Barnett <gbarnett@apple.com>
Ethan 8 ماه پیش
والد
کامیت
49bdd1232c

+ 1 - 0
Sources/GRPCProtobufCodeGen/ProtobufCodeGenParser.swift

@@ -65,6 +65,7 @@ package struct ProtobufCodeGenParser {
     let leadingTrivia = """
       // DO NOT EDIT.
       // swift-format-ignore-file
+      // swiftlint:disable all
       //
       // Generated by the gRPC Swift generator plugin for the protocol buffer compiler.
       // Source: \(descriptor.name)

BIN
Tests/GRPCProtobufCodeGenTests/Generated/test-service.pb


+ 1 - 0
Tests/GRPCProtobufCodeGenTests/ProtobufCodeGenParserTests.swift

@@ -46,6 +46,7 @@ struct ProtobufCodeGenParserTests {
 
         // DO NOT EDIT.
         // swift-format-ignore-file
+        // swiftlint:disable all
         //
         // Generated by the gRPC Swift generator plugin for the protocol buffer compiler.
         // Source: test-service.proto

+ 2 - 0
Tests/GRPCProtobufCodeGenTests/ProtobufCodeGeneratorTests.swift

@@ -55,6 +55,7 @@ struct ProtobufCodeGeneratorTests {
 
         // DO NOT EDIT.
         // swift-format-ignore-file
+        // swiftlint:disable all
         //
         // Generated by the gRPC Swift generator plugin for the protocol buffer compiler.
         // Source: test-service.proto
@@ -1113,6 +1114,7 @@ struct ProtobufCodeGeneratorTests {
 
         // DO NOT EDIT.
         // swift-format-ignore-file
+        // swiftlint:disable all
         //
         // Generated by the gRPC Swift generator plugin for the protocol buffer compiler.
         // Source: foo-messages.proto

+ 1 - 0
Tests/GRPCProtobufTests/Errors/Generated/error-service.grpc.swift

@@ -15,6 +15,7 @@
 
 // DO NOT EDIT.
 // swift-format-ignore-file
+// swiftlint:disable all
 //
 // Generated by the gRPC Swift generator plugin for the protocol buffer compiler.
 // Source: error-service.proto