Skip to content

Commit 784bbe3

Browse files
Add license and update copyright (#11)
* Add license and update copyright * Escape parentheses
1 parent 7a9cc2e commit 784bbe3

File tree

8 files changed

+91
-6
lines changed

8 files changed

+91
-6
lines changed

.swiftlint.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ empty_count:
1010
file_header:
1111
required_pattern: |
1212
\/\/
13-
\/\/ {2}Copyright © \d{4} Tinder \(Match Group, LLC\)
13+
\/\/ {2}All Contributions by Match Group
14+
\/\/
15+
\/\/ {2}Copyright © \d{4}(-\d{4})? Tinder \(Match Group, LLC\)
16+
\/\/
17+
\/\/ {2}Licensed under the Match Group Modified 3-Clause BSD License.
18+
\/\/ {2}See https://github.com/Tinder/CollectionBuilders/blob/main/LICENSE for license information.
1419
\/\/
1520
1621
private_over_fileprivate:

LICENSE

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
Modified 3-Clause BSD License
2+
3+
Copyright © 2025 Match Group, LLC
4+
5+
This license is based on the 3-Clause BSD license, modified for
6+
clarity and to add the following requirements: Modifications must
7+
be identified in any redistributions, any implied warranty of non
8+
infringement is disclaimed, implied licenses are disclaimed, and you
9+
agree that you are responsible for any claims that may arise out of
10+
your use of the software.
11+
12+
The copyright holder grants you permission to and use or redistribute
13+
this software in source and binary forms, with or without modification,
14+
conditioned on your acceptance of, and adherence to, the following
15+
conditions:
16+
17+
1. Redistributions of source code, whether or not modified, must
18+
retain the above copyright notice, this list of conditions, and the
19+
following disclaimer. If modified, the source code must identify
20+
the modifications (identification in general terms is acceptable).
21+
22+
2. Redistributions in binary or application form must reproduce the
23+
above copyright notice, this list of conditions, and the following
24+
disclaimer in the documentation or other materials provided with
25+
the binary or application.
26+
27+
3. You may not use the name of the copyright holder nor the names of
28+
the contributors to endorse or promote products derived from this
29+
software without specific prior written permission.
30+
31+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32+
"AS IS" AND ALL EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
34+
PARTICULAR PURPOSE, AND NON INFRINGEMENT ARE DISCLAIMED. IN NO EVENT
35+
SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
36+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
37+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
38+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
39+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
40+
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
41+
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
42+
POSSIBILITY OF SUCH DAMAGE. YOU AGREE TO INDEMNIFY AND HOLD HARMLESS
43+
THE COPYRIGHT HOLDER AND ALL CONTRIBUTORS AGAINST ANY CLAIMS THAT
44+
ARISE BASED ON YOUR USE, MODIFICATION, OR REDISTRIBUTION OF THIS
45+
SOFTWARE. NO ADDITIONAL LICENSE BEYOND THOSE EXPRESSLY GRANTED ABOVE
46+
ARE IMPLIED.

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fix:
1010
@/usr/libexec/PlistBuddy -c \
1111
"Delete :FILEHEADER" \
1212
"$(XCSHAREDDATA)/IDETemplateMacros.plist" >/dev/null 2>&1 || true
13-
@header=$$'\n// Copyright © ___YEAR___ Tinder \(Match Group, LLC\)\n//'; \
13+
@header=$$'\n// All Contributions by Match Group\n//\n// Copyright © ___YEAR___ Tinder \(Match Group, LLC\)\n//\n// Licensed under the Match Group Modified 3-Clause BSD License.\n// See https://github.com/Tinder/CollectionBuilders/blob/main/LICENSE for license information.\n//'; \
1414
/usr/libexec/PlistBuddy -c \
1515
"Add :FILEHEADER string $$header" \
1616
"$(XCSHAREDDATA)/IDETemplateMacros.plist" >/dev/null 2>&1

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,17 @@ cancellables.insert {
112112
publisherB.assign(to: \.keyPath, on: object)
113113
}
114114
```
115+
116+
## Contributing
117+
118+
While interest in contributing to this project is appreciated, it has been open
119+
sourced solely for the purpose of sharing with the community. This means we are
120+
unable to accept outside contributions at this time and pull requests will not
121+
be reviewed or merged. To report a security concern or vulnerability, please
122+
submit a GitHub issue.
123+
124+
## License
125+
126+
Licensed under the [Match Group Modified 3-Clause BSD License](
127+
https://github.com/Tinder/CollectionBuilders/blob/main/LICENSE
128+
).

Sources/CollectionBuilders/Array.swift

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
//
2-
// Copyright © 2023 Tinder (Match Group, LLC)
2+
// All Contributions by Match Group
3+
//
4+
// Copyright © 2025 Tinder (Match Group, LLC)
5+
//
6+
// Licensed under the Match Group Modified 3-Clause BSD License.
7+
// See https://github.com/Tinder/CollectionBuilders/blob/main/LICENSE for license information.
38
//
49

510
extension Array {

Sources/CollectionBuilders/Set.swift

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
//
2-
// Copyright © 2023 Tinder (Match Group, LLC)
2+
// All Contributions by Match Group
3+
//
4+
// Copyright © 2025 Tinder (Match Group, LLC)
5+
//
6+
// Licensed under the Match Group Modified 3-Clause BSD License.
7+
// See https://github.com/Tinder/CollectionBuilders/blob/main/LICENSE for license information.
38
//
49

510
extension Set {

Tests/CollectionBuildersTests/ArrayTests.swift

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
//
2-
// Copyright © 2023 Tinder (Match Group, LLC)
2+
// All Contributions by Match Group
3+
//
4+
// Copyright © 2025 Tinder (Match Group, LLC)
5+
//
6+
// Licensed under the Match Group Modified 3-Clause BSD License.
7+
// See https://github.com/Tinder/CollectionBuilders/blob/main/LICENSE for license information.
38
//
49

510
import CollectionBuilders

Tests/CollectionBuildersTests/SetTests.swift

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
//
2-
// Copyright © 2023 Tinder (Match Group, LLC)
2+
// All Contributions by Match Group
3+
//
4+
// Copyright © 2025 Tinder (Match Group, LLC)
5+
//
6+
// Licensed under the Match Group Modified 3-Clause BSD License.
7+
// See https://github.com/Tinder/CollectionBuilders/blob/main/LICENSE for license information.
38
//
49

510
import CollectionBuilders

0 commit comments

Comments
 (0)