diff --git a/Core/AppMigrator/Sources/AppVersionUpdater.swift b/Core/AppMigrator/Sources/AppVersionUpdater.swift index e7a249f2..28db0baf 100644 --- a/Core/AppMigrator/Sources/AppVersionUpdater.swift +++ b/Core/AppMigrator/Sources/AppVersionUpdater.swift @@ -1,5 +1,5 @@ // -// AppUpdater.swift +// AppVersionUpdater.swift // Quran // // Created by Mohamed Afifi on 5/2/17. diff --git a/Core/AsyncUtilitiesForTesting/XCTestCase+PromiseKit.swift b/Core/AsyncUtilitiesForTesting/XCTestCase+PromiseKit.swift index d0907281..1da9f260 100644 --- a/Core/AsyncUtilitiesForTesting/XCTestCase+PromiseKit.swift +++ b/Core/AsyncUtilitiesForTesting/XCTestCase+PromiseKit.swift @@ -1,5 +1,5 @@ // -// Utils.swift +// XCTestCase+PromiseKit.swift // // // Created by Mohamed Afifi on 2021-12-19. diff --git a/Core/Preferences/Preference.swift b/Core/Preferences/Preference.swift index 21a59d99..87793d1c 100644 --- a/Core/Preferences/Preference.swift +++ b/Core/Preferences/Preference.swift @@ -1,5 +1,5 @@ // -// PreferencesValue.swift +// Preference.swift // // // Created by Mohamed Afifi on 2022-04-16. diff --git a/Core/Utilities/Sources/Features/Locking.swift b/Core/Utilities/Sources/Features/Locking.swift index f96d6f9f..c1344776 100644 --- a/Core/Utilities/Sources/Features/Locking.swift +++ b/Core/Utilities/Sources/Features/Locking.swift @@ -19,7 +19,7 @@ @_implementationOnly import WinSDK #endif -internal struct Lock { +struct Lock { #if canImport(Darwin) typealias Primitive = os_unfair_lock #elseif canImport(Glibc) diff --git a/Data/BatchDownloader/Sources/Downloader/DownloadManager.swift b/Data/BatchDownloader/Sources/Downloader/DownloadManager.swift index 7e6f2c55..07a0ff77 100644 --- a/Data/BatchDownloader/Sources/Downloader/DownloadManager.swift +++ b/Data/BatchDownloader/Sources/Downloader/DownloadManager.swift @@ -1,5 +1,5 @@ // -// URLSessionDownloadManager.swift +// DownloadManager.swift // Quran // // Created by Mohamed Afifi on 5/14/16. diff --git a/Data/BatchDownloaderFake/BatchDownloaderFake.swift b/Data/BatchDownloaderFake/BatchDownloaderFake.swift index 95d8290f..04b72b0b 100644 --- a/Data/BatchDownloaderFake/BatchDownloaderFake.swift +++ b/Data/BatchDownloaderFake/BatchDownloaderFake.swift @@ -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 { @@ -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 diff --git a/Data/CoreDataPersistence/Tests/CoreDataInsertedEntitiesRetrieverTests.swift b/Data/CoreDataPersistence/Tests/CoreDataInsertedEntitiesRetrieverTests.swift index c77eb594..6aafb019 100644 --- a/Data/CoreDataPersistence/Tests/CoreDataInsertedEntitiesRetrieverTests.swift +++ b/Data/CoreDataPersistence/Tests/CoreDataInsertedEntitiesRetrieverTests.swift @@ -1,5 +1,5 @@ // -// CoreDataInsertedEntitiesRetriever.swift +// CoreDataInsertedEntitiesRetrieverTests.swift // // // Created by Mohamed Afifi on 2023-05-28. diff --git a/Data/CoreDataPersistenceTestSupport/LastPage+++.swift b/Data/CoreDataPersistenceTestSupport/LastPage+++.swift index 3b6b923c..4f1435cd 100644 --- a/Data/CoreDataPersistenceTestSupport/LastPage+++.swift +++ b/Data/CoreDataPersistenceTestSupport/LastPage+++.swift @@ -1,5 +1,5 @@ // -// LastPageEntity.swift +// LastPage+++.swift // // // Created by Mohamed Afifi on 2023-05-30. diff --git a/Data/CoreDataPersistenceTestSupport/Note+++.swift b/Data/CoreDataPersistenceTestSupport/Note+++.swift index 6b9994b5..a917dca8 100644 --- a/Data/CoreDataPersistenceTestSupport/Note+++.swift +++ b/Data/CoreDataPersistenceTestSupport/Note+++.swift @@ -1,5 +1,5 @@ // -// NoteEntity.swift +// Note+++.swift // // // Created by Mohamed Afifi on 2023-06-01. diff --git a/Data/CoreDataPersistenceTestSupport/PageBookmark+++.swift b/Data/CoreDataPersistenceTestSupport/PageBookmark+++.swift index 9fe9856f..38b7303b 100644 --- a/Data/CoreDataPersistenceTestSupport/PageBookmark+++.swift +++ b/Data/CoreDataPersistenceTestSupport/PageBookmark+++.swift @@ -1,5 +1,5 @@ // -// PageBookmarkEntity.swift +// PageBookmark+++.swift // // // Created by Mohamed Afifi on 2023-05-30. diff --git a/Data/PageBookmarkPersistence/Sources/CoreDataBookmarkPagePersistence.swift b/Data/PageBookmarkPersistence/Sources/CoreDataPageBookmarkPersistence.swift similarity index 100% rename from Data/PageBookmarkPersistence/Sources/CoreDataBookmarkPagePersistence.swift rename to Data/PageBookmarkPersistence/Sources/CoreDataPageBookmarkPersistence.swift diff --git a/Domain/QuranTextKit/Sources/Search/Searchers/PersistenceSearcher.swift b/Domain/QuranTextKit/Sources/Search/Searchers/PersistenceSearcher.swift index 8e3d371f..f40a0780 100644 --- a/Domain/QuranTextKit/Sources/Search/Searchers/PersistenceSearcher.swift +++ b/Domain/QuranTextKit/Sources/Search/Searchers/PersistenceSearcher.swift @@ -1,5 +1,5 @@ // -// PersistenceSearcher..swift +// PersistenceSearcher.swift // // // Created by Mohamed Afifi on 2021-11-16. diff --git a/Domain/QuranTextKit/Sources/Search/Searchers/SearchTerm.swift b/Domain/QuranTextKit/Sources/Search/Searchers/SearchTerm.swift index 51c594ae..b8c204b9 100644 --- a/Domain/QuranTextKit/Sources/Search/Searchers/SearchTerm.swift +++ b/Domain/QuranTextKit/Sources/Search/Searchers/SearchTerm.swift @@ -1,5 +1,5 @@ // -// SearchTermProcessor.swift +// SearchTerm.swift // // // Created by Mohamed Afifi on 2021-11-16. diff --git a/Domain/QuranTextKit/Tests/TestData.swift b/Domain/QuranTextKit/Tests/TestData.swift index a58211ab..2ed5f928 100644 --- a/Domain/QuranTextKit/Tests/TestData.swift +++ b/Domain/QuranTextKit/Tests/TestData.swift @@ -13,7 +13,7 @@ import TestResources import TranslationServiceFake import VerseTextPersistence -struct TestData { +enum TestData { static let khanTranslation = TranslationTestData.khanTranslation static let sahihTranslation = TranslationTestData.sahihTranslation diff --git a/Domain/ReciterService/Tests/DownloadedRecitersServiceTests.swift b/Domain/ReciterService/Tests/DownloadedRecitersServiceTests.swift index 2186dd61..f108d73e 100644 --- a/Domain/ReciterService/Tests/DownloadedRecitersServiceTests.swift +++ b/Domain/ReciterService/Tests/DownloadedRecitersServiceTests.swift @@ -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()) } } diff --git a/Domain/TranslationService/Sources/TranslationDeleter.swift b/Domain/TranslationService/Sources/TranslationDeleter.swift index 919a62bf..02f6e4b0 100644 --- a/Domain/TranslationService/Sources/TranslationDeleter.swift +++ b/Domain/TranslationService/Sources/TranslationDeleter.swift @@ -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) } diff --git a/Domain/TranslationService/Sources/TranslationsRepository.swift b/Domain/TranslationService/Sources/TranslationsRepository.swift index 587abce5..18000955 100644 --- a/Domain/TranslationService/Sources/TranslationsRepository.swift +++ b/Domain/TranslationService/Sources/TranslationsRepository.swift @@ -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 diff --git a/Domain/WordFrameService/WordFrameScale+Extension.swift b/Domain/WordFrameService/WordFrameScale+Extension.swift index 8a5960bd..7dda684e 100644 --- a/Domain/WordFrameService/WordFrameScale+Extension.swift +++ b/Domain/WordFrameService/WordFrameScale+Extension.swift @@ -1,5 +1,5 @@ // -// WordFrameScale.swift +// WordFrameScale+Extension.swift // // // Created by Mohamed Afifi on 2021-12-26. diff --git a/Features/AppStructureFeature/App/AppViewController.swift b/Features/AppStructureFeature/App/AppViewController.swift index ea4b3e0b..d951a9e1 100644 --- a/Features/AppStructureFeature/App/AppViewController.swift +++ b/Features/AppStructureFeature/App/AppViewController.swift @@ -1,5 +1,5 @@ // -// MainTabBarController.swift +// AppViewController.swift // Quran // // Created by Mohamed Afifi on 4/19/16. diff --git a/Features/FeaturesSupport/Analytics.Screen.swift b/Features/FeaturesSupport/Analytics.Screen.swift index d342dc96..2ae83c2b 100644 --- a/Features/FeaturesSupport/Analytics.Screen.swift +++ b/Features/FeaturesSupport/Analytics.Screen.swift @@ -1,5 +1,5 @@ // -// Screen.swift +// Analytics.Screen.swift // Quran // // Created by Mohamed Afifi on 4/8/17. diff --git a/Model/QuranKit/Sources/QuranNumberStorage.swift b/Model/QuranKit/Sources/QuranValueStorage.swift similarity index 100% rename from Model/QuranKit/Sources/QuranNumberStorage.swift rename to Model/QuranKit/Sources/QuranValueStorage.swift diff --git a/UI/NoorUI/Features/AdvancedAudioOptions/AdvancedAudioUI.swift b/UI/NoorUI/Features/AdvancedAudioOptions/AdvancedAudioUI.swift index 352431e7..ae515729 100644 --- a/UI/NoorUI/Features/AdvancedAudioOptions/AdvancedAudioUI.swift +++ b/UI/NoorUI/Features/AdvancedAudioOptions/AdvancedAudioUI.swift @@ -1,5 +1,5 @@ // -// AdvancedAudioViewModel.swift +// AdvancedAudioUI.swift // Quran // // Created by Afifi, Mohamed on 12/26/20. diff --git a/UI/NoorUI/Features/MoreMenu/MoreMenuView.swift b/UI/NoorUI/Features/MoreMenu/MoreMenuView.swift index 72296499..79db85f3 100644 --- a/UI/NoorUI/Features/MoreMenu/MoreMenuView.swift +++ b/UI/NoorUI/Features/MoreMenu/MoreMenuView.swift @@ -1,5 +1,5 @@ // -// MoreMenuLandingView.swift +// MoreMenuView.swift // // // Created by Afifi, Mohamed on 9/5/21. diff --git a/UI/NoorUI/Features/MoreMenu/components/MoreMenuWordPointerType.swift b/UI/NoorUI/Features/MoreMenu/components/MoreMenuWordPointerType.swift index 3fff4b44..e8c9262b 100644 --- a/UI/NoorUI/Features/MoreMenu/components/MoreMenuWordPointerType.swift +++ b/UI/NoorUI/Features/MoreMenu/components/MoreMenuWordPointerType.swift @@ -1,5 +1,5 @@ // -// SwiftUIView.swift +// MoreMenuWordPointerType.swift // // // Created by Afifi, Mohamed on 9/5/21. diff --git a/UI/NoorUI/Features/Note/NoteEditorView.swift b/UI/NoorUI/Features/Note/NoteEditorView.swift index 2b692f58..790e9a52 100644 --- a/UI/NoorUI/Features/Note/NoteEditorView.swift +++ b/UI/NoorUI/Features/Note/NoteEditorView.swift @@ -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) diff --git a/UI/NoorUI/Font/FontSize++.swift b/UI/NoorUI/Font/FontSize++.swift index b09eb57f..3547af2c 100644 --- a/UI/NoorUI/Font/FontSize++.swift +++ b/UI/NoorUI/Font/FontSize++.swift @@ -1,5 +1,5 @@ // -// FontSize+++.swift +// FontSize++.swift // Quran // // Created by Mohamed Afifi on 5/2/18. diff --git a/UI/ViewConstrainer/UIView+Const.swift b/UI/ViewConstrainer/UIView+Const.swift index 641ac466..1bcea0d1 100644 --- a/UI/ViewConstrainer/UIView+Const.swift +++ b/UI/ViewConstrainer/UIView+Const.swift @@ -1,5 +1,5 @@ // -// UIView+VC.swift +// UIView+Const.swift // Quran // // Created by Mohamed Afifi on 10/21/17.