Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit fa7308f

Browse files
committed
Fixed swiftlint issues
1 parent f7568b6 commit fa7308f

File tree

3 files changed

+25
-30
lines changed

3 files changed

+25
-30
lines changed

.swiftlint.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ reporter: "xcode"
22

33
included:
44
- ../Sources/
5+
- Example/Tests/
56

67
disabled_rules:
78
- cyclomatic_complexity
89
- identifier_name
10+
- file_length
911
- line_length
1012
- nesting
1113
- unused_optional_binding
12-
13-
# Specialized Rules
14-
file_length:
15-
- 500

Example/Example/Supporting Files/ViewController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ class ViewController: UIViewController {
2121
}
2222

2323
}
24-

Example/Tests/SirenTests.swift

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ final class SirenTests: XCTestCase {
1818
// MARK: - API
1919

2020
extension SirenTests {
21-
2221
func testAPIDefaultsToUnitedStatesAppStore() {
2322
XCTAssertEqual(siren.apiManager.country, AppStoreCountry.unitedStates)
2423
}
25-
2624
}
2725

2826
// MARK: - Updates
@@ -353,19 +351,19 @@ extension SirenTests {
353351
// Update
354352
XCTAssertEqual(Bundle.localizedString(forKey: "Update", andForceLocalization: language), "Update")
355353
}
356-
354+
357355
func testGreekLocalization() {
358356
let language: Localization.Language = .greek
359357

360358
// Update Available
361359
XCTAssertEqual(Bundle.localizedString(forKey: "Update Available", andForceLocalization: language), "Διαθέσιμη Ενημέρωση")
362-
360+
363361
// Next time
364362
XCTAssertEqual(Bundle.localizedString(forKey: "Next time", andForceLocalization: language), "Άλλη φορά")
365-
363+
366364
// Skip this version
367365
XCTAssertEqual(Bundle.localizedString(forKey: "Skip this version", andForceLocalization: language), "Αγνόησε αυτήν την έκδοση")
368-
366+
369367
// Update
370368
XCTAssertEqual(Bundle.localizedString(forKey: "Update", andForceLocalization: language), "Αναβάθμιση")
371369
}
@@ -535,49 +533,49 @@ extension SirenTests {
535533

536534
// Update Available
537535
XCTAssertEqual(Bundle.localizedString(forKey: "Update Available", andForceLocalization: language), "بروزرسانی در دسترس")
538-
536+
539537
// Next time
540538
XCTAssertEqual(Bundle.localizedString(forKey: "Next time", andForceLocalization: language), "دفعه بعد")
541-
539+
542540
// Skip this version
543541
XCTAssertEqual(Bundle.localizedString(forKey: "Skip this version", andForceLocalization: language), "رد این نسخه")
544-
542+
545543
// Update
546544
XCTAssertEqual(Bundle.localizedString(forKey: "Update", andForceLocalization: language), "بروزرسانی")
547545
}
548-
546+
549547
func testPersianAfghanistanLocalization() {
550548
let language: Localization.Language = .persianAfghanistan
551-
549+
552550
// Update Available
553551
XCTAssertEqual(Bundle.localizedString(forKey: "Update Available", andForceLocalization: language), "بروزرسانی در دسترس")
554-
552+
555553
// Next time
556554
XCTAssertEqual(Bundle.localizedString(forKey: "Next time", andForceLocalization: language), "دگر بار")
557-
555+
558556
// Skip this version
559557
XCTAssertEqual(Bundle.localizedString(forKey: "Skip this version", andForceLocalization: language), "رد این نسخه")
560-
558+
561559
// Update
562560
XCTAssertEqual(Bundle.localizedString(forKey: "Update", andForceLocalization: language), "بروزرسانی")
563561
}
564-
562+
565563
func testPersianIranLocalization() {
566564
let language: Localization.Language = .persianIran
567565

568566
// Update Available
569567
XCTAssertEqual(Bundle.localizedString(forKey: "Update Available", andForceLocalization: language), "بروزرسانی در دسترس")
570-
568+
571569
// Next time
572570
XCTAssertEqual(Bundle.localizedString(forKey: "Next time", andForceLocalization: language), "دفعه بعد")
573-
571+
574572
// Skip this version
575573
XCTAssertEqual(Bundle.localizedString(forKey: "Skip this version", andForceLocalization: language), "رد این نسخه")
576-
574+
577575
// Update
578576
XCTAssertEqual(Bundle.localizedString(forKey: "Update", andForceLocalization: language), "بروزرسانی")
579577
}
580-
578+
581579
func testPolishLocalization() {
582580
let language: Localization.Language = .polish
583581

@@ -775,17 +773,17 @@ extension SirenTests {
775773

776774
// Update Available
777775
XCTAssertEqual(Bundle.localizedString(forKey: "Update Available", andForceLocalization: language), "Доступне Оновлення")
778-
776+
779777
// Next time
780778
XCTAssertEqual(Bundle.localizedString(forKey: "Next time", andForceLocalization: language), "Наступного разу")
781-
779+
782780
// Skip this version
783781
XCTAssertEqual(Bundle.localizedString(forKey: "Skip this version", andForceLocalization: language), "Пропустити версію")
784-
782+
785783
// Update
786784
XCTAssertEqual(Bundle.localizedString(forKey: "Update", andForceLocalization: language), "Оновити")
787785
}
788-
786+
789787
func testUrduLocalization() {
790788
let language: Localization.Language = .urdu
791789

@@ -801,7 +799,7 @@ extension SirenTests {
801799
// Update
802800
XCTAssertEqual(Bundle.localizedString(forKey: "Update", andForceLocalization: language), "اپڈیٹ کریں")
803801
}
804-
802+
805803
func testVietnameseLocalization() {
806804
let language: Localization.Language = .vietnamese
807805

@@ -817,5 +815,5 @@ extension SirenTests {
817815
// Update
818816
XCTAssertEqual(Bundle.localizedString(forKey: "Update", andForceLocalization: language), "Cập nhật")
819817
}
820-
818+
821819
}

0 commit comments

Comments
 (0)