Skip to content

Commit f1d5683

Browse files
authored
Update SwiftLint file_header configuration (#213)
1 parent aead153 commit f1d5683

File tree

2 files changed

+7
-25
lines changed

2 files changed

+7
-25
lines changed

.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/Test/InitializationTests.swift

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
// Copyright 2019-2024 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
@testable import MobiusCore

0 commit comments

Comments
 (0)