Skip to content

Commit

Permalink
Fix SwiftFormat issues (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamede1945 authored Jan 15, 2024
1 parent 5723040 commit 658b92f
Show file tree
Hide file tree
Showing 27 changed files with 25 additions and 26 deletions.
2 changes: 1 addition & 1 deletion Core/AppMigrator/Sources/AppVersionUpdater.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// AppUpdater.swift
// AppVersionUpdater.swift
// Quran
//
// Created by Mohamed Afifi on 5/2/17.
Expand Down
2 changes: 1 addition & 1 deletion Core/AsyncUtilitiesForTesting/XCTestCase+PromiseKit.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Utils.swift
// XCTestCase+PromiseKit.swift
//
//
// Created by Mohamed Afifi on 2021-12-19.
Expand Down
2 changes: 1 addition & 1 deletion Core/Preferences/Preference.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// PreferencesValue.swift
// Preference.swift
//
//
// Created by Mohamed Afifi on 2022-04-16.
Expand Down
2 changes: 1 addition & 1 deletion Core/Utilities/Sources/Features/Locking.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@_implementationOnly import WinSDK
#endif

internal struct Lock {
struct Lock {
#if canImport(Darwin)
typealias Primitive = os_unfair_lock
#elseif canImport(Glibc)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// URLSessionDownloadManager.swift
// DownloadManager.swift
// Quran
//
// Created by Mohamed Afifi on 5/14/16.
Expand Down
4 changes: 2 additions & 2 deletions Data/BatchDownloaderFake/BatchDownloaderFake.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public enum BatchDownloaderFake {
}

public static func tearDown() {
try? FileManager.default.removeItem(at: Self.downloadsURL)
try? FileManager.default.removeItem(at: downloadsURL)
}

public static func makeDownloadRequest(_ id: String) -> DownloadRequest {
Expand All @@ -86,7 +86,7 @@ public enum BatchDownloaderFake {
private static let downloads = "downloads"

private static func makeDownloadsPersistence() -> GRDBDownloadsPersistence {
try? DefaultFileSystem().createDirectory(at: Self.downloadsURL, withIntermediateDirectories: true)
try? DefaultFileSystem().createDirectory(at: downloadsURL, withIntermediateDirectories: true)
let downloadsDBPath = Self.downloadsURL.appendingPathComponent("ongoing-downloads.db", isDirectory: false)
let persistence = GRDBDownloadsPersistence(fileURL: downloadsDBPath.url)
return persistence
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// CoreDataInsertedEntitiesRetriever.swift
// CoreDataInsertedEntitiesRetrieverTests.swift
//
//
// Created by Mohamed Afifi on 2023-05-28.
Expand Down
2 changes: 1 addition & 1 deletion Data/CoreDataPersistenceTestSupport/LastPage+++.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// LastPageEntity.swift
// LastPage+++.swift
//
//
// Created by Mohamed Afifi on 2023-05-30.
Expand Down
2 changes: 1 addition & 1 deletion Data/CoreDataPersistenceTestSupport/Note+++.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// NoteEntity.swift
// Note+++.swift
//
//
// Created by Mohamed Afifi on 2023-06-01.
Expand Down
2 changes: 1 addition & 1 deletion Data/CoreDataPersistenceTestSupport/PageBookmark+++.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// PageBookmarkEntity.swift
// PageBookmark+++.swift
//
//
// Created by Mohamed Afifi on 2023-05-30.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// PersistenceSearcher..swift
// PersistenceSearcher.swift
//
//
// Created by Mohamed Afifi on 2021-11-16.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// SearchTermProcessor.swift
// SearchTerm.swift
//
//
// Created by Mohamed Afifi on 2021-11-16.
Expand Down
2 changes: 1 addition & 1 deletion Domain/QuranTextKit/Tests/TestData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import TestResources
import TranslationServiceFake
import VerseTextPersistence

struct TestData {
enum TestData {
static let khanTranslation = TranslationTestData.khanTranslation
static let sahihTranslation = TranslationTestData.sahihTranslation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class DownloadedRecitersServiceTests: XCTestCase {
private var fileManager = DefaultFileSystem()

private func deleteReciterDirs(_ reciters: [Reciter]) {
reciters.forEach { reciter in
for reciter in reciters {
try? fileManager.removeItem(at: reciter.localFolder())
}
}
Expand Down
2 changes: 1 addition & 1 deletion Domain/TranslationService/Sources/TranslationDeleter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public struct TranslationDeleter {
selectedTranslationsPreferences.remove(translation.id)

// delete from disk
translation.localFiles.forEach { url in
for url in translation.localFiles {
try? fileSystem.removeItem(at: url)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public struct TranslationsRepository {
var localMap = localMapConstant

var combinedList: [Translation] = []
remote.forEach { remote in
for remote in remote {
var combined = remote
if let local = localMap[remote.fileName] {
combined.installedVersion = local.installedVersion
Expand Down
2 changes: 1 addition & 1 deletion Domain/WordFrameService/WordFrameScale+Extension.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// WordFrameScale.swift
// WordFrameScale+Extension.swift
//
//
// Created by Mohamed Afifi on 2021-12-26.
Expand Down
2 changes: 1 addition & 1 deletion Features/AppStructureFeature/App/AppViewController.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// MainTabBarController.swift
// AppViewController.swift
// Quran
//
// Created by Mohamed Afifi on 4/19/16.
Expand Down
2 changes: 1 addition & 1 deletion Features/FeaturesSupport/Analytics.Screen.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Screen.swift
// Analytics.Screen.swift
// Quran
//
// Created by Mohamed Afifi on 4/8/17.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// AdvancedAudioViewModel.swift
// AdvancedAudioUI.swift
// Quran
//
// Created by Afifi, Mohamed on 12/26/20.
Expand Down
2 changes: 1 addition & 1 deletion UI/NoorUI/Features/MoreMenu/MoreMenuView.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// MoreMenuLandingView.swift
// MoreMenuView.swift
//
//
// Created by Afifi, Mohamed on 9/5/21.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// SwiftUIView.swift
// MoreMenuWordPointerType.swift
//
//
// Created by Afifi, Mohamed on 9/5/21.
Expand Down
1 change: 0 additions & 1 deletion UI/NoorUI/Features/Note/NoteEditorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public struct NoteEditorView: View {
Text(note.ayahText)
.lineLimit(3)
.font(.quran(ofSize: .small))

.padding(.leading)
.overlay(HStack {
Rectangle().fill(note.selectedColor.color)
Expand Down
2 changes: 1 addition & 1 deletion UI/NoorUI/Font/FontSize++.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// FontSize+++.swift
// FontSize++.swift
// Quran
//
// Created by Mohamed Afifi on 5/2/18.
Expand Down
2 changes: 1 addition & 1 deletion UI/ViewConstrainer/UIView+Const.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// UIView+VC.swift
// UIView+Const.swift
// Quran
//
// Created by Mohamed Afifi on 10/21/17.
Expand Down

0 comments on commit 658b92f

Please sign in to comment.