diff --git a/build.sbt b/build.sbt index 84955aa1fec6e1b1b26ad649c4d32ab99779a9e5..d44ef4536a8a95fc44cd15a6014eefddabcc054b 100644 --- a/build.sbt +++ b/build.sbt @@ -22,12 +22,12 @@ ThisBuild / libraryDependencySchemes ++= Seq( addCommandAlias("compileBenchmarks", "benchmarks/Jmh/compile") addCommandAlias("compileSources", "example/Test/compile; redis/Test/compile") -addCommandAlias("check", "fixCheck; fmtCheck") +addCommandAlias("check", "fixCheck; fmtCheck; headerCheck") addCommandAlias("fix", "scalafixAll") addCommandAlias("fixCheck", "scalafixAll --check") addCommandAlias("fmt", "all scalafmtSbt scalafmtAll") addCommandAlias("fmtCheck", "all scalafmtSbtCheck scalafmtCheckAll") -addCommandAlias("prepare", "fix; fmt") +addCommandAlias("prepare", "fix; fmt; headerCreate") lazy val root = project diff --git a/redis/src/main/scala/zio/redis/RedisClusterConfig.scala b/redis/src/main/scala/zio/redis/RedisClusterConfig.scala index c8e2a7f0b6c92a6f66f77552092061b51f83909f..5504fd93dbb1537276a1909e5fd308f8954a7d93 100644 --- a/redis/src/main/scala/zio/redis/RedisClusterConfig.scala +++ b/redis/src/main/scala/zio/redis/RedisClusterConfig.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2021 John A. De Goes and the ZIO contributors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package zio.redis import zio.{Chunk, Duration, durationInt} diff --git a/redis/src/main/scala/zio/redis/RedisConnectionLive.scala b/redis/src/main/scala/zio/redis/RedisConnectionLive.scala index e438c1c2cb92b648a922f308bdc9e508ebc38547..4e5284586cbbc39770e87c84a19fb90f9cc00d2b 100644 --- a/redis/src/main/scala/zio/redis/RedisConnectionLive.scala +++ b/redis/src/main/scala/zio/redis/RedisConnectionLive.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2021 John A. De Goes and the ZIO contributors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package zio.redis import zio._ diff --git a/redis/src/main/scala/zio/redis/RedisEnvironment.scala b/redis/src/main/scala/zio/redis/RedisEnvironment.scala index ece66e6c8035083bfbdb1f62ffd2679678323f58..49415baa0c0d966a312e69821992a2b885653d5e 100644 --- a/redis/src/main/scala/zio/redis/RedisEnvironment.scala +++ b/redis/src/main/scala/zio/redis/RedisEnvironment.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2021 John A. De Goes and the ZIO contributors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package zio.redis import zio.schema.codec.BinaryCodec diff --git a/redis/src/main/scala/zio/redis/RedisExecutor.scala b/redis/src/main/scala/zio/redis/RedisExecutor.scala index 0ea6af53379ffd95c20a37723a6d558adf4ece87..8c228a19abefc9f9bb6ae80daaff911b54ed4a91 100644 --- a/redis/src/main/scala/zio/redis/RedisExecutor.scala +++ b/redis/src/main/scala/zio/redis/RedisExecutor.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2021 John A. De Goes and the ZIO contributors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package zio.redis import zio.{Chunk, IO, ZLayer} diff --git a/redis/src/main/scala/zio/redis/RedisUri.scala b/redis/src/main/scala/zio/redis/RedisUri.scala index 4e4353524cac566ddad01b8734d237bbd61ec80f..e5b5b1ae8b3120ec3f0cc04ccbbfa52081416042 100644 --- a/redis/src/main/scala/zio/redis/RedisUri.scala +++ b/redis/src/main/scala/zio/redis/RedisUri.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2021 John A. De Goes and the ZIO contributors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package zio.redis final case class RedisUri(host: String, port: Int) { diff --git a/redis/src/main/scala/zio/redis/codecs/CRC16.scala b/redis/src/main/scala/zio/redis/codecs/CRC16.scala index e26fbd802940659c37e4d781d5c37a26d44f8773..c68789a4027f11ff1e75172d60f4ba94e0bbfe05 100644 --- a/redis/src/main/scala/zio/redis/codecs/CRC16.scala +++ b/redis/src/main/scala/zio/redis/codecs/CRC16.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2021 John A. De Goes and the ZIO contributors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package zio.redis.codecs import zio.Chunk diff --git a/redis/src/main/scala/zio/redis/codecs/StringUtf8Codec.scala b/redis/src/main/scala/zio/redis/codecs/StringUtf8Codec.scala index b4194ad118029252ee3ab9c0f5cf87c52feab0e5..ae6e429891e61c10a64db94ddad50f10919bc1f9 100644 --- a/redis/src/main/scala/zio/redis/codecs/StringUtf8Codec.scala +++ b/redis/src/main/scala/zio/redis/codecs/StringUtf8Codec.scala @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package zio.redis.codecs import zio.redis.RedisError.CodecError diff --git a/redis/src/main/scala/zio/redis/options/Cluster.scala b/redis/src/main/scala/zio/redis/options/Cluster.scala index 5c11752c4f812232f9a10ddb549a686ec4c77dae..c6af2f082c7c131713d17f54579cc9614bfc899e 100644 --- a/redis/src/main/scala/zio/redis/options/Cluster.scala +++ b/redis/src/main/scala/zio/redis/options/Cluster.scala @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package zio.redis.options import zio.redis.{RedisExecutor, RedisUri}