Skip to content

Commit 6dc330c

Browse files
committed
Fix lint
1 parent 97632c7 commit 6dc330c

File tree

6 files changed

+26
-37
lines changed

6 files changed

+26
-37
lines changed

.overcommit.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

Rakefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ task(:setup) do
1212

1313
puts('➡️ SPM Resolve Dependencies')
1414
sh('swift package resolve')
15+
16+
puts('➡️ Installing git hooks')
17+
sh('swift run komondor install')
1518
end
1619

1720
task(:build) do

Sources/Mini/Mini.swift

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
/*
2-
Copyright [2019] [BQ]
2+
Copyright [2019] [BQ]
33

4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
77

8-
http://www.apache.org/licenses/LICENSE-2.0
8+
http://www.apache.org/licenses/LICENSE-2.0
99

10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
*/
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
1616

1717
#if canImport(MiniTask)
18-
@_exported import MiniTask
18+
@_exported import MiniTask
1919
#endif
2020

2121
#if canImport(MiniPromise)
22-
@_exported import MiniPromise
22+
@_exported import MiniPromise
2323
#endif

Sources/Mini/Utils/RxSwift/ObservableType+Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extension ObservableType {
3939
public func one() -> Observable<Element> {
4040
take(1)
4141
}
42-
42+
4343
public func skippingCurrent() -> Observable<Element> {
4444
skip(1)
4545
}

Tests/MiniSwiftTests/RxTests/ObservableTypeTests.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ final class ObservableTypeTests: XCTestCase {
5959
.completed(20),
6060
])
6161
}
62-
62+
6363
func test_skipping_next() {
6464
let skippingNextObserver = scheduler.createObserver(Int.self)
65-
65+
6666
scheduler.createColdObservable(
6767
[
6868
.next(10, 10),
@@ -74,9 +74,9 @@ final class ObservableTypeTests: XCTestCase {
7474
.skippingCurrent()
7575
.subscribe(skippingNextObserver)
7676
.disposed(by: disposeBag)
77-
77+
7878
scheduler.start()
79-
79+
8080
XCTAssertEqual(skippingNextObserver.events, [
8181
.next(20, 20),
8282
.next(30, 30),
@@ -149,7 +149,7 @@ final class ObservableTypeTests: XCTestCase {
149149
XCTAssertTrue(counter.isFulfilled)
150150
XCTAssertTrue(counter.value == 1)
151151
}
152-
152+
153153
func test_with_state_changes_standalone() throws {
154154
let dispatcher = Dispatcher()
155155
let store = Store<TestState, TestStoreController>(TestState(), dispatcher: dispatcher, storeController: TestStoreController(dispatcher: dispatcher))
@@ -159,13 +159,13 @@ final class ObservableTypeTests: XCTestCase {
159159
.disposed(by: disposeBag)
160160

161161
dispatcher.dispatch(SetCounterAction(counter: 1), mode: .sync)
162-
162+
163163
guard let counter = try store.withStateChanges(in: \.counter)
164164
.skippingCurrent()
165165
.toBlocking(timeout: 5.0).first() else {
166166
fatalError()
167167
}
168-
168+
169169
XCTAssertTrue(counter.isFulfilled)
170170
XCTAssertTrue(counter.value == 1)
171171
}

Tests/MiniSwiftTests/XCTestManifests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@
5757
("test_dispatch_action_from_store", test_dispatch_action_from_store),
5858
("test_dispatch_hashable_action_from_store", test_dispatch_hashable_action_from_store),
5959
("test_filter_one", test_filter_one),
60+
("test_skipping_next", test_skipping_next),
6061
("test_with_state_changes_promise", test_with_state_changes_promise),
62+
("test_with_state_changes_standalone", test_with_state_changes_standalone),
6163
]
6264
}
6365

0 commit comments

Comments
 (0)