Skip to content

Commit 7c9def5

Browse files
committed
chore(*): lint files
1 parent 2173bf7 commit 7c9def5

7 files changed

+16
-16
lines changed

Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let package = Package(
77
name: "taza",
88
dependencies: [
99
.package(url: "https://github.com/JohnSundell/Files", from: "4.0.0"),
10-
.package(url: "https://github.com/mtynior/ColorizeSwift.git", from: "1.5.0"),
10+
.package(url: "https://github.com/mtynior/ColorizeSwift.git", from: "1.5.0")
1111
],
1212
targets: [
1313
.target(

Sources/taza/Finder/Finder.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ struct Finder {
1212
// MARK: - Public properties
1313
var unusedResourcesInSearchableFiles: [Resource] {
1414
var usedResources = [Resource]()
15-
15+
1616
for file in searchableFiles {
1717
for resource in resources {
1818
if file.hasResource(resource) {
1919
usedResources.append(resource)
20-
20+
2121
continue
2222
}
2323
}

Sources/taza/SearchableFile/SearchableFile.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ struct SearchableFile: Searchable {
1111
let content: String
1212
let type: SearchableFileType
1313
let strategy: SearchStrategy
14-
14+
1515
private init(type: SearchableFileType, content: String) {
1616
self.type = type
1717
self.content = content
@@ -34,7 +34,7 @@ struct SearchableFile: Searchable {
3434
return nil
3535
}
3636
}
37-
37+
3838
func hasResource(_ resource: Resource) -> Bool {
3939
strategy.hasResource(resource)
4040
}

Sources/taza/Strategy/Strategies/IBSearchStrategy.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ import Foundation
99

1010
struct IBSearchStrategy: SearchStrategy {
1111
var content: String
12-
12+
1313
init(with content: String) {
1414
self.content = content
1515
}
16-
16+
1717
func hasResource(_ resource: Resource) -> Bool {
1818
contentContains(resource.nameExcludingExtension) || contentContains(resource.name)
1919
}
20-
20+
2121
private func contentContains(_ text: String) -> Bool {
2222
content.contains("image=\"" + text + "\"")
2323
}

Sources/taza/Strategy/Strategies/ObjectiveCSearchStrategy.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ import Foundation
99

1010
struct ObjectiveCSearchStrategy: SearchStrategy {
1111
var content: String
12-
12+
1313
init(with content: String) {
1414
self.content = content
1515
}
16-
16+
1717
func hasResource(_ resource: Resource) -> Bool {
1818
contentContains(resource.nameExcludingExtension) || contentContains(resource.name)
1919
}
20-
20+
2121
private func contentContains(_ text: String) -> Bool {
2222
content.contains("[UIImage imageNamed:@\"" + text + "\"]")
2323
}

Sources/taza/Strategy/Strategies/SwiftSearchStrategy.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ import Foundation
99

1010
struct SwiftSearchStrategy: SearchStrategy {
1111
var content: String
12-
12+
1313
init(with content: String) {
1414
self.content = content
1515
}
16-
16+
1717
func hasResource(_ resource: Resource) -> Bool {
1818
contentContains(resource.nameExcludingExtension) || contentContains(resource.name)
1919
}
20-
20+
2121
private func contentContains(_ text: String) -> Bool {
2222
content.contains("UIImage(named: \"" + text + "\")")
2323
}

Sources/taza/Strategy/StrategyFactory.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import Foundation
99

1010
struct StrategyFactory {
1111
static let shared = StrategyFactory()
12-
12+
1313
private init() {}
14-
14+
1515
func strategy(type: SearchableFileType, content: String) -> SearchStrategy {
1616
switch type {
1717
case .m:

0 commit comments

Comments
 (0)