From 384ac21d01387020899aa77fd535784042e12516 Mon Sep 17 00:00:00 2001 From: Konrad `ktoso` Malawski Date: Fri, 8 Nov 2024 13:24:59 +0900 Subject: [PATCH] license fixes --- .licenseignore | 2 + CONTRIBUTING.md | 2 +- Package.swift | 2 +- Sources/RESP3/RESP3Error.swift | 2 +- Sources/RESP3/RESP3Token.swift | 2 +- Sources/RESP3/RESP3TokenDecoder.swift | 2 +- Sources/RESP3/RESP3TypeIdentifier.swift | 2 +- .../ChannelHandlers/RedisByteDecoder.swift | 2 +- .../ChannelHandlers/RedisCommandHandler.swift | 2 +- .../ChannelHandlers/RedisMessageEncoder.swift | 2 +- .../ChannelHandlers/RedisPubSubHandler.swift | 2 +- .../RedisClusterNodeDescriptionProtocol.swift | 2 +- .../Cluster/RedisClusterNodeID.swift | 2 +- ...RedisClusterShardDescriptionProtocol.swift | 2 +- Sources/RediStack/Cluster/RedisHashSlot.swift | 2 +- Sources/RediStack/Cluster/SwiftPolyfill.swift | 2 +- .../RediStack/Commands/BasicCommands.swift | 2 +- Sources/RediStack/Commands/HashCommands.swift | 2 +- Sources/RediStack/Commands/ListCommands.swift | 2 +- .../RediStack/Commands/PubSubCommands.swift | 2 +- Sources/RediStack/Commands/SetCommands.swift | 2 +- .../Commands/SortedSetCommands.swift | 2 +- .../RediStack/Commands/StringCommands.swift | 2 +- .../ConnectionPool/ConnectionPool.swift | 2 +- .../RedisConnectionPool+Configuration.swift | 2 +- .../ConnectionPool/RedisConnectionPool.swift | 10 +- .../RedisConnectionPoolError.swift | 2 +- .../Extensions/StandardLibrary.swift | 2 +- Sources/RediStack/Extensions/SwiftNIO.swift | 2 +- Sources/RediStack/RESP/RESPTranslator.swift | 2 +- Sources/RediStack/RESP/RESPValue.swift | 2 +- .../RediStack/RESP/RESPValueConvertible.swift | 2 +- Sources/RediStack/RedisChannelName.swift | 2 +- Sources/RediStack/RedisClient.swift | 2 +- .../RedisCommandEncoder-multi-encode.swift | 2 +- Sources/RediStack/RedisCommandEncoder.swift | 2 +- .../RedisConnection+Configuration.swift | 2 +- Sources/RediStack/RedisConnection.swift | 2 +- Sources/RediStack/RedisError.swift | 2 +- Sources/RediStack/RedisKey+TTL.swift | 2 +- Sources/RediStack/RedisKey.swift | 2 +- Sources/RediStack/RedisLogging.swift | 2 +- Sources/RediStack/RedisMetrics.swift | 2 +- Sources/RediStack/_Deprecations.swift | 2 +- .../EmbeddedMockRedisServer.swift | 2 +- .../Extensions/General.swift | 2 +- .../Extensions/RediStack.swift | 2 +- ...disConnectionPoolIntegrationTestCase.swift | 2 +- .../RedisIntegrationTestCase.swift | 2 +- .../RediStackTestUtils/_Deprecations.swift | 2 +- Sources/RedisTypes/RedisSet.swift | 2 +- Tests/RESP3Tests/RESP3TokenTests.swift | 2 +- .../Commands/BasicCommandsTests.swift | 2 +- .../Commands/HashCommandsTests.swift | 2 +- .../Commands/ListCommandsTests.swift | 2 +- .../Commands/PubSubCommandsTests.swift | 2 +- .../Commands/SetCommandsTests.swift | 2 +- .../Commands/SortedSetCommandsTests.swift | 2 +- .../Commands/StringCommandsTests.swift | 2 +- .../RediStackIntegrationTestCase.swift | 2 +- .../RedisConnectionPoolTests.swift | 2 +- .../RedisConnectionTests.swift | 2 +- .../RedisLoggingTests.swift | 2 +- .../RedisByteDecoderTests.swift | 2 +- .../RedisCommandHandlerTests.swift | 2 +- .../RedisMessageEncoderTests.swift | 2 +- ...sClusterNodeDescriptionProtocolTests.swift | 2 +- Tests/RediStackTests/ConfigurationTests.swift | 2 +- .../RediStackTests/ConnectionPoolTests.swift | 2 +- .../Helpers/MockNodeDescription.swift | 2 +- .../Helpers/RedisErrorTests.swift | 2 +- .../RediStackTests/RESPTranslatorTests.swift | 2 +- Tests/RediStackTests/RESPValueTests.swift | 2 +- .../RedisCommandEncoderTests.swift | 2 +- .../RedisConnection+ConfigurationTests.swift | 2 +- .../RediStackTests/RedisConnectionTests.swift | 2 +- Tests/RediStackTests/RedisHashSlotTests.swift | 2 +- Tests/RediStackTests/RedisKeyLifetime.swift | 2 +- Tests/RedisTypesTests/RedisSetTests.swift | 2 +- .../RedisTypesIntegrationTestCase.swift | 2 +- check-license-header.sh | 104 ------------------ ...nerate_rediscommandencoder_multi_encode.sh | 2 +- 82 files changed, 86 insertions(+), 188 deletions(-) delete mode 100755 check-license-header.sh diff --git a/.licenseignore b/.licenseignore index 9b31b955..9d3d0aa4 100644 --- a/.licenseignore +++ b/.licenseignore @@ -34,3 +34,5 @@ Snippets/* dev/git.commit.template .unacceptablelanguageignore IntegrationTests/*.sh +scripts/generate_contributors_list.sh +scripts/generate_rediscommandencoder_multi_encode.sh \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c8944956..096d475f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -22,7 +22,7 @@ When adding a new file to the project, add the following heading to the top of t // // This source file is part of the RediStack open source project // -// Copyright (c) 2019-2020 RediStack project authors +// Copyright (c) 2019-2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Package.swift b/Package.swift index be812f8d..ce9ecb5a 100644 --- a/Package.swift +++ b/Package.swift @@ -3,7 +3,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019-2023 RediStack project authors +// Copyright (c) 2019-2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RESP3/RESP3Error.swift b/Sources/RESP3/RESP3Error.swift index e2a48d71..52b1f8dc 100644 --- a/Sources/RESP3/RESP3Error.swift +++ b/Sources/RESP3/RESP3Error.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2023 RediStack project authors +// Copyright (c) 2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RESP3/RESP3Token.swift b/Sources/RESP3/RESP3Token.swift index 4b26a7f5..4caa0f06 100644 --- a/Sources/RESP3/RESP3Token.swift +++ b/Sources/RESP3/RESP3Token.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2023 RediStack project authors +// Copyright (c) 2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RESP3/RESP3TokenDecoder.swift b/Sources/RESP3/RESP3TokenDecoder.swift index f3c03b26..73122dba 100644 --- a/Sources/RESP3/RESP3TokenDecoder.swift +++ b/Sources/RESP3/RESP3TokenDecoder.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2023 RediStack project authors +// Copyright (c) 2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RESP3/RESP3TypeIdentifier.swift b/Sources/RESP3/RESP3TypeIdentifier.swift index e4f00643..410ea4fe 100644 --- a/Sources/RESP3/RESP3TypeIdentifier.swift +++ b/Sources/RESP3/RESP3TypeIdentifier.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2023 RediStack project authors +// Copyright (c) 2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/ChannelHandlers/RedisByteDecoder.swift b/Sources/RediStack/ChannelHandlers/RedisByteDecoder.swift index 50e2b8f6..cebb11b5 100644 --- a/Sources/RediStack/ChannelHandlers/RedisByteDecoder.swift +++ b/Sources/RediStack/ChannelHandlers/RedisByteDecoder.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019-2022 RediStack project authors +// Copyright (c) 2019-2022 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/ChannelHandlers/RedisCommandHandler.swift b/Sources/RediStack/ChannelHandlers/RedisCommandHandler.swift index 9722bca3..50c77da7 100644 --- a/Sources/RediStack/ChannelHandlers/RedisCommandHandler.swift +++ b/Sources/RediStack/ChannelHandlers/RedisCommandHandler.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019-2020 RediStack project authors +// Copyright (c) 2019-2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/ChannelHandlers/RedisMessageEncoder.swift b/Sources/RediStack/ChannelHandlers/RedisMessageEncoder.swift index d91eee53..d0f01ab4 100644 --- a/Sources/RediStack/ChannelHandlers/RedisMessageEncoder.swift +++ b/Sources/RediStack/ChannelHandlers/RedisMessageEncoder.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/ChannelHandlers/RedisPubSubHandler.swift b/Sources/RediStack/ChannelHandlers/RedisPubSubHandler.swift index ac8837b5..f27044b8 100644 --- a/Sources/RediStack/ChannelHandlers/RedisPubSubHandler.swift +++ b/Sources/RediStack/ChannelHandlers/RedisPubSubHandler.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020 RediStack project authors +// Copyright (c) 2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/Cluster/RedisClusterNodeDescriptionProtocol.swift b/Sources/RediStack/Cluster/RedisClusterNodeDescriptionProtocol.swift index 126a040e..e7f5ea9a 100644 --- a/Sources/RediStack/Cluster/RedisClusterNodeDescriptionProtocol.swift +++ b/Sources/RediStack/Cluster/RedisClusterNodeDescriptionProtocol.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2023 RediStack project authors +// Copyright (c) 2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/Cluster/RedisClusterNodeID.swift b/Sources/RediStack/Cluster/RedisClusterNodeID.swift index a88df0fa..09a1cf01 100644 --- a/Sources/RediStack/Cluster/RedisClusterNodeID.swift +++ b/Sources/RediStack/Cluster/RedisClusterNodeID.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2023 RediStack project authors +// Copyright (c) 2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/Cluster/RedisClusterShardDescriptionProtocol.swift b/Sources/RediStack/Cluster/RedisClusterShardDescriptionProtocol.swift index afecb1d8..f85e2068 100644 --- a/Sources/RediStack/Cluster/RedisClusterShardDescriptionProtocol.swift +++ b/Sources/RediStack/Cluster/RedisClusterShardDescriptionProtocol.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2023 RediStack project authors +// Copyright (c) 2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/Cluster/RedisHashSlot.swift b/Sources/RediStack/Cluster/RedisHashSlot.swift index 1f474bc1..4064ad71 100644 --- a/Sources/RediStack/Cluster/RedisHashSlot.swift +++ b/Sources/RediStack/Cluster/RedisHashSlot.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2023 RediStack project authors +// Copyright (c) 2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/Cluster/SwiftPolyfill.swift b/Sources/RediStack/Cluster/SwiftPolyfill.swift index 970e885d..4d74eee3 100644 --- a/Sources/RediStack/Cluster/SwiftPolyfill.swift +++ b/Sources/RediStack/Cluster/SwiftPolyfill.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2023 RediStack project authors +// Copyright (c) 2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/Commands/BasicCommands.swift b/Sources/RediStack/Commands/BasicCommands.swift index 381af1ef..357e3ce3 100644 --- a/Sources/RediStack/Commands/BasicCommands.swift +++ b/Sources/RediStack/Commands/BasicCommands.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019-2020 RediStack project authors +// Copyright (c) 2019-2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/Commands/HashCommands.swift b/Sources/RediStack/Commands/HashCommands.swift index 5027a241..43e80617 100644 --- a/Sources/RediStack/Commands/HashCommands.swift +++ b/Sources/RediStack/Commands/HashCommands.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/Commands/ListCommands.swift b/Sources/RediStack/Commands/ListCommands.swift index b2f2b80e..6af52eb6 100644 --- a/Sources/RediStack/Commands/ListCommands.swift +++ b/Sources/RediStack/Commands/ListCommands.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/Commands/PubSubCommands.swift b/Sources/RediStack/Commands/PubSubCommands.swift index be8395ec..c4c84482 100644 --- a/Sources/RediStack/Commands/PubSubCommands.swift +++ b/Sources/RediStack/Commands/PubSubCommands.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020 RediStack project authors +// Copyright (c) 2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/Commands/SetCommands.swift b/Sources/RediStack/Commands/SetCommands.swift index 1341bde9..34c4ec07 100644 --- a/Sources/RediStack/Commands/SetCommands.swift +++ b/Sources/RediStack/Commands/SetCommands.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/Commands/SortedSetCommands.swift b/Sources/RediStack/Commands/SortedSetCommands.swift index a00df1ea..e53b0a63 100644 --- a/Sources/RediStack/Commands/SortedSetCommands.swift +++ b/Sources/RediStack/Commands/SortedSetCommands.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019-2022 RediStack project authors +// Copyright (c) 2019-2022 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/Commands/StringCommands.swift b/Sources/RediStack/Commands/StringCommands.swift index 7c812f59..692524ec 100644 --- a/Sources/RediStack/Commands/StringCommands.swift +++ b/Sources/RediStack/Commands/StringCommands.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/ConnectionPool/ConnectionPool.swift b/Sources/RediStack/ConnectionPool/ConnectionPool.swift index bbe8296a..5539d721 100644 --- a/Sources/RediStack/ConnectionPool/ConnectionPool.swift +++ b/Sources/RediStack/ConnectionPool/ConnectionPool.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020-2023 RediStack project authors +// Copyright (c) 2020-2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/ConnectionPool/RedisConnectionPool+Configuration.swift b/Sources/RediStack/ConnectionPool/RedisConnectionPool+Configuration.swift index 6e827845..5a666554 100644 --- a/Sources/RediStack/ConnectionPool/RedisConnectionPool+Configuration.swift +++ b/Sources/RediStack/ConnectionPool/RedisConnectionPool+Configuration.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020-2023 RediStack project authors +// Copyright (c) 2020-2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/ConnectionPool/RedisConnectionPool.swift b/Sources/RediStack/ConnectionPool/RedisConnectionPool.swift index c6af2e5d..6c18e774 100644 --- a/Sources/RediStack/ConnectionPool/RedisConnectionPool.swift +++ b/Sources/RediStack/ConnectionPool/RedisConnectionPool.swift @@ -1,12 +1,8 @@ -import Logging -import NIOConcurrencyHelpers -import NIOCore - //===----------------------------------------------------------------------===// // // This source file is part of the RediStack open source project // -// Copyright (c) 2020-2023 RediStack project authors +// Copyright (c) 2020-2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -15,6 +11,10 @@ import NIOCore // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// + +import Logging +import NIOConcurrencyHelpers +import NIOCore import struct Foundation.UUID /// A `RedisConnectionPool` is an implementation of `RedisClient` backed by a pool of connections to Redis, diff --git a/Sources/RediStack/ConnectionPool/RedisConnectionPoolError.swift b/Sources/RediStack/ConnectionPool/RedisConnectionPoolError.swift index f3e5c8f6..f675b074 100644 --- a/Sources/RediStack/ConnectionPool/RedisConnectionPoolError.swift +++ b/Sources/RediStack/ConnectionPool/RedisConnectionPoolError.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020-2023 RediStack project authors +// Copyright (c) 2020-2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/Extensions/StandardLibrary.swift b/Sources/RediStack/Extensions/StandardLibrary.swift index 9eb2fabc..dfbeb89e 100644 --- a/Sources/RediStack/Extensions/StandardLibrary.swift +++ b/Sources/RediStack/Extensions/StandardLibrary.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/Extensions/SwiftNIO.swift b/Sources/RediStack/Extensions/SwiftNIO.swift index d209f134..68e63635 100644 --- a/Sources/RediStack/Extensions/SwiftNIO.swift +++ b/Sources/RediStack/Extensions/SwiftNIO.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019-2022 RediStack project authors +// Copyright (c) 2019-2022 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/RESP/RESPTranslator.swift b/Sources/RediStack/RESP/RESPTranslator.swift index a95716db..9298857e 100644 --- a/Sources/RediStack/RESP/RESPTranslator.swift +++ b/Sources/RediStack/RESP/RESPTranslator.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/RESP/RESPValue.swift b/Sources/RediStack/RESP/RESPValue.swift index c07dcdf6..3e3742d1 100644 --- a/Sources/RediStack/RESP/RESPValue.swift +++ b/Sources/RediStack/RESP/RESPValue.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/RESP/RESPValueConvertible.swift b/Sources/RediStack/RESP/RESPValueConvertible.swift index 8c9f7722..5660ece3 100644 --- a/Sources/RediStack/RESP/RESPValueConvertible.swift +++ b/Sources/RediStack/RESP/RESPValueConvertible.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/RedisChannelName.swift b/Sources/RediStack/RedisChannelName.swift index f6750fd7..2f6ba815 100644 --- a/Sources/RediStack/RedisChannelName.swift +++ b/Sources/RediStack/RedisChannelName.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020 RediStack project authors +// Copyright (c) 2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/RedisClient.swift b/Sources/RediStack/RedisClient.swift index 237efc7a..f8a9c064 100644 --- a/Sources/RediStack/RedisClient.swift +++ b/Sources/RediStack/RedisClient.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019-2020 RediStack project authors +// Copyright (c) 2019-2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/RedisCommandEncoder-multi-encode.swift b/Sources/RediStack/RedisCommandEncoder-multi-encode.swift index ddba2ef2..6a68f22e 100644 --- a/Sources/RediStack/RedisCommandEncoder-multi-encode.swift +++ b/Sources/RediStack/RedisCommandEncoder-multi-encode.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2023 RediStack project authors +// Copyright (c) 2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/RedisCommandEncoder.swift b/Sources/RediStack/RedisCommandEncoder.swift index b45fe0d2..3ddf4f03 100644 --- a/Sources/RediStack/RedisCommandEncoder.swift +++ b/Sources/RediStack/RedisCommandEncoder.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2023 RediStack project authors +// Copyright (c) 2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/RedisConnection+Configuration.swift b/Sources/RediStack/RedisConnection+Configuration.swift index 1f104e3c..3f1a6b12 100644 --- a/Sources/RediStack/RedisConnection+Configuration.swift +++ b/Sources/RediStack/RedisConnection+Configuration.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020-2023 RediStack project authors +// Copyright (c) 2020-2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/RedisConnection.swift b/Sources/RediStack/RedisConnection.swift index 019582a9..6d37534f 100644 --- a/Sources/RediStack/RedisConnection.swift +++ b/Sources/RediStack/RedisConnection.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019-2023 RediStack project authors +// Copyright (c) 2019-2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/RedisError.swift b/Sources/RediStack/RedisError.swift index 80667458..12a61244 100644 --- a/Sources/RediStack/RedisError.swift +++ b/Sources/RediStack/RedisError.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/RedisKey+TTL.swift b/Sources/RediStack/RedisKey+TTL.swift index 79bfefd5..ab798f02 100644 --- a/Sources/RediStack/RedisKey+TTL.swift +++ b/Sources/RediStack/RedisKey+TTL.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020 RediStack project authors +// Copyright (c) 2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/RedisKey.swift b/Sources/RediStack/RedisKey.swift index e2ad0c86..de29a6ab 100644 --- a/Sources/RediStack/RedisKey.swift +++ b/Sources/RediStack/RedisKey.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/RedisLogging.swift b/Sources/RediStack/RedisLogging.swift index 2eaac8af..bc8ce301 100644 --- a/Sources/RediStack/RedisLogging.swift +++ b/Sources/RediStack/RedisLogging.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020-2023 RediStack project authors +// Copyright (c) 2020-2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/RedisMetrics.swift b/Sources/RediStack/RedisMetrics.swift index df0f3f79..9ec6394f 100644 --- a/Sources/RediStack/RedisMetrics.swift +++ b/Sources/RediStack/RedisMetrics.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019-2020 RediStack project authors +// Copyright (c) 2019-2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStack/_Deprecations.swift b/Sources/RediStack/_Deprecations.swift index 40c9ef10..f6de814f 100644 --- a/Sources/RediStack/_Deprecations.swift +++ b/Sources/RediStack/_Deprecations.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020-2022 RediStack project authors +// Copyright (c) 2020-2022 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStackTestUtils/EmbeddedMockRedisServer.swift b/Sources/RediStackTestUtils/EmbeddedMockRedisServer.swift index 3a32926a..58fd6eaf 100644 --- a/Sources/RediStackTestUtils/EmbeddedMockRedisServer.swift +++ b/Sources/RediStackTestUtils/EmbeddedMockRedisServer.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020 RediStack project authors +// Copyright (c) 2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStackTestUtils/Extensions/General.swift b/Sources/RediStackTestUtils/Extensions/General.swift index ca24a624..a9f172ae 100644 --- a/Sources/RediStackTestUtils/Extensions/General.swift +++ b/Sources/RediStackTestUtils/Extensions/General.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStackTestUtils/Extensions/RediStack.swift b/Sources/RediStackTestUtils/Extensions/RediStack.swift index dad09cb1..fef5bac6 100644 --- a/Sources/RediStackTestUtils/Extensions/RediStack.swift +++ b/Sources/RediStackTestUtils/Extensions/RediStack.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019-2020 RediStack project authors +// Copyright (c) 2019-2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStackTestUtils/RedisConnectionPoolIntegrationTestCase.swift b/Sources/RediStackTestUtils/RedisConnectionPoolIntegrationTestCase.swift index e7b75ac3..a82e7a41 100644 --- a/Sources/RediStackTestUtils/RedisConnectionPoolIntegrationTestCase.swift +++ b/Sources/RediStackTestUtils/RedisConnectionPoolIntegrationTestCase.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020 RediStack project authors +// Copyright (c) 2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStackTestUtils/RedisIntegrationTestCase.swift b/Sources/RediStackTestUtils/RedisIntegrationTestCase.swift index 1948cd2d..b3f0d984 100644 --- a/Sources/RediStackTestUtils/RedisIntegrationTestCase.swift +++ b/Sources/RediStackTestUtils/RedisIntegrationTestCase.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019-2020 RediStack project authors +// Copyright (c) 2019-2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RediStackTestUtils/_Deprecations.swift b/Sources/RediStackTestUtils/_Deprecations.swift index e50bc3e6..a7cd5cdb 100644 --- a/Sources/RediStackTestUtils/_Deprecations.swift +++ b/Sources/RediStackTestUtils/_Deprecations.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020 RediStack project authors +// Copyright (c) 2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/RedisTypes/RedisSet.swift b/Sources/RedisTypes/RedisSet.swift index aeca8fb5..da46a8a8 100644 --- a/Sources/RedisTypes/RedisSet.swift +++ b/Sources/RedisTypes/RedisSet.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020 RediStack project authors +// Copyright (c) 2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RESP3Tests/RESP3TokenTests.swift b/Tests/RESP3Tests/RESP3TokenTests.swift index a860e3bc..9b17419d 100644 --- a/Tests/RESP3Tests/RESP3TokenTests.swift +++ b/Tests/RESP3Tests/RESP3TokenTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2023 RediStack project authors +// Copyright (c) 2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackIntegrationTests/Commands/BasicCommandsTests.swift b/Tests/RediStackIntegrationTests/Commands/BasicCommandsTests.swift index 99ebd27e..6bedea50 100644 --- a/Tests/RediStackIntegrationTests/Commands/BasicCommandsTests.swift +++ b/Tests/RediStackIntegrationTests/Commands/BasicCommandsTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackIntegrationTests/Commands/HashCommandsTests.swift b/Tests/RediStackIntegrationTests/Commands/HashCommandsTests.swift index 3d3095ff..b9b2cfd7 100644 --- a/Tests/RediStackIntegrationTests/Commands/HashCommandsTests.swift +++ b/Tests/RediStackIntegrationTests/Commands/HashCommandsTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackIntegrationTests/Commands/ListCommandsTests.swift b/Tests/RediStackIntegrationTests/Commands/ListCommandsTests.swift index 5cec37e0..38e25f79 100644 --- a/Tests/RediStackIntegrationTests/Commands/ListCommandsTests.swift +++ b/Tests/RediStackIntegrationTests/Commands/ListCommandsTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackIntegrationTests/Commands/PubSubCommandsTests.swift b/Tests/RediStackIntegrationTests/Commands/PubSubCommandsTests.swift index 6f7a8feb..806a7165 100644 --- a/Tests/RediStackIntegrationTests/Commands/PubSubCommandsTests.swift +++ b/Tests/RediStackIntegrationTests/Commands/PubSubCommandsTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020-2022 RediStack project authors +// Copyright (c) 2020-2022 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackIntegrationTests/Commands/SetCommandsTests.swift b/Tests/RediStackIntegrationTests/Commands/SetCommandsTests.swift index c69b10f7..ac63449d 100644 --- a/Tests/RediStackIntegrationTests/Commands/SetCommandsTests.swift +++ b/Tests/RediStackIntegrationTests/Commands/SetCommandsTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackIntegrationTests/Commands/SortedSetCommandsTests.swift b/Tests/RediStackIntegrationTests/Commands/SortedSetCommandsTests.swift index 3b771488..ee221fd0 100644 --- a/Tests/RediStackIntegrationTests/Commands/SortedSetCommandsTests.swift +++ b/Tests/RediStackIntegrationTests/Commands/SortedSetCommandsTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019-2022 RediStack project authors +// Copyright (c) 2019-2022 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackIntegrationTests/Commands/StringCommandsTests.swift b/Tests/RediStackIntegrationTests/Commands/StringCommandsTests.swift index c54e395e..3ce98069 100644 --- a/Tests/RediStackIntegrationTests/Commands/StringCommandsTests.swift +++ b/Tests/RediStackIntegrationTests/Commands/StringCommandsTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackIntegrationTests/RediStackIntegrationTestCase.swift b/Tests/RediStackIntegrationTests/RediStackIntegrationTestCase.swift index 39114dc8..96acee8b 100644 --- a/Tests/RediStackIntegrationTests/RediStackIntegrationTestCase.swift +++ b/Tests/RediStackIntegrationTests/RediStackIntegrationTestCase.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackIntegrationTests/RedisConnectionPoolTests.swift b/Tests/RediStackIntegrationTests/RedisConnectionPoolTests.swift index fd795f0f..68320499 100644 --- a/Tests/RediStackIntegrationTests/RedisConnectionPoolTests.swift +++ b/Tests/RediStackIntegrationTests/RedisConnectionPoolTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020 RediStack project authors +// Copyright (c) 2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackIntegrationTests/RedisConnectionTests.swift b/Tests/RediStackIntegrationTests/RedisConnectionTests.swift index 1cf1ada5..ba9bc706 100644 --- a/Tests/RediStackIntegrationTests/RedisConnectionTests.swift +++ b/Tests/RediStackIntegrationTests/RedisConnectionTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019-2020 RediStack project authors +// Copyright (c) 2019-2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackIntegrationTests/RedisLoggingTests.swift b/Tests/RediStackIntegrationTests/RedisLoggingTests.swift index 75741903..8c7b2710 100644 --- a/Tests/RediStackIntegrationTests/RedisLoggingTests.swift +++ b/Tests/RediStackIntegrationTests/RedisLoggingTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020 RediStack project authors +// Copyright (c) 2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackTests/ChannelHandlers/RedisByteDecoderTests.swift b/Tests/RediStackTests/ChannelHandlers/RedisByteDecoderTests.swift index c76315f7..5f5da4a8 100644 --- a/Tests/RediStackTests/ChannelHandlers/RedisByteDecoderTests.swift +++ b/Tests/RediStackTests/ChannelHandlers/RedisByteDecoderTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackTests/ChannelHandlers/RedisCommandHandlerTests.swift b/Tests/RediStackTests/ChannelHandlers/RedisCommandHandlerTests.swift index f42b36b2..ed5951ec 100644 --- a/Tests/RediStackTests/ChannelHandlers/RedisCommandHandlerTests.swift +++ b/Tests/RediStackTests/ChannelHandlers/RedisCommandHandlerTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019-2020 RediStack project authors +// Copyright (c) 2019-2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackTests/ChannelHandlers/RedisMessageEncoderTests.swift b/Tests/RediStackTests/ChannelHandlers/RedisMessageEncoderTests.swift index 86c10996..1826d4a7 100644 --- a/Tests/RediStackTests/ChannelHandlers/RedisMessageEncoderTests.swift +++ b/Tests/RediStackTests/ChannelHandlers/RedisMessageEncoderTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackTests/Cluster/RedisClusterNodeDescriptionProtocolTests.swift b/Tests/RediStackTests/Cluster/RedisClusterNodeDescriptionProtocolTests.swift index fd23b502..c140a747 100644 --- a/Tests/RediStackTests/Cluster/RedisClusterNodeDescriptionProtocolTests.swift +++ b/Tests/RediStackTests/Cluster/RedisClusterNodeDescriptionProtocolTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2023 RediStack project authors +// Copyright (c) 2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackTests/ConfigurationTests.swift b/Tests/RediStackTests/ConfigurationTests.swift index c0f4663c..fac28825 100644 --- a/Tests/RediStackTests/ConfigurationTests.swift +++ b/Tests/RediStackTests/ConfigurationTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020 RediStack project authors +// Copyright (c) 2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackTests/ConnectionPoolTests.swift b/Tests/RediStackTests/ConnectionPoolTests.swift index 43ea504f..ed2e707b 100644 --- a/Tests/RediStackTests/ConnectionPoolTests.swift +++ b/Tests/RediStackTests/ConnectionPoolTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020-2023 RediStack project authors +// Copyright (c) 2020-2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackTests/Helpers/MockNodeDescription.swift b/Tests/RediStackTests/Helpers/MockNodeDescription.swift index a40ce5f8..f57ceea9 100644 --- a/Tests/RediStackTests/Helpers/MockNodeDescription.swift +++ b/Tests/RediStackTests/Helpers/MockNodeDescription.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2023 RediStack project authors +// Copyright (c) 2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackTests/Helpers/RedisErrorTests.swift b/Tests/RediStackTests/Helpers/RedisErrorTests.swift index fac1a71b..7c93189c 100644 --- a/Tests/RediStackTests/Helpers/RedisErrorTests.swift +++ b/Tests/RediStackTests/Helpers/RedisErrorTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) YEARS RediStack project authors +// Copyright (c) 2024 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackTests/RESPTranslatorTests.swift b/Tests/RediStackTests/RESPTranslatorTests.swift index aabda869..a216a098 100644 --- a/Tests/RediStackTests/RESPTranslatorTests.swift +++ b/Tests/RediStackTests/RESPTranslatorTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackTests/RESPValueTests.swift b/Tests/RediStackTests/RESPValueTests.swift index 611a4e7a..fa6af593 100644 --- a/Tests/RediStackTests/RESPValueTests.swift +++ b/Tests/RediStackTests/RESPValueTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2019 RediStack project authors +// Copyright (c) 2019 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackTests/RedisCommandEncoderTests.swift b/Tests/RediStackTests/RedisCommandEncoderTests.swift index f1029c42..4add2320 100644 --- a/Tests/RediStackTests/RedisCommandEncoderTests.swift +++ b/Tests/RediStackTests/RedisCommandEncoderTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2023 RediStack project authors +// Copyright (c) 2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackTests/RedisConnection+ConfigurationTests.swift b/Tests/RediStackTests/RedisConnection+ConfigurationTests.swift index fe1bc2b8..3f71d9d6 100644 --- a/Tests/RediStackTests/RedisConnection+ConfigurationTests.swift +++ b/Tests/RediStackTests/RedisConnection+ConfigurationTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2023 RediStack project authors +// Copyright (c) 2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackTests/RedisConnectionTests.swift b/Tests/RediStackTests/RedisConnectionTests.swift index 253600a4..ad0aa8f0 100644 --- a/Tests/RediStackTests/RedisConnectionTests.swift +++ b/Tests/RediStackTests/RedisConnectionTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2021-2023 RediStack project authors +// Copyright (c) 2021-2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackTests/RedisHashSlotTests.swift b/Tests/RediStackTests/RedisHashSlotTests.swift index e5aba17e..8d13b0d6 100644 --- a/Tests/RediStackTests/RedisHashSlotTests.swift +++ b/Tests/RediStackTests/RedisHashSlotTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2023 RediStack project authors +// Copyright (c) 2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RediStackTests/RedisKeyLifetime.swift b/Tests/RediStackTests/RedisKeyLifetime.swift index 26a90834..6f4680d1 100644 --- a/Tests/RediStackTests/RedisKeyLifetime.swift +++ b/Tests/RediStackTests/RedisKeyLifetime.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020 RediStack project authors +// Copyright (c) 2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RedisTypesTests/RedisSetTests.swift b/Tests/RedisTypesTests/RedisSetTests.swift index 2a8b7304..65b24dfe 100644 --- a/Tests/RedisTypesTests/RedisSetTests.swift +++ b/Tests/RedisTypesTests/RedisSetTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020 RediStack project authors +// Copyright (c) 2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/RedisTypesTests/RedisTypesIntegrationTestCase.swift b/Tests/RedisTypesTests/RedisTypesIntegrationTestCase.swift index 95340be3..09076190 100644 --- a/Tests/RedisTypesTests/RedisTypesIntegrationTestCase.swift +++ b/Tests/RedisTypesTests/RedisTypesIntegrationTestCase.swift @@ -2,7 +2,7 @@ // // This source file is part of the RediStack open source project // -// Copyright (c) 2020 RediStack project authors +// Copyright (c) 2020 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/check-license-header.sh b/check-license-header.sh deleted file mode 100755 index 41b3d4de..00000000 --- a/check-license-header.sh +++ /dev/null @@ -1,104 +0,0 @@ -#!/bin/bash -##===----------------------------------------------------------------------===## -## -## This source file is part of the Swift.org open source project -## -## Copyright (c) 2024 Apple Inc. and the Swift project authors -## Licensed under Apache License v2.0 with Runtime Library Exception -## -## See https://swift.org/LICENSE.txt for license information -## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors -## -##===----------------------------------------------------------------------===## - -set -euo pipefail - -log() { printf -- "** %s\n" "$*" >&2; } -error() { printf -- "** ERROR: %s\n" "$*" >&2; } -fatal() { error "$@"; exit 1; } - -test -n "${PROJECT_NAME:-}" || fatal "PROJECT_NAME unset" - -if [ -f .license_header_template ]; then - # allow projects to override the license header template - expected_file_header_template=$(cat .license_header_template) -else - expected_file_header_template="@@===----------------------------------------------------------------------===@@ -@@ -@@ This source file is part of the ${PROJECT_NAME} open source project -@@ -@@ Copyright (c) YEARS Apple Inc. and the ${PROJECT_NAME} project authors -@@ Licensed under Apache License v2.0 -@@ -@@ See LICENSE.txt for license information -@@ See CONTRIBUTORS.txt for the list of ${PROJECT_NAME} project authors -@@ -@@ SPDX-License-Identifier: Apache-2.0 -@@ -@@===----------------------------------------------------------------------===@@" -fi - -paths_with_missing_license=( ) - -if [[ -f .licenseignore ]]; then - static_exclude_list='":(exclude).licenseignore" ":(exclude).license_header_template" ' - dynamic_exclude_list=$(tr '\n' '\0' < .licenseignore | xargs -0 -I% printf '":(exclude)%" ') - exclude_list=$static_exclude_list$dynamic_exclude_list -else - exclude_list=":(exclude).license_header_template" -fi - -file_paths=$(echo "$exclude_list" | xargs git ls-files) - -while IFS= read -r file_path; do - file_basename=$(basename -- "${file_path}") - file_extension="${file_basename##*.}" - - # shellcheck disable=SC2001 # We prefer to use sed here instead of bash search/replace - case "${file_extension}" in - c) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; - cmake) expected_file_header=$(sed -e 's|@@|##|g' <<<"${expected_file_header_template}") ;; - gradle) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; - groovy) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; - h) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; - in) expected_file_header=$(sed -e 's|@@|##|g' <<<"${expected_file_header_template}") ;; - java) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; - js) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; - json) continue ;; # JSON doesn't support comments - jsx) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; - kts) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; - proto) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; - ps1) expected_file_header=$(sed -e 's|@@|##|g' <<<"${expected_file_header_template}") ;; - py) expected_file_header=$(cat <(echo '#!/usr/bin/env python3') <(sed -e 's|@@|##|g' <<<"${expected_file_header_template}")) ;; - rb) expected_file_header=$(cat <(echo '#!/usr/bin/env ruby') <(sed -e 's|@@|##|g' <<<"${expected_file_header_template}")) ;; - sh) expected_file_header=$(cat <(echo '#!/bin/bash') <(sed -e 's|@@|##|g' <<<"${expected_file_header_template}")) ;; - swift) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; - swift-format) continue ;; # .swift-format is JSON and doesn't support comments - ts) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; - tsx) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; - *) - error "Unsupported file extension ${file_extension} for file (exclude or update this script): ${file_path}" - paths_with_missing_license+=("${file_path} ") - ;; - esac - expected_file_header_linecount=$(wc -l <<<"${expected_file_header}") - - file_header=$(head -n "${expected_file_header_linecount}" "${file_path}") - normalized_file_header=$( - echo "${file_header}" \ - | sed -e 's/20[12][0123456789]-20[12][0123456789]/YEARS/' -e 's/20[12][0123456789]/YEARS/' \ - ) - - if ! diff -u \ - --label "Expected header" <(echo "${expected_file_header}") \ - --label "${file_path}" <(echo "${normalized_file_header}") - then - paths_with_missing_license+=("${file_path} ") - fi -done <<< "$file_paths" - -if [ "${#paths_with_missing_license[@]}" -gt 0 ]; then - fatal "❌ Found missing license header in files: ${paths_with_missing_license[*]}." -fi - -log "✅ Found no files with missing license header." diff --git a/scripts/generate_rediscommandencoder_multi_encode.sh b/scripts/generate_rediscommandencoder_multi_encode.sh index 60b000dc..7176d095 100755 --- a/scripts/generate_rediscommandencoder_multi_encode.sh +++ b/scripts/generate_rediscommandencoder_multi_encode.sh @@ -55,7 +55,7 @@ cat <<"EOF" // // This source file is part of the RediStack open source project // -// Copyright (c) 2023 RediStack project authors +// Copyright (c) 2023 Apple Inc. and the RediStack project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information