Skip to content

Commit 9927591

Browse files
authored
Merge branch 'master' into add-EmptyDisposable
2 parents 149d395 + 999fc2d commit 9927591

File tree

95 files changed

+698
-1275
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+698
-1275
lines changed

.swiftformat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
--exponentcase lowercase
1010
--exponentgrouping disabled
1111
--fractiongrouping enabled
12-
--header "// Copyright (c) 2019 Spotify AB.\n//\n// Licensed to the Apache Software Foundation (ASF) under one\n// or more contributor license agreements. See the NOTICE file\n// distributed with this work for additional information\n// regarding copyright ownership. The ASF licenses this file\n// to you under the Apache License, Version 2.0 (the\n// \"License\"); you may not use this file except in compliance\n// with the License. You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing,\n// software distributed under the License is distributed on an\n// \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n// KIND, either express or implied. See the License for the\n// specific language governing permissions and limitations\n// under the License."
12+
--header "// Copyright Spotify AB.\n// SPDX-License-Identifier: Apache-2.0"
1313
--hexgrouping none
1414
--hexliteralcase lowercase
1515
--ifdef noindent
@@ -34,4 +34,4 @@
3434
--symlinks ignore
3535

3636
# Excluded directories
37-
--exclude Carthage
37+
--exclude Carthage,MobiusTest/Source/SimpleDiff.swift,Templates

.swiftlint.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,10 @@ opt_in_rules:
5757

5858
excluded:
5959
- .build
60-
- build
61-
- Carthage
62-
- Other
6360
- Tools
6461
- Templates
62+
- Package.swift
63+
- MobiusTest/Source/SimpleDiff.swift
6564

6665
attributes:
6766
always_on_same_line:
@@ -73,15 +72,9 @@ empty_count:
7372
severity: warning
7473
fatal_error_message: warning
7574
file_header:
76-
severity: warning
77-
forbidden_pattern: |
78-
\/\/
79-
\/\/ .*?\..*
80-
\/\/ .*
81-
\/\/
82-
\/\/ Created by .*? on .*\.
83-
\/\/ Copyright © \d{4} .*\. All rights reserved\.
84-
\/\/
75+
required_pattern: |
76+
\/\/ Copyright Spotify AB.
77+
\/\/ SPDX-License-Identifier: Apache-2.0
8578
force_cast: warning
8679
force_try: warning
8780
implicit_getter: warning

MobiusCore/Source/AsyncDispatchQueueConnectable.swift

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
// Copyright 2019-2022 Spotify AB.
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
// Copyright Spotify AB.
2+
// SPDX-License-Identifier: Apache-2.0
143

154
import Foundation
165

MobiusCore/Source/AsyncStartStopStateMachine.swift

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
// Copyright 2019-2022 Spotify AB.
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
// Copyright Spotify AB.
2+
// SPDX-License-Identifier: Apache-2.0
143

154
import Foundation
165

MobiusCore/Source/ConcurrentAccessDetector.swift

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
// Copyright 2019-2022 Spotify AB.
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
// Copyright Spotify AB.
2+
// SPDX-License-Identifier: Apache-2.0
143

154
import Foundation
165

MobiusCore/Source/Connectable.swift

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
// Copyright 2019-2022 Spotify AB.
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
// Copyright Spotify AB.
2+
// SPDX-License-Identifier: Apache-2.0
143

154
import Foundation
165

MobiusCore/Source/ConnectablePublisher.swift

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
// Copyright 2019-2022 Spotify AB.
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
// Copyright Spotify AB.
2+
// SPDX-License-Identifier: Apache-2.0
143

154
import Foundation
165

MobiusCore/Source/Connection.swift

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
// Copyright 2019-2022 Spotify AB.
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
// Copyright Spotify AB.
2+
// SPDX-License-Identifier: Apache-2.0
143

154
import Foundation
165

MobiusCore/Source/Consumer.swift

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
// Copyright 2019-2022 Spotify AB.
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
// Copyright Spotify AB.
2+
// SPDX-License-Identifier: Apache-2.0
143

154
import Foundation
165

MobiusCore/Source/Disposables/AnonymousDisposable.swift

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
// Copyright 2019-2022 Spotify AB.
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
// Copyright Spotify AB.
2+
// SPDX-License-Identifier: Apache-2.0
143

154
import Foundation
165

0 commit comments

Comments
 (0)