Skip to content

Commit 3ee9088

Browse files
author
sgr-ksmt
committed
introdcue swiftlint.
1 parent e52c20f commit 3ee9088

17 files changed

+62
-18
lines changed

.swiftlint.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
disabled_rules:
2+
- colon
3+
- comma
4+
- control_statement
5+
- identifier_name
6+
- type_name
7+
- trailing_comma
8+
9+
opt_in_rules:
10+
- empty_count
11+
- anyobject_protocol
12+
- array_init
13+
- empty_string
14+
- weak_delegate
15+
- sorted_imports
16+
17+
excluded:
18+
- Carthage
19+
- Pods
20+
- vendor/bundle
21+
- FireSnapshotTests
22+
- FireSnapshot/Sources/FirebaseFirestoreSwift
23+
24+
force_cast: error
25+
26+
force_try:
27+
severity: error
28+
29+
line_length: 150
30+
31+
type_body_length:
32+
- 300
33+
- 400
34+
35+
function_body_length:
36+
- 200
37+
- 300
38+
39+
file_length:
40+
warning: 500
41+
error: 800
42+
43+
nesting:
44+
type_level: 3
45+
statement_level: 5

FireSnapshot/Sources/AtomicArray.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Copyright © Suguru Kishimoto. All rights reserved.
33
//
44

5-
import Foundation
65
import FirebaseFirestore
6+
import Foundation
77

88
@propertyWrapper
99
public struct AtomicArray<E>: Codable where E: Codable, E: Equatable {

FireSnapshot/Sources/Batch.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Copyright © Suguru Kishimoto. All rights reserved.
33
//
44

5-
import Foundation
65
import FirebaseFirestore
6+
import Foundation
77

88
public final class Batch {
99
enum SnapshotBag {

FireSnapshot/Sources/CollectionGroup.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Copyright © Suguru Kishimoto. All rights reserved.
33
//
44

5-
import Foundation
65
import FirebaseFirestore
6+
import Foundation
77

88
public class CollectionGroups {
99
fileprivate init() {

FireSnapshot/Sources/DeletableField.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Copyright © Suguru Kishimoto. All rights reserved.
33
//
44

5-
import Foundation
65
import FirebaseFirestore
6+
import Foundation
77

88
public struct DeletableField<T: Codable>: Codable {
99
@propertyWrapper

FireSnapshot/Sources/DocumentReference+.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Copyright © Suguru Kishimoto. All rights reserved.
33
//
44

5-
import Foundation
65
import FirebaseFirestore
6+
import Foundation
77

88
public extension DocumentReference {
99
static func dummy() -> DocumentReference {

FireSnapshot/Sources/DocumentTimestamps.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Foundation
66

77
public protocol HasTimestamps {}
88

9-
public enum SnapshotTimestampKey: String {
9+
public enum SnapshotTimestampKey: String {
1010
case createTime
1111
case updateTime
1212
}

FireSnapshot/Sources/IncrementableDouble.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Copyright © Suguru Kishimoto. All rights reserved.
33
//
44

5-
import Foundation
65
import FirebaseFirestore
6+
import Foundation
77

88
@propertyWrapper
99
public struct IncrementableDouble: IncrementableNumber {

FireSnapshot/Sources/IncrementableInt.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Copyright © Suguru Kishimoto. All rights reserved.
33
//
44

5-
import Foundation
65
import FirebaseFirestore
6+
import Foundation
77

88
@propertyWrapper
99
public struct IncrementableInt: IncrementableNumber {

FireSnapshot/Sources/IncrementableNumber.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Copyright © Suguru Kishimoto. All rights reserved.
33
//
44

5-
import Foundation
65
import FirebaseFirestore
6+
import Foundation
77

88
public protocol IncrementableNumber: Codable {
99
associatedtype Number: AdditiveArithmetic, Codable

0 commit comments

Comments
 (0)