diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 25cc66952..28f89bb74 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: check-yaml args: [--allow-multiple-documents, --unsafe] - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v19.1.3 + rev: v19.1.4 hooks: - id: clang-format files: '.*\.(hpp|cpp|h)' @@ -15,12 +15,12 @@ repos: hooks: - id: buildifier - repo: https://github.com/Mateusz-Grzelinski/actionlint-py - rev: v1.7.3.17 + rev: v1.7.4.20 hooks: - id: actionlint additional_dependencies: [shellcheck-py] - repo: https://github.com/nicklockwood/SwiftFormat - rev: "0.54.6" + rev: "0.55.2" hooks: - id: swiftformat args: [--swiftversion, "5.8"] diff --git a/platform/darwin/test/MLNDocumentationExampleTests.swift b/platform/darwin/test/MLNDocumentationExampleTests.swift index 9751ae1b1..a600624f8 100644 --- a/platform/darwin/test/MLNDocumentationExampleTests.swift +++ b/platform/darwin/test/MLNDocumentationExampleTests.swift @@ -27,7 +27,7 @@ class MLNDocumentationExampleTests: XCTestCase, MLNMapViewDelegate { // Mock MLNOfflineStorage singleton so that it doesn't start long-running tasks that could interfere with other tests. fileprivate class MLNOfflineStorageMock { static let shared = MLNOfflineStorageMock() - func addPack(for: MLNOfflineRegion, withContext: Data, completionHandler: MLNOfflinePackAdditionCompletionHandler? = nil) { + func addPack(for _: MLNOfflineRegion, withContext _: Data, completionHandler: MLNOfflinePackAdditionCompletionHandler? = nil) { XCTAssert(MLNOfflineStorage.shared.responds(to: #selector(MLNOfflineStorage.shared.addPack(for:withContext:completionHandler:)))) if let completionHandler { completionHandler(nil, NSError(domain: "MLNDocumentationExampleError", code: 0, userInfo: [NSLocalizedDescriptionKey: "\(#function) is mocked and not functional."])) @@ -182,7 +182,7 @@ class MLNDocumentationExampleTests: XCTestCase, MLNMapViewDelegate { // URL requires setting an access token. So this identically named // subclass of MLNRasterDEMSource swaps in a nonexistent URL. class MLNRasterDEMSource: MapLibre.MLNRasterDEMSource { - override init(identifier: String, configurationURL: URL, tileSize: CGFloat = 256) { + override init(identifier: String, configurationURL _: URL, tileSize: CGFloat = 256) { let bogusURL = URL(string: "https://example.com/raster-rgb.json")! super.init(identifier: identifier, configurationURL: bogusURL, tileSize: tileSize) }