From 79dbac4e9ec9ce266c7954de3b3acc5493591cac Mon Sep 17 00:00:00 2001 From: Danny Moesch Date: Sun, 5 Jul 2020 23:09:10 +0200 Subject: [PATCH] Enable SwiftLint rule 'strict_fileprivate' and fix all violations --- .swiftlint.yml | 2 +- passKitTests/Testbase/TestPGPKeys.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.swiftlint.yml b/.swiftlint.yml index 2ca0b49..fad9c16 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -155,7 +155,7 @@ whitelist_rules: # - sorted_imports # Managed by SwiftFormat. - statement_position # - static_operator -# - strict_fileprivate + - strict_fileprivate - strong_iboutlet - superfluous_disable_command - switch_case_alignment diff --git a/passKitTests/Testbase/TestPGPKeys.swift b/passKitTests/Testbase/TestPGPKeys.swift index bdee134..7c09bdc 100644 --- a/passKitTests/Testbase/TestPGPKeys.swift +++ b/passKitTests/Testbase/TestPGPKeys.swift @@ -11,14 +11,14 @@ import XCTest @testable import passKit struct PGPTestSet { - fileprivate static var ALL_TEST_SETS: [String: PGPTestSet] = [:] + fileprivate static var ALL_TEST_SETS: [String: PGPTestSet] = [:] // swiftlint:disable:this strict_fileprivate let publicKey: String let privateKey: String let fingerprint: String let passphrase: String - fileprivate func collect() -> Self { + fileprivate func collect() -> Self { // swiftlint:disable:this strict_fileprivate Self.ALL_TEST_SETS[fingerprint] = self return self }