Disable some CPD on generated code and some tests
This commit is contained in:
parent
08e4d4495f
commit
4d730800e1
@ -5,6 +5,8 @@
|
||||
// Created by Loris Perret on 05/12/2023.
|
||||
//
|
||||
|
||||
// CPD-OFF
|
||||
|
||||
import Foundation
|
||||
|
||||
enum FirebaseGenerator {
|
||||
@ -85,3 +87,5 @@ enum FirebaseGenerator {
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
// CPD-ON
|
||||
|
@ -5,6 +5,8 @@
|
||||
// Created by Thibaut Schmitt on 06/09/2022.
|
||||
//
|
||||
|
||||
// CPD-OFF
|
||||
|
||||
import Foundation
|
||||
import XCTest
|
||||
import ToolCore
|
||||
@ -648,3 +650,5 @@ final class AnalyticsGeneratorTests: XCTestCase {
|
||||
XCTAssertEqual(extensionContent.adaptForXCTest(), expect.adaptForXCTest())
|
||||
}
|
||||
}
|
||||
|
||||
// CPD-ON
|
||||
|
@ -5,6 +5,8 @@
|
||||
// Created by Thibaut Schmitt on 06/09/2022.
|
||||
//
|
||||
|
||||
// CPD-OFF
|
||||
|
||||
import Foundation
|
||||
import XCTest
|
||||
|
||||
@ -872,3 +874,5 @@ final class DefinitionTests: XCTestCase {
|
||||
XCTAssertEqual(propertyEnUs.adaptForXCTest(), expectEnUs.adaptForXCTest())
|
||||
}
|
||||
}
|
||||
|
||||
// CPD-ON
|
||||
|
@ -20,7 +20,7 @@ final class StringsFileGeneratorTests: XCTestCase {
|
||||
let sectionOne = Section.Mock.getSectionOne()
|
||||
let sectionTwo = Section.Mock.getSectionTwo()
|
||||
|
||||
// When
|
||||
// When - CPD-OFF
|
||||
let stringsFileContentFr = StringsFileGenerator.generateStringsFileContent(
|
||||
lang: "fr",
|
||||
defaultLang: "fr",
|
||||
@ -33,6 +33,7 @@ final class StringsFileGeneratorTests: XCTestCase {
|
||||
tags: ["ios", "iosonly", "notranslation"],
|
||||
sections: [sectionOne, sectionTwo]
|
||||
)
|
||||
// CPD-ON
|
||||
|
||||
// Expect
|
||||
XCTAssertEqual(
|
||||
@ -56,7 +57,7 @@ final class StringsFileGeneratorTests: XCTestCase {
|
||||
defTwoComment: "This is a comment"
|
||||
)
|
||||
|
||||
// When
|
||||
// When - CPD-OFF
|
||||
let stringsFileContentFr = StringsFileGenerator.generateStringsFileContent(
|
||||
lang: "fr",
|
||||
defaultLang: "fr",
|
||||
@ -69,6 +70,7 @@ final class StringsFileGeneratorTests: XCTestCase {
|
||||
tags: ["ios", "iosonly", "notranslation"],
|
||||
sections: [sectionOne, sectionTwo]
|
||||
)
|
||||
// CPD-ON
|
||||
|
||||
// Expect
|
||||
XCTAssertEqual(
|
||||
|
Loading…
x
Reference in New Issue
Block a user