From 2b25273debc21697d1d97481c166478367fb911f Mon Sep 17 00:00:00 2001 From: Miro Knejp Date: Sun, 9 Jul 2023 18:13:52 +0200 Subject: [PATCH 01/17] Update license headers in .cs files to be REUSE-compliant --- src/dotVariant.Generator.Test/GeneratorTools.Test.cs | 6 ++---- src/dotVariant.Generator.Test/GeneratorTools.cs | 6 ++---- .../RenderInfo.ExtensionClassNamespace.cs | 6 ++---- .../RenderInfo.IsToStringNullable.cs | 6 ++---- src/dotVariant.Generator.Test/RenderInfo.ParamType.cs | 6 ++---- src/dotVariant.Generator.Test/RenderInfo.Params.cs | 6 ++---- src/dotVariant.Generator.Test/RenderInfo.Variant.cs | 6 ++---- src/dotVariant.Generator.Test/RenderInfo.cs | 6 ++---- src/dotVariant.Generator.Test/SourceGenerator.Test.cs | 6 ++---- src/dotVariant.Generator/Descriptor.cs | 6 ++---- src/dotVariant.Generator/Diagnose.cs | 6 ++---- src/dotVariant.Generator/Inspect.cs | 6 ++---- src/dotVariant.Generator/RenderInfo.cs | 6 ++---- src/dotVariant.Generator/Renderer.cs | 6 ++---- src/dotVariant.Generator/SourceGenerator.cs | 6 ++---- src/dotVariant.Runtime/Accessor.cs | 6 ++---- src/dotVariant.Runtime/GeneratorSupport/Throw.cs | 6 ++---- src/dotVariant.Runtime/NoImplicitConversionAttribute.cs | 6 ++---- src/dotVariant.Runtime/NullableAttributes.cs | 6 ++---- src/dotVariant.Runtime/VariantAttribute.cs | 6 ++---- src/dotVariant.Test/Helpers.cs | 6 ++---- src/dotVariant.Test/Variant+Dispose.cs | 6 ++---- src/dotVariant.Test/Variant+Equality.cs | 6 ++---- src/dotVariant.Test/Variant+IEnumerable.cs | 6 ++---- src/dotVariant.Test/Variant+IObservable.cs | 6 ++---- src/dotVariant.Test/Variant+IsEmpty.cs | 6 ++---- src/dotVariant.Test/Variant+Match-Action.cs | 6 ++---- src/dotVariant.Test/Variant+Match-Func.cs | 6 ++---- src/dotVariant.Test/Variant+Match-out.cs | 6 ++---- src/dotVariant.Test/Variant+ToString.cs | 6 ++---- src/dotVariant.Test/Variant+TryMatch.cs | 6 ++---- src/dotVariant.Test/Variant+Visit.cs | 6 ++---- src/dotVariant.Test/Variants.cs | 6 ++---- 33 files changed, 66 insertions(+), 132 deletions(-) diff --git a/src/dotVariant.Generator.Test/GeneratorTools.Test.cs b/src/dotVariant.Generator.Test/GeneratorTools.Test.cs index e86eb77..1d0a4b7 100644 --- a/src/dotVariant.Generator.Test/GeneratorTools.Test.cs +++ b/src/dotVariant.Generator.Test/GeneratorTools.Test.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using Microsoft.CodeAnalysis; using NUnit.Framework; diff --git a/src/dotVariant.Generator.Test/GeneratorTools.cs b/src/dotVariant.Generator.Test/GeneratorTools.cs index eb87592..720d574 100644 --- a/src/dotVariant.Generator.Test/GeneratorTools.cs +++ b/src/dotVariant.Generator.Test/GeneratorTools.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; diff --git a/src/dotVariant.Generator.Test/RenderInfo.ExtensionClassNamespace.cs b/src/dotVariant.Generator.Test/RenderInfo.ExtensionClassNamespace.cs index 0f2d654..d7e4825 100644 --- a/src/dotVariant.Generator.Test/RenderInfo.ExtensionClassNamespace.cs +++ b/src/dotVariant.Generator.Test/RenderInfo.ExtensionClassNamespace.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using NUnit.Framework; using System; diff --git a/src/dotVariant.Generator.Test/RenderInfo.IsToStringNullable.cs b/src/dotVariant.Generator.Test/RenderInfo.IsToStringNullable.cs index 19c0004..76c6c7e 100644 --- a/src/dotVariant.Generator.Test/RenderInfo.IsToStringNullable.cs +++ b/src/dotVariant.Generator.Test/RenderInfo.IsToStringNullable.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using NUnit.Framework; using System.Collections.Generic; diff --git a/src/dotVariant.Generator.Test/RenderInfo.ParamType.cs b/src/dotVariant.Generator.Test/RenderInfo.ParamType.cs index c1420be..61c9ad6 100644 --- a/src/dotVariant.Generator.Test/RenderInfo.ParamType.cs +++ b/src/dotVariant.Generator.Test/RenderInfo.ParamType.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using Microsoft.CodeAnalysis.CSharp; using NUnit.Framework; diff --git a/src/dotVariant.Generator.Test/RenderInfo.Params.cs b/src/dotVariant.Generator.Test/RenderInfo.Params.cs index 02c7e19..63778aa 100644 --- a/src/dotVariant.Generator.Test/RenderInfo.Params.cs +++ b/src/dotVariant.Generator.Test/RenderInfo.Params.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using NUnit.Framework; using System; diff --git a/src/dotVariant.Generator.Test/RenderInfo.Variant.cs b/src/dotVariant.Generator.Test/RenderInfo.Variant.cs index f0fc999..a500c62 100644 --- a/src/dotVariant.Generator.Test/RenderInfo.Variant.cs +++ b/src/dotVariant.Generator.Test/RenderInfo.Variant.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using NUnit.Framework; using System; diff --git a/src/dotVariant.Generator.Test/RenderInfo.cs b/src/dotVariant.Generator.Test/RenderInfo.cs index 97dc62b..233eba7 100644 --- a/src/dotVariant.Generator.Test/RenderInfo.cs +++ b/src/dotVariant.Generator.Test/RenderInfo.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using Microsoft.CodeAnalysis.CSharp; using NUnit.Framework; diff --git a/src/dotVariant.Generator.Test/SourceGenerator.Test.cs b/src/dotVariant.Generator.Test/SourceGenerator.Test.cs index b4dfbc8..f0f423d 100644 --- a/src/dotVariant.Generator.Test/SourceGenerator.Test.cs +++ b/src/dotVariant.Generator.Test/SourceGenerator.Test.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using NUnit.Framework; using System; diff --git a/src/dotVariant.Generator/Descriptor.cs b/src/dotVariant.Generator/Descriptor.cs index 4dd41aa..d0f2486 100644 --- a/src/dotVariant.Generator/Descriptor.cs +++ b/src/dotVariant.Generator/Descriptor.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/dotVariant.Generator/Diagnose.cs b/src/dotVariant.Generator/Diagnose.cs index a9cb301..8992a2f 100644 --- a/src/dotVariant.Generator/Diagnose.cs +++ b/src/dotVariant.Generator/Diagnose.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; diff --git a/src/dotVariant.Generator/Inspect.cs b/src/dotVariant.Generator/Inspect.cs index 2b8e2e8..a562122 100644 --- a/src/dotVariant.Generator/Inspect.cs +++ b/src/dotVariant.Generator/Inspect.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; diff --git a/src/dotVariant.Generator/RenderInfo.cs b/src/dotVariant.Generator/RenderInfo.cs index ef3b3c2..8c4a213 100644 --- a/src/dotVariant.Generator/RenderInfo.cs +++ b/src/dotVariant.Generator/RenderInfo.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; diff --git a/src/dotVariant.Generator/Renderer.cs b/src/dotVariant.Generator/Renderer.cs index d5f26a4..bcaeb20 100644 --- a/src/dotVariant.Generator/Renderer.cs +++ b/src/dotVariant.Generator/Renderer.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using Scriban; using Scriban.Parsing; diff --git a/src/dotVariant.Generator/SourceGenerator.cs b/src/dotVariant.Generator/SourceGenerator.cs index 1b007ef..f980896 100644 --- a/src/dotVariant.Generator/SourceGenerator.cs +++ b/src/dotVariant.Generator/SourceGenerator.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; diff --git a/src/dotVariant.Runtime/Accessor.cs b/src/dotVariant.Runtime/Accessor.cs index 7bc9640..277a09e 100644 --- a/src/dotVariant.Runtime/Accessor.cs +++ b/src/dotVariant.Runtime/Accessor.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 namespace dotVariant { diff --git a/src/dotVariant.Runtime/GeneratorSupport/Throw.cs b/src/dotVariant.Runtime/GeneratorSupport/Throw.cs index cd9ec24..3a6806a 100644 --- a/src/dotVariant.Runtime/GeneratorSupport/Throw.cs +++ b/src/dotVariant.Runtime/GeneratorSupport/Throw.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using System; diff --git a/src/dotVariant.Runtime/NoImplicitConversionAttribute.cs b/src/dotVariant.Runtime/NoImplicitConversionAttribute.cs index 3da5620..adb0cdf 100644 --- a/src/dotVariant.Runtime/NoImplicitConversionAttribute.cs +++ b/src/dotVariant.Runtime/NoImplicitConversionAttribute.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using System; diff --git a/src/dotVariant.Runtime/NullableAttributes.cs b/src/dotVariant.Runtime/NullableAttributes.cs index 59686cd..c32ad4e 100644 --- a/src/dotVariant.Runtime/NullableAttributes.cs +++ b/src/dotVariant.Runtime/NullableAttributes.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 namespace System.Diagnostics.CodeAnalysis { diff --git a/src/dotVariant.Runtime/VariantAttribute.cs b/src/dotVariant.Runtime/VariantAttribute.cs index 8eb97e4..97388a3 100644 --- a/src/dotVariant.Runtime/VariantAttribute.cs +++ b/src/dotVariant.Runtime/VariantAttribute.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using System; diff --git a/src/dotVariant.Test/Helpers.cs b/src/dotVariant.Test/Helpers.cs index b7b313d..6a34990 100644 --- a/src/dotVariant.Test/Helpers.cs +++ b/src/dotVariant.Test/Helpers.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using System; diff --git a/src/dotVariant.Test/Variant+Dispose.cs b/src/dotVariant.Test/Variant+Dispose.cs index 5e791b1..3fb95f2 100644 --- a/src/dotVariant.Test/Variant+Dispose.cs +++ b/src/dotVariant.Test/Variant+Dispose.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using dotVariant.Test.Variants; using NUnit.Framework; diff --git a/src/dotVariant.Test/Variant+Equality.cs b/src/dotVariant.Test/Variant+Equality.cs index ad1907f..1dfe713 100644 --- a/src/dotVariant.Test/Variant+Equality.cs +++ b/src/dotVariant.Test/Variant+Equality.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using dotVariant.Test.Variants; using NUnit.Framework; diff --git a/src/dotVariant.Test/Variant+IEnumerable.cs b/src/dotVariant.Test/Variant+IEnumerable.cs index 691fb6b..043cf91 100644 --- a/src/dotVariant.Test/Variant+IEnumerable.cs +++ b/src/dotVariant.Test/Variant+IEnumerable.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using dotVariant.Test.Variants; using NUnit.Framework; diff --git a/src/dotVariant.Test/Variant+IObservable.cs b/src/dotVariant.Test/Variant+IObservable.cs index c149d94..a65f12b 100644 --- a/src/dotVariant.Test/Variant+IObservable.cs +++ b/src/dotVariant.Test/Variant+IObservable.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using dotVariant.Test.Variants; using Microsoft.Reactive.Testing; diff --git a/src/dotVariant.Test/Variant+IsEmpty.cs b/src/dotVariant.Test/Variant+IsEmpty.cs index e3f44ee..61a6891 100644 --- a/src/dotVariant.Test/Variant+IsEmpty.cs +++ b/src/dotVariant.Test/Variant+IsEmpty.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using dotVariant.Test.Variants; using NUnit.Framework; diff --git a/src/dotVariant.Test/Variant+Match-Action.cs b/src/dotVariant.Test/Variant+Match-Action.cs index e6e0609..99a41b3 100644 --- a/src/dotVariant.Test/Variant+Match-Action.cs +++ b/src/dotVariant.Test/Variant+Match-Action.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using dotVariant.Test.Variants; using NUnit.Framework; diff --git a/src/dotVariant.Test/Variant+Match-Func.cs b/src/dotVariant.Test/Variant+Match-Func.cs index e988067..3851960 100644 --- a/src/dotVariant.Test/Variant+Match-Func.cs +++ b/src/dotVariant.Test/Variant+Match-Func.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using dotVariant.Test.Variants; using NUnit.Framework; diff --git a/src/dotVariant.Test/Variant+Match-out.cs b/src/dotVariant.Test/Variant+Match-out.cs index e8e9343..57b2def 100644 --- a/src/dotVariant.Test/Variant+Match-out.cs +++ b/src/dotVariant.Test/Variant+Match-out.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using dotVariant.Test.Variants; using NUnit.Framework; diff --git a/src/dotVariant.Test/Variant+ToString.cs b/src/dotVariant.Test/Variant+ToString.cs index a178476..72e1062 100644 --- a/src/dotVariant.Test/Variant+ToString.cs +++ b/src/dotVariant.Test/Variant+ToString.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using dotVariant.Test.Variants; using NUnit.Framework; diff --git a/src/dotVariant.Test/Variant+TryMatch.cs b/src/dotVariant.Test/Variant+TryMatch.cs index 1f0d807..21f82a3 100644 --- a/src/dotVariant.Test/Variant+TryMatch.cs +++ b/src/dotVariant.Test/Variant+TryMatch.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using dotVariant.Test.Variants; using NUnit.Framework; diff --git a/src/dotVariant.Test/Variant+Visit.cs b/src/dotVariant.Test/Variant+Visit.cs index 88c1867..777f5da 100644 --- a/src/dotVariant.Test/Variant+Visit.cs +++ b/src/dotVariant.Test/Variant+Visit.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using dotVariant.Test.Variants; using NUnit.Framework; diff --git a/src/dotVariant.Test/Variants.cs b/src/dotVariant.Test/Variants.cs index 3d92a4e..3dc78f1 100644 --- a/src/dotVariant.Test/Variants.cs +++ b/src/dotVariant.Test/Variants.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 using System; From e3b38316d35200c6d3cd86ee79b0e58e7655149e Mon Sep 17 00:00:00 2001 From: Miro Knejp Date: Sun, 9 Jul 2023 18:20:13 +0200 Subject: [PATCH 02/17] Change existing license header to REUSE spec --- .editorconfig | 9 +++++++-- .gitattributes | 4 ++++ .github/workflows/publish.yaml | 4 ++++ .github/workflows/test-package.yaml | 4 ++++ .github/workflows/test.yaml | 4 ++++ .gitignore | 5 +++++ README.md | 6 ++++++ src/dotVariant.Generator.Test/diagnostics/Clean.cs | 6 ++---- .../diagnostics/HasAtLeastOneOption.cs | 6 ++---- .../diagnostics/HasNoDuplicateOptions.cs | 6 ++---- .../diagnostics/HasNoReservedName.cs | 6 ++---- .../diagnostics/HasVariantOf.cs | 6 ++---- src/dotVariant.Generator.Test/diagnostics/IsNotRecord.cs | 6 ++---- src/dotVariant.Generator.Test/diagnostics/IsNotStatic.cs | 6 ++---- src/dotVariant.Generator.Test/diagnostics/IsPartial.cs | 6 ++---- .../diagnostics/NoImplicitConversionForBaseClasses.cs | 6 ++---- .../diagnostics/NoImplicitConversionForInterfaces.cs | 6 ++---- .../diagnostics/NotTooManyOptions.cs | 6 ++---- .../samples/Variant-class-nullable-disable.in.cs | 6 ++---- .../samples/Variant-class-nullable-enable.in.cs | 6 ++---- .../samples/Variant-disposable.in.cs | 6 ++---- .../samples/Variant-generic-T-as-nullable.in.cs | 6 ++---- .../samples/Variant-generic-class-nullable.in.cs | 6 ++---- .../samples/Variant-generic-class.in.cs | 6 ++---- .../samples/Variant-generic-multiple.in.cs | 6 ++---- .../samples/Variant-generic-notnull.in.cs | 6 ++---- .../samples/Variant-generic-struct.in.cs | 6 ++---- .../samples/Variant-generic-unbounded.in.cs | 6 ++---- .../samples/Variant-no-implicit-conversion.in.cs | 6 ++---- .../samples/Variant-nullable-value-type.in.cs | 6 ++---- .../samples/Variant-public.in.cs | 6 ++---- .../samples/Variant-struct-nullable-disable.in.cs | 6 ++---- .../samples/Variant-struct-nullable-enable.in.cs | 6 ++---- .../templates/IEnumerable.scriban-cs | 6 +++--- .../templates/IObservable.scriban-cs | 6 +++--- src/dotVariant.Generator/templates/Union.scriban-cs | 6 +++--- src/dotVariant.Generator/templates/Variant.scriban-cs | 6 +++--- src/dotVariant.Generator/templates/globals.scriban-cs | 6 +++--- 38 files changed, 101 insertions(+), 121 deletions(-) diff --git a/.editorconfig b/.editorconfig index e24e95e..04cbfc1 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 The dotVariant Authors +# +# SPDX-License-Identifier: CC0-1.0 + # http://EditorConfig.org root = true @@ -29,9 +33,10 @@ indent_size = 2 [*.{ps1,cmd,bat}] indent_size = 2 -# Copyright headers (https://www.boost.org/users/license.html#FAQ) +# Copyright headers (https://reuse.software/faq/) + [*.cs] -file_header_template = \nCopyright Miro Knejp 2021.\nDistributed under the Boost Software License, Version 1.0.\n(See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt)\n +file_header_template = SPDX-FileCopyrightText: 2021 The dotVariant Authors.\n\nSPDX-License-Identifier: BSL-1.0 dotnet_diagnostic.IDE0073.severity = error [*.cs] diff --git a/.gitattributes b/.gitattributes index 176a458..9767cb5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,5 @@ +# SPDX-FileCopyrightText: 2021 The dotVariant Authors +# +# SPDX-License-Identifier: CC0-1.0 + * text=auto diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index b560063..0bb6d7b 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 The dotVariant Authors +# +# SPDX-License-Identifier: BSL-1.0 + # Run dotVariant.Test against the pre-built package instead of # ProjectReference. This ensures that both the generator # and the runtime library are packaged correctly. diff --git a/.github/workflows/test-package.yaml b/.github/workflows/test-package.yaml index 11fb9d5..19442d2 100644 --- a/.github/workflows/test-package.yaml +++ b/.github/workflows/test-package.yaml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 The dotVariant Authors +# +# SPDX-License-Identifier: BSL-1.0 + # Run dotVariant.Test against the pre-built package instead of # ProjectReference. This ensures that both the generator # and the runtime library are packaged correctly. diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e9f62ab..9ac8131 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 The dotVariant Authors +# +# SPDX-License-Identifier: BSL-1.0 + name: continuous test on: [push, pull_request] diff --git a/.gitignore b/.gitignore index 4723f6a..0b1ef24 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,10 @@ +# SPDX-FileCopyrightText: 2021 The dotVariant Authors +# +# SPDX-License-Identifier: CC0-1.0 + .vs/ bin/ obj/ *.user nuget.exe +*.binlog diff --git a/README.md b/README.md index 2887b9a..530c9e4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ + + # dotVariant [![GitHub](https://img.shields.io/github/license/mknejp/dotVariant)](/LICENSE.txt) [![Nuget verion](https://img.shields.io/nuget/v/dotVariant)](https://www.nuget.org/packages/dotVariant/) [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/mknejp/dotvariant/test-package)](https://github.com/mknejp/dotvariant/actions) A type-safe and space-efficient sum type for C# (comparable to unions in C or C++) diff --git a/src/dotVariant.Generator.Test/diagnostics/Clean.cs b/src/dotVariant.Generator.Test/diagnostics/Clean.cs index 831581f..2426f8d 100644 --- a/src/dotVariant.Generator.Test/diagnostics/Clean.cs +++ b/src/dotVariant.Generator.Test/diagnostics/Clean.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 [dotVariant.Variant] partial class Variant1 diff --git a/src/dotVariant.Generator.Test/diagnostics/HasAtLeastOneOption.cs b/src/dotVariant.Generator.Test/diagnostics/HasAtLeastOneOption.cs index 6a511f7..8bf83ea 100644 --- a/src/dotVariant.Generator.Test/diagnostics/HasAtLeastOneOption.cs +++ b/src/dotVariant.Generator.Test/diagnostics/HasAtLeastOneOption.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 [dotVariant.Variant] partial class Variant1 diff --git a/src/dotVariant.Generator.Test/diagnostics/HasNoDuplicateOptions.cs b/src/dotVariant.Generator.Test/diagnostics/HasNoDuplicateOptions.cs index b7c7ce7..d174fe6 100644 --- a/src/dotVariant.Generator.Test/diagnostics/HasNoDuplicateOptions.cs +++ b/src/dotVariant.Generator.Test/diagnostics/HasNoDuplicateOptions.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 #nullable enable [dotVariant.Variant] diff --git a/src/dotVariant.Generator.Test/diagnostics/HasNoReservedName.cs b/src/dotVariant.Generator.Test/diagnostics/HasNoReservedName.cs index a35a8cf..ad6ca25 100644 --- a/src/dotVariant.Generator.Test/diagnostics/HasNoReservedName.cs +++ b/src/dotVariant.Generator.Test/diagnostics/HasNoReservedName.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 [dotVariant.Variant] partial class Variant1 diff --git a/src/dotVariant.Generator.Test/diagnostics/HasVariantOf.cs b/src/dotVariant.Generator.Test/diagnostics/HasVariantOf.cs index dca2070..3ebc4fe 100644 --- a/src/dotVariant.Generator.Test/diagnostics/HasVariantOf.cs +++ b/src/dotVariant.Generator.Test/diagnostics/HasVariantOf.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 [dotVariant.Variant] partial class Variant1 // expected-error:15 dotVariant.HasVariantOf diff --git a/src/dotVariant.Generator.Test/diagnostics/IsNotRecord.cs b/src/dotVariant.Generator.Test/diagnostics/IsNotRecord.cs index 9054f78..0ccccfc 100644 --- a/src/dotVariant.Generator.Test/diagnostics/IsNotRecord.cs +++ b/src/dotVariant.Generator.Test/diagnostics/IsNotRecord.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 [dotVariant.Variant] partial record Variant1 // expected-error:9 dotVariant.IsNotRecord diff --git a/src/dotVariant.Generator.Test/diagnostics/IsNotStatic.cs b/src/dotVariant.Generator.Test/diagnostics/IsNotStatic.cs index fe14349..9a63767 100644 --- a/src/dotVariant.Generator.Test/diagnostics/IsNotStatic.cs +++ b/src/dotVariant.Generator.Test/diagnostics/IsNotStatic.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 [dotVariant.Variant] static partial class Variant1 // expected-error:1 dotVariant.IsNotStatic diff --git a/src/dotVariant.Generator.Test/diagnostics/IsPartial.cs b/src/dotVariant.Generator.Test/diagnostics/IsPartial.cs index 6a0fac0..392e639 100644 --- a/src/dotVariant.Generator.Test/diagnostics/IsPartial.cs +++ b/src/dotVariant.Generator.Test/diagnostics/IsPartial.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 [dotVariant.Variant] class Variant1 // expected-error:1 dotVariant.IsPartial diff --git a/src/dotVariant.Generator.Test/diagnostics/NoImplicitConversionForBaseClasses.cs b/src/dotVariant.Generator.Test/diagnostics/NoImplicitConversionForBaseClasses.cs index 8319613..cf872c5 100644 --- a/src/dotVariant.Generator.Test/diagnostics/NoImplicitConversionForBaseClasses.cs +++ b/src/dotVariant.Generator.Test/diagnostics/NoImplicitConversionForBaseClasses.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 [dotVariant.Variant] partial class Variant1 diff --git a/src/dotVariant.Generator.Test/diagnostics/NoImplicitConversionForInterfaces.cs b/src/dotVariant.Generator.Test/diagnostics/NoImplicitConversionForInterfaces.cs index 2202d27..55e4e07 100644 --- a/src/dotVariant.Generator.Test/diagnostics/NoImplicitConversionForInterfaces.cs +++ b/src/dotVariant.Generator.Test/diagnostics/NoImplicitConversionForInterfaces.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 [dotVariant.Variant] partial class Variant1 diff --git a/src/dotVariant.Generator.Test/diagnostics/NotTooManyOptions.cs b/src/dotVariant.Generator.Test/diagnostics/NotTooManyOptions.cs index 5fdfad4..1c33b38 100644 --- a/src/dotVariant.Generator.Test/diagnostics/NotTooManyOptions.cs +++ b/src/dotVariant.Generator.Test/diagnostics/NotTooManyOptions.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 internal enum E1 { } internal enum E2 { } diff --git a/src/dotVariant.Generator.Test/samples/Variant-class-nullable-disable.in.cs b/src/dotVariant.Generator.Test/samples/Variant-class-nullable-disable.in.cs index 3d3a42c..2f102bf 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-class-nullable-disable.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-class-nullable-disable.in.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 #nullable disable namespace Foo diff --git a/src/dotVariant.Generator.Test/samples/Variant-class-nullable-enable.in.cs b/src/dotVariant.Generator.Test/samples/Variant-class-nullable-enable.in.cs index 7223c61..9febdfd 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-class-nullable-enable.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-class-nullable-enable.in.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 #nullable enable namespace Foo diff --git a/src/dotVariant.Generator.Test/samples/Variant-disposable.in.cs b/src/dotVariant.Generator.Test/samples/Variant-disposable.in.cs index 6eab372..30e33a8 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-disposable.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-disposable.in.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 #nullable disable namespace Foo diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-T-as-nullable.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-T-as-nullable.in.cs index 75fe749..d9884b9 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-T-as-nullable.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-T-as-nullable.in.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 #nullable enable namespace Foo diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-class-nullable.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-class-nullable.in.cs index f81e2c4..15eddcd 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-class-nullable.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-class-nullable.in.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 #nullable enable namespace Foo diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-class.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-class.in.cs index 088d011..ce45e06 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-class.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-class.in.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 #nullable enable namespace Foo diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-multiple.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-multiple.in.cs index 3e4b3fc..e9dca50 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-multiple.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-multiple.in.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 #nullable enable namespace Foo diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-notnull.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-notnull.in.cs index 8350137..fcd6c85 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-notnull.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-notnull.in.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 #nullable enable namespace Foo diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-struct.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-struct.in.cs index 8c50e5f..d6af2d0 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-struct.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-struct.in.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 #nullable enable namespace Foo diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-unbounded.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-unbounded.in.cs index f9fb3a6..43ea4f6 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-unbounded.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-unbounded.in.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 #nullable enable namespace Foo diff --git a/src/dotVariant.Generator.Test/samples/Variant-no-implicit-conversion.in.cs b/src/dotVariant.Generator.Test/samples/Variant-no-implicit-conversion.in.cs index 7316922..4d66a1a 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-no-implicit-conversion.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-no-implicit-conversion.in.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 #nullable disable diff --git a/src/dotVariant.Generator.Test/samples/Variant-nullable-value-type.in.cs b/src/dotVariant.Generator.Test/samples/Variant-nullable-value-type.in.cs index 521efad..61cfaea 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-nullable-value-type.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-nullable-value-type.in.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 #nullable enable namespace Foo diff --git a/src/dotVariant.Generator.Test/samples/Variant-public.in.cs b/src/dotVariant.Generator.Test/samples/Variant-public.in.cs index d79643c..eeabea3 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-public.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-public.in.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 #nullable disable namespace Foo diff --git a/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-disable.in.cs b/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-disable.in.cs index d985688..d2123a2 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-disable.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-disable.in.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 #nullable disable namespace Foo diff --git a/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-enable.in.cs b/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-enable.in.cs index aa6a4d1..75d40cc 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-enable.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-enable.in.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors. // -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// +// SPDX-License-Identifier: BSL-1.0 #nullable enable namespace Foo diff --git a/src/dotVariant.Generator/templates/IEnumerable.scriban-cs b/src/dotVariant.Generator/templates/IEnumerable.scriban-cs index 459ddf2..9563656 100644 --- a/src/dotVariant.Generator/templates/IEnumerable.scriban-cs +++ b/src/dotVariant.Generator/templates/IEnumerable.scriban-cs @@ -1,7 +1,7 @@ {{~ -# Copyright Miro Knejp 2021. -# Distributed under the Boost Software License, Version 1.0. -# (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) +# SPDX-FileCopyrightText: 2021 The dotVariant Authors. +# +# SPDX-License-Identifier: BSL-1.0 ~}} {{~ func $get_n() diff --git a/src/dotVariant.Generator/templates/IObservable.scriban-cs b/src/dotVariant.Generator/templates/IObservable.scriban-cs index 9d2cfe2..240133b 100644 --- a/src/dotVariant.Generator/templates/IObservable.scriban-cs +++ b/src/dotVariant.Generator/templates/IObservable.scriban-cs @@ -1,7 +1,7 @@ {{~ -# Copyright Miro Knejp 2021. -# Distributed under the Boost Software License, Version 1.0. -# (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) +# SPDX-FileCopyrightText: 2021 The dotVariant Authors. +# +# SPDX-License-Identifier: BSL-1.0 ~}} {{~ func $get_n() diff --git a/src/dotVariant.Generator/templates/Union.scriban-cs b/src/dotVariant.Generator/templates/Union.scriban-cs index 16c12a2..05b26f4 100644 --- a/src/dotVariant.Generator/templates/Union.scriban-cs +++ b/src/dotVariant.Generator/templates/Union.scriban-cs @@ -1,7 +1,7 @@ {{~ -# Copyright Miro Knejp 2021. -# Distributed under the Boost Software License, Version 1.0. -# (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) +# SPDX-FileCopyrightText: 2021 The dotVariant Authors. +# +# SPDX-License-Identifier: BSL-1.0 ~}} {{~ ## Variant tries to use as little space as possible by using an Explicit layout diff --git a/src/dotVariant.Generator/templates/Variant.scriban-cs b/src/dotVariant.Generator/templates/Variant.scriban-cs index 62ca666..0330e1f 100644 --- a/src/dotVariant.Generator/templates/Variant.scriban-cs +++ b/src/dotVariant.Generator/templates/Variant.scriban-cs @@ -1,7 +1,7 @@ {{~ -# Copyright Miro Knejp 2021. -# Distributed under the Boost Software License, Version 1.0. -# (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) +# SPDX-FileCopyrightText: 2021 The dotVariant Authors. +# +# SPDX-License-Identifier: BSL-1.0 ~}} {{~ ## Global input variables are fed from C# RenderInfo members: diff --git a/src/dotVariant.Generator/templates/globals.scriban-cs b/src/dotVariant.Generator/templates/globals.scriban-cs index b1b57a3..92b2384 100644 --- a/src/dotVariant.Generator/templates/globals.scriban-cs +++ b/src/dotVariant.Generator/templates/globals.scriban-cs @@ -1,7 +1,7 @@ {{~ -# Copyright Miro Knejp 2021. -# Distributed under the Boost Software License, Version 1.0. -# (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) +# SPDX-FileCopyrightText: 2021 The dotVariant Authors. +# +# SPDX-License-Identifier: BSL-1.0 ~}} {{~ ## Global input variables are fed from C# RenderInfo members: From 2a90f209aa4c9caf705cef34c8e59be454ff651e Mon Sep 17 00:00:00 2001 From: Miro Knejp Date: Sun, 9 Jul 2023 20:34:14 +0200 Subject: [PATCH 03/17] Remove copyright from generated files These files are uncopyrightable so we mark them with CC0-1.0 --- .reuse/dep5 | 9 +++++++++ src/dotVariant.Generator.Test/SourceGenerator.Test.cs | 3 --- .../samples/Variant-class-nullable-disable.out.cs | 8 +------- .../samples/Variant-class-nullable-enable.out.cs | 8 +------- .../samples/Variant-disposable.out.cs | 8 +------- .../samples/Variant-generic-T-as-nullable.out.cs | 8 +------- .../samples/Variant-generic-class-nullable.out.cs | 8 +------- .../samples/Variant-generic-class.out.cs | 8 +------- .../samples/Variant-generic-multiple.out.cs | 8 +------- .../samples/Variant-generic-notnull.out.cs | 8 +------- .../samples/Variant-generic-struct.out.cs | 8 +------- .../samples/Variant-generic-unbounded.out.cs | 8 +------- .../samples/Variant-no-implicit-conversion.out.cs | 8 +------- .../samples/Variant-nullable-value-type.out.cs | 8 +------- .../samples/Variant-public.out.cs | 8 +------- .../samples/Variant-struct-nullable-disable.out.cs | 8 +------- .../samples/Variant-struct-nullable-enable.out.cs | 8 +------- src/dotVariant.Generator.Test/samples/copyright.cs | 6 ------ 18 files changed, 24 insertions(+), 114 deletions(-) create mode 100644 .reuse/dep5 delete mode 100644 src/dotVariant.Generator.Test/samples/copyright.cs diff --git a/.reuse/dep5 b/.reuse/dep5 new file mode 100644 index 0000000..61ff8e4 --- /dev/null +++ b/.reuse/dep5 @@ -0,0 +1,9 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://github.com/mknejp/dotVariant +Upstream-Name: dotVariant +Upstream-Contact: Miro Knejp + +# Tool-generated test sample output +Files: src/dotVariant.Generator.Test/samples/*.out.cs +Copyright: 2021 The dotVariant Authors +License: CC0-1.0 diff --git a/src/dotVariant.Generator.Test/SourceGenerator.Test.cs b/src/dotVariant.Generator.Test/SourceGenerator.Test.cs index f0f423d..da0e4a9 100644 --- a/src/dotVariant.Generator.Test/SourceGenerator.Test.cs +++ b/src/dotVariant.Generator.Test/SourceGenerator.Test.cs @@ -30,7 +30,6 @@ public static void Translation(string typeName, string fileName, string input, s $"{typeof(SourceGenerator).FullName}", $"{typeName}.cs"); var output = outputs[file]; - output = _copyrightHeader + output; if (output != expected) { @@ -93,8 +92,6 @@ public static IEnumerable TranslationCases() LoadSample($"{test.FileName}.out.cs")) .SetName($"{nameof(Translation)}({test.FileName})")); - private static readonly string _copyrightHeader = LoadSample("copyright.cs"); - [TestCaseSource(nameof(DiagnosticsCases))] public static void Diagnostics(string input) { diff --git a/src/dotVariant.Generator.Test/samples/Variant-class-nullable-disable.out.cs b/src/dotVariant.Generator.Test/samples/Variant-class-nullable-disable.out.cs index be79b2d..ea457bb 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-class-nullable-disable.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-class-nullable-disable.out.cs @@ -1,10 +1,4 @@ -// -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// - -#nullable disable +#nullable disable namespace Foo { [global::System.Diagnostics.DebuggerTypeProxy(typeof(Variant_class_nullable_disable.__DebuggerTypeProxy))] diff --git a/src/dotVariant.Generator.Test/samples/Variant-class-nullable-enable.out.cs b/src/dotVariant.Generator.Test/samples/Variant-class-nullable-enable.out.cs index f57fe4a..552c569 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-class-nullable-enable.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-class-nullable-enable.out.cs @@ -1,10 +1,4 @@ -// -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// - -#nullable enable +#nullable enable namespace Foo { [global::System.Diagnostics.DebuggerTypeProxy(typeof(Variant_class_nullable_enable.__DebuggerTypeProxy))] diff --git a/src/dotVariant.Generator.Test/samples/Variant-disposable.out.cs b/src/dotVariant.Generator.Test/samples/Variant-disposable.out.cs index d8325c1..c24ec22 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-disposable.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-disposable.out.cs @@ -1,10 +1,4 @@ -// -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// - -#nullable disable +#nullable disable namespace Foo { [global::System.Diagnostics.DebuggerTypeProxy(typeof(Variant_disposable.__DebuggerTypeProxy))] diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-T-as-nullable.out.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-T-as-nullable.out.cs index d29e072..b5c7eb0 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-T-as-nullable.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-T-as-nullable.out.cs @@ -1,10 +1,4 @@ -// -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// - -#nullable enable +#nullable enable namespace Foo { [global::System.Diagnostics.DebuggerTypeProxy(typeof(Variant<,,,,,>.__DebuggerTypeProxy))] diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-class-nullable.out.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-class-nullable.out.cs index 95f3fb6..aa20c90 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-class-nullable.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-class-nullable.out.cs @@ -1,10 +1,4 @@ -// -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// - -#nullable enable +#nullable enable namespace Foo { [global::System.Diagnostics.DebuggerTypeProxy(typeof(Variant<>.__DebuggerTypeProxy))] diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-class.out.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-class.out.cs index a1cf490..7400f22 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-class.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-class.out.cs @@ -1,10 +1,4 @@ -// -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// - -#nullable enable +#nullable enable namespace Foo { [global::System.Diagnostics.DebuggerTypeProxy(typeof(Variant<>.__DebuggerTypeProxy))] diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-multiple.out.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-multiple.out.cs index fdc2792..67aba46 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-multiple.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-multiple.out.cs @@ -1,10 +1,4 @@ -// -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// - -#nullable enable +#nullable enable namespace Foo { [global::System.Diagnostics.DebuggerTypeProxy(typeof(Variant<,,>.__DebuggerTypeProxy))] diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-notnull.out.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-notnull.out.cs index 66b8039..a11887f 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-notnull.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-notnull.out.cs @@ -1,10 +1,4 @@ -// -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// - -#nullable enable +#nullable enable namespace Foo { [global::System.Diagnostics.DebuggerTypeProxy(typeof(Variant<>.__DebuggerTypeProxy))] diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-struct.out.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-struct.out.cs index 7e4a2db..77b4154 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-struct.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-struct.out.cs @@ -1,10 +1,4 @@ -// -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// - -#nullable enable +#nullable enable namespace Foo { [global::System.Diagnostics.DebuggerTypeProxy(typeof(Variant<>.__DebuggerTypeProxy))] diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-unbounded.out.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-unbounded.out.cs index a7acf35..364e085 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-unbounded.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-unbounded.out.cs @@ -1,10 +1,4 @@ -// -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// - -#nullable enable +#nullable enable namespace Foo { [global::System.Diagnostics.DebuggerTypeProxy(typeof(Variant<>.__DebuggerTypeProxy))] diff --git a/src/dotVariant.Generator.Test/samples/Variant-no-implicit-conversion.out.cs b/src/dotVariant.Generator.Test/samples/Variant-no-implicit-conversion.out.cs index c4d7aa3..54833a8 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-no-implicit-conversion.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-no-implicit-conversion.out.cs @@ -1,10 +1,4 @@ -// -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// - -#nullable disable +#nullable disable namespace Foo { [global::System.Diagnostics.DebuggerTypeProxy(typeof(Variant_no_implicit_conversion.__DebuggerTypeProxy))] diff --git a/src/dotVariant.Generator.Test/samples/Variant-nullable-value-type.out.cs b/src/dotVariant.Generator.Test/samples/Variant-nullable-value-type.out.cs index a133176..b55be17 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-nullable-value-type.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-nullable-value-type.out.cs @@ -1,10 +1,4 @@ -// -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// - -#nullable enable +#nullable enable namespace Foo { [global::System.Diagnostics.DebuggerTypeProxy(typeof(Variant_nullable_value_type.__DebuggerTypeProxy))] diff --git a/src/dotVariant.Generator.Test/samples/Variant-public.out.cs b/src/dotVariant.Generator.Test/samples/Variant-public.out.cs index 3ad367b..260661c 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-public.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-public.out.cs @@ -1,10 +1,4 @@ -// -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// - -#nullable disable +#nullable disable namespace Foo { [global::System.Diagnostics.DebuggerTypeProxy(typeof(Variant_public.__DebuggerTypeProxy))] diff --git a/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-disable.out.cs b/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-disable.out.cs index 7c1753d..8133648 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-disable.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-disable.out.cs @@ -1,10 +1,4 @@ -// -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// - -#nullable disable +#nullable disable namespace Foo { [global::System.Diagnostics.DebuggerTypeProxy(typeof(Variant_struct_nullable_disable.__DebuggerTypeProxy))] diff --git a/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-enable.out.cs b/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-enable.out.cs index 1de7e54..41607b2 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-enable.out.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-enable.out.cs @@ -1,10 +1,4 @@ -// -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// - -#nullable enable +#nullable enable namespace Foo { [global::System.Diagnostics.DebuggerTypeProxy(typeof(Variant_struct_nullable_enable.__DebuggerTypeProxy))] diff --git a/src/dotVariant.Generator.Test/samples/copyright.cs b/src/dotVariant.Generator.Test/samples/copyright.cs deleted file mode 100644 index b780517..0000000 --- a/src/dotVariant.Generator.Test/samples/copyright.cs +++ /dev/null @@ -1,6 +0,0 @@ -// -// Copyright Miro Knejp 2021. -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt) -// - From a1e9a6cb5047c23209e2a0923460d564aa31476a Mon Sep 17 00:00:00 2001 From: Miro Knejp Date: Sun, 9 Jul 2023 20:34:40 +0200 Subject: [PATCH 04/17] Mark project files, config files as CC0-1.0 --- .reuse/dep5 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.reuse/dep5 b/.reuse/dep5 index 61ff8e4..49a85c0 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -3,6 +3,16 @@ Source: https://github.com/mknejp/dotVariant Upstream-Name: dotVariant Upstream-Contact: Miro Knejp +# Tool-generated files (project files, etc) +Files: nuget.config *.sln *.csproj *.shproj *.props *.projitems +Copyright: 2021 The dotVariant Authors +License: CC0-1.0 + +# Configuration files +Files: */launchSettings.json */nuget.config +Copyright: 2021 The dotVariant Authors +License: CC0-1.0 + # Tool-generated test sample output Files: src/dotVariant.Generator.Test/samples/*.out.cs Copyright: 2021 The dotVariant Authors From 53122d3524d63fa47c73e26402f694cce212641c Mon Sep 17 00:00:00 2001 From: Miro Knejp Date: Sun, 9 Jul 2023 20:35:12 +0200 Subject: [PATCH 05/17] Move license file to REUSE spec --- LICENSE.txt | 23 -------- LICENSES/BSL-1.0.txt | 7 +++ LICENSES/CC0-1.0.txt | 121 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 128 insertions(+), 23 deletions(-) delete mode 100644 LICENSE.txt create mode 100644 LICENSES/BSL-1.0.txt create mode 100644 LICENSES/CC0-1.0.txt diff --git a/LICENSE.txt b/LICENSE.txt deleted file mode 100644 index 36b7cd9..0000000 --- a/LICENSE.txt +++ /dev/null @@ -1,23 +0,0 @@ -Boost Software License - Version 1.0 - August 17th, 2003 - -Permission is hereby granted, free of charge, to any person or organization -obtaining a copy of the software and accompanying documentation covered by -this license (the "Software") to use, reproduce, display, distribute, -execute, and transmit the Software, and to prepare derivative works of the -Software, and to permit third-parties to whom the Software is furnished to -do so, all subject to the following: - -The copyright notices in the Software and this entire statement, including -the above license grant, this restriction and the following disclaimer, -must be included in all copies of the Software, in whole or in part, and -all derivative works of the Software, unless such copies or derivative -works are solely in the form of machine-executable object code generated by -a source language processor. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. diff --git a/LICENSES/BSL-1.0.txt b/LICENSES/BSL-1.0.txt new file mode 100644 index 0000000..2d87ab1 --- /dev/null +++ b/LICENSES/BSL-1.0.txt @@ -0,0 +1,7 @@ +Boost Software License - Version 1.0 - August 17th, 2003 + +Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following: + +The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/LICENSES/CC0-1.0.txt b/LICENSES/CC0-1.0.txt new file mode 100644 index 0000000..0e259d4 --- /dev/null +++ b/LICENSES/CC0-1.0.txt @@ -0,0 +1,121 @@ +Creative Commons Legal Code + +CC0 1.0 Universal + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS + PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM + THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED + HEREUNDER. + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator +and subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for +the purpose of contributing to a commons of creative, cultural and +scientific works ("Commons") that the public can reliably and without fear +of later claims of infringement build upon, modify, incorporate in other +works, reuse and redistribute as freely as possible in any form whatsoever +and for any purposes, including without limitation commercial purposes. +These owners may contribute to the Commons to promote the ideal of a free +culture and the further production of creative, cultural and scientific +works, or to gain reputation or greater distribution for their Work in +part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any +expectation of additional consideration or compensation, the person +associating CC0 with a Work (the "Affirmer"), to the extent that he or she +is an owner of Copyright and Related Rights in the Work, voluntarily +elects to apply CC0 to the Work and publicly distribute the Work under its +terms, with knowledge of his or her Copyright and Related Rights in the +Work and the meaning and intended legal effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not +limited to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, + communicate, and translate a Work; + ii. moral rights retained by the original author(s) and/or performer(s); +iii. publicity and privacy rights pertaining to a person's image or + likeness depicted in a Work; + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + v. rights protecting the extraction, dissemination, use and reuse of data + in a Work; + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation + thereof, including any amended or successor version of such + directive); and +vii. other similar, equivalent or corresponding rights throughout the + world based on applicable law or treaty, and any national + implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention +of, applicable law, Affirmer hereby overtly, fully, permanently, +irrevocably and unconditionally waives, abandons, and surrenders all of +Affirmer's Copyright and Related Rights and associated claims and causes +of action, whether now known or unknown (including existing as well as +future claims and causes of action), in the Work (i) in all territories +worldwide, (ii) for the maximum duration provided by applicable law or +treaty (including future time extensions), (iii) in any current or future +medium and for any number of copies, and (iv) for any purpose whatsoever, +including without limitation commercial, advertising or promotional +purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each +member of the public at large and to the detriment of Affirmer's heirs and +successors, fully intending that such Waiver shall not be subject to +revocation, rescission, cancellation, termination, or any other legal or +equitable action to disrupt the quiet enjoyment of the Work by the public +as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason +be judged legally invalid or ineffective under applicable law, then the +Waiver shall be preserved to the maximum extent permitted taking into +account Affirmer's express Statement of Purpose. In addition, to the +extent the Waiver is so judged Affirmer hereby grants to each affected +person a royalty-free, non transferable, non sublicensable, non exclusive, +irrevocable and unconditional license to exercise Affirmer's Copyright and +Related Rights in the Work (i) in all territories worldwide, (ii) for the +maximum duration provided by applicable law or treaty (including future +time extensions), (iii) in any current or future medium and for any number +of copies, and (iv) for any purpose whatsoever, including without +limitation commercial, advertising or promotional purposes (the +"License"). The License shall be deemed effective as of the date CC0 was +applied by Affirmer to the Work. Should any part of the License for any +reason be judged legally invalid or ineffective under applicable law, such +partial invalidity or ineffectiveness shall not invalidate the remainder +of the License, and in such case Affirmer hereby affirms that he or she +will not (i) exercise any of his or her remaining Copyright and Related +Rights in the Work or (ii) assert any associated claims and causes of +action with respect to the Work, in either case contrary to Affirmer's +express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + b. Affirmer offers the Work as-is and makes no representations or + warranties of any kind concerning the Work, express, implied, + statutory or otherwise, including without limitation warranties of + title, merchantability, fitness for a particular purpose, non + infringement, or the absence of latent or other defects, accuracy, or + the present or absence of errors, whether or not discoverable, all to + the greatest extent permissible under applicable law. + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without + limitation any person's Copyright and Related Rights in the Work. + Further, Affirmer disclaims responsibility for obtaining any necessary + consents, permissions or other rights required for any use of the + Work. + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to + this CC0 or use of the Work. From 32cfbe00f61fd0ca252cca1ef899bb5cf1e9822c Mon Sep 17 00:00:00 2001 From: Miro Knejp Date: Sun, 9 Jul 2023 20:40:43 +0200 Subject: [PATCH 06/17] Automate third party license inclusion in package Uses the dotnet-project-licenses to read the license files and embeds them in the package. Because this step can take a bit it is by default only done in the publishing CI --- .github/workflows/publish.yaml | 11 +++++---- src/Directory.Build.props | 3 +++ src/dotVariant.Generator/licenses/Scriban.txt | 23 ------------------- .../licenses/System.Interactive.txt | 23 ------------------- .../System.Threading.Tasks.Extensions.txt | 23 ------------------- src/dotVariant.Test/dotVariant.Test.projitems | 2 +- src/dotVariant/dotVariant.csproj | 13 ++++++++++- 7 files changed, 23 insertions(+), 75 deletions(-) delete mode 100644 src/dotVariant.Generator/licenses/Scriban.txt delete mode 100644 src/dotVariant.Generator/licenses/System.Interactive.txt delete mode 100644 src/dotVariant.Generator/licenses/System.Threading.Tasks.Extensions.txt diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 0bb6d7b..cb5a1d9 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -2,9 +2,8 @@ # # SPDX-License-Identifier: BSL-1.0 -# Run dotVariant.Test against the pre-built package instead of -# ProjectReference. This ensures that both the generator -# and the runtime library are packaged correctly. +# Read the version number from the tag, build the package in release +# configuration and embed third party licenses. name: publish on: push: @@ -22,11 +21,15 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Install dotnet-project-licenses + run: | + dotnet tool install --global dotnet-project-licenses + - name: Build package run: | if ("${{ github.ref }}" -match "^refs/tags/v(.+)") { $version = $Matches[1] - dotnet build dotVariant/dotVariant.csproj -p:Configuration=Release -p:Version=$version + dotnet build dotVariant/dotVariant.csproj -p:Configuration=Release -p:Version=$version -p:PackageThirdPartyLicenses=true } else { echo "::error::Unexpected tag format '${ github.refs }}'" exit 1 diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 66ca259..764a30a 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -12,8 +12,11 @@ 999.0.0 true + $(MSBuildThisFileDirectory)../ + false $(DefineConstants);CI + false diff --git a/src/dotVariant.Generator/licenses/Scriban.txt b/src/dotVariant.Generator/licenses/Scriban.txt deleted file mode 100644 index 28e74c4..0000000 --- a/src/dotVariant.Generator/licenses/Scriban.txt +++ /dev/null @@ -1,23 +0,0 @@ -Copyright (c) 2016-2020, Alexandre Mutel -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification -, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/src/dotVariant.Generator/licenses/System.Interactive.txt b/src/dotVariant.Generator/licenses/System.Interactive.txt deleted file mode 100644 index 984713a..0000000 --- a/src/dotVariant.Generator/licenses/System.Interactive.txt +++ /dev/null @@ -1,23 +0,0 @@ -The MIT License (MIT) - -Copyright (c) .NET Foundation and Contributors - -All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/src/dotVariant.Generator/licenses/System.Threading.Tasks.Extensions.txt b/src/dotVariant.Generator/licenses/System.Threading.Tasks.Extensions.txt deleted file mode 100644 index 984713a..0000000 --- a/src/dotVariant.Generator/licenses/System.Threading.Tasks.Extensions.txt +++ /dev/null @@ -1,23 +0,0 @@ -The MIT License (MIT) - -Copyright (c) .NET Foundation and Contributors - -All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/src/dotVariant.Test/dotVariant.Test.projitems b/src/dotVariant.Test/dotVariant.Test.projitems index 9784973..1cee079 100644 --- a/src/dotVariant.Test/dotVariant.Test.projitems +++ b/src/dotVariant.Test/dotVariant.Test.projitems @@ -25,4 +25,4 @@ - + \ No newline at end of file diff --git a/src/dotVariant/dotVariant.csproj b/src/dotVariant/dotVariant.csproj index b1b24f5..2155f27 100644 --- a/src/dotVariant/dotVariant.csproj +++ b/src/dotVariant/dotVariant.csproj @@ -6,8 +6,11 @@ false true ../dotVariant.Generator/bin/$(Configuration)/netstandard2.0 + ../dotVariant.Generator $(NoWarn);NU5128 + + $(NoWarn);NU5118 @@ -19,8 +22,8 @@ - + @@ -33,4 +36,12 @@ + + + + + + + + From 900bf1aec893404e34da1f45036e253299a93491 Mon Sep 17 00:00:00 2001 From: Miro Knejp Date: Sun, 9 Jul 2023 20:41:07 +0200 Subject: [PATCH 07/17] Add README.md to package --- src/Directory.Build.props | 1 + src/dotVariant/dotVariant.csproj | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 764a30a..99c51cd 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -6,6 +6,7 @@ Copyright © Miro Knejp $([System.DateTime]::Now.Year) A type-safe and space-efficient sum type for C# (comparable to unions in C or C++) BSL-1.0 + README.md true variant;sum-types;functional;union;algebraic-data-types;discriminated-unions https://github.com/mknejp/dotvariant diff --git a/src/dotVariant/dotVariant.csproj b/src/dotVariant/dotVariant.csproj index 2155f27..1f16d8f 100644 --- a/src/dotVariant/dotVariant.csproj +++ b/src/dotVariant/dotVariant.csproj @@ -24,6 +24,7 @@ + From 3729a5d8cd8fdd18daddbb269a2c57a04d8752c7 Mon Sep 17 00:00:00 2001 From: Miro Knejp Date: Sun, 9 Jul 2023 20:41:18 +0200 Subject: [PATCH 08/17] Adjust copyright property in package --- src/Directory.Build.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 99c51cd..2e0593d 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -3,7 +3,7 @@ Miro Knejp $(Author) - Copyright © Miro Knejp $([System.DateTime]::Now.Year) + 2021 dotVariant Authors A type-safe and space-efficient sum type for C# (comparable to unions in C or C++) BSL-1.0 README.md From 0ba6ced8d4c9faaa42c4a9f01618d620bcd85881 Mon Sep 17 00:00:00 2001 From: Miro Knejp Date: Sun, 9 Jul 2023 20:41:57 +0200 Subject: [PATCH 09/17] Add AUTHORS file --- AUTHORS.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 AUTHORS.txt diff --git a/AUTHORS.txt b/AUTHORS.txt new file mode 100644 index 0000000..47557bd --- /dev/null +++ b/AUTHORS.txt @@ -0,0 +1,9 @@ +# SPDX-FileCopyrightText: 2021 The dotVariant Authors. +# +# SPDX-License-Identifier: CC0-1.0 + +This file lists the dotVariant Authors in alphabetical order + +Daniel +jvbsl +Miro Knejp From a468710b88619e49da6f5026ad9e7352293b520a Mon Sep 17 00:00:00 2001 From: Miro Knejp Date: Sun, 9 Jul 2023 20:45:20 +0200 Subject: [PATCH 10/17] Add workflow to check REUSE compliance --- .github/workflows/reuse.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/reuse.yaml diff --git a/.github/workflows/reuse.yaml b/.github/workflows/reuse.yaml new file mode 100644 index 0000000..c2878ac --- /dev/null +++ b/.github/workflows/reuse.yaml @@ -0,0 +1,23 @@ +# intentionally broken license header + +# Make sure all files are properly attributed with copyright and license +name: reuse +on: pull_request + +defaults: + run: + shell: pwsh + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Install reuse-lint + run: | + sudo apt-get install -y "reuse" + + - name: Run reuse-lint + run: | + reuse lint \ No newline at end of file From 05bed1016db8b7aa725fce60f10554f63d4b62ee Mon Sep 17 00:00:00 2001 From: Miro Knejp Date: Sun, 9 Jul 2023 21:12:18 +0200 Subject: [PATCH 11/17] Give nuget.config a license header --- .reuse/dep5 | 2 +- src/nuget.config | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.reuse/dep5 b/.reuse/dep5 index 49a85c0..f35d658 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -4,7 +4,7 @@ Upstream-Name: dotVariant Upstream-Contact: Miro Knejp # Tool-generated files (project files, etc) -Files: nuget.config *.sln *.csproj *.shproj *.props *.projitems +Files: *.sln *.csproj *.shproj *.props *.projitems Copyright: 2021 The dotVariant Authors License: CC0-1.0 diff --git a/src/nuget.config b/src/nuget.config index 368c09d..490a775 100644 --- a/src/nuget.config +++ b/src/nuget.config @@ -1,4 +1,9 @@ - + + diff --git a/src/dotVariant.Generator.Test/GeneratorTools.Test.cs b/src/dotVariant.Generator.Test/GeneratorTools.Test.cs index 1d0a4b7..2b43273 100644 --- a/src/dotVariant.Generator.Test/GeneratorTools.Test.cs +++ b/src/dotVariant.Generator.Test/GeneratorTools.Test.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/GeneratorTools.cs b/src/dotVariant.Generator.Test/GeneratorTools.cs index 720d574..cb81d5c 100644 --- a/src/dotVariant.Generator.Test/GeneratorTools.cs +++ b/src/dotVariant.Generator.Test/GeneratorTools.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/RenderInfo.ExtensionClassNamespace.cs b/src/dotVariant.Generator.Test/RenderInfo.ExtensionClassNamespace.cs index d7e4825..a55a070 100644 --- a/src/dotVariant.Generator.Test/RenderInfo.ExtensionClassNamespace.cs +++ b/src/dotVariant.Generator.Test/RenderInfo.ExtensionClassNamespace.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/RenderInfo.IsToStringNullable.cs b/src/dotVariant.Generator.Test/RenderInfo.IsToStringNullable.cs index 76c6c7e..e75bca9 100644 --- a/src/dotVariant.Generator.Test/RenderInfo.IsToStringNullable.cs +++ b/src/dotVariant.Generator.Test/RenderInfo.IsToStringNullable.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/RenderInfo.ParamType.cs b/src/dotVariant.Generator.Test/RenderInfo.ParamType.cs index 61c9ad6..b1e379e 100644 --- a/src/dotVariant.Generator.Test/RenderInfo.ParamType.cs +++ b/src/dotVariant.Generator.Test/RenderInfo.ParamType.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/RenderInfo.Params.cs b/src/dotVariant.Generator.Test/RenderInfo.Params.cs index 63778aa..b36f440 100644 --- a/src/dotVariant.Generator.Test/RenderInfo.Params.cs +++ b/src/dotVariant.Generator.Test/RenderInfo.Params.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/RenderInfo.Variant.cs b/src/dotVariant.Generator.Test/RenderInfo.Variant.cs index a500c62..a4b9fe1 100644 --- a/src/dotVariant.Generator.Test/RenderInfo.Variant.cs +++ b/src/dotVariant.Generator.Test/RenderInfo.Variant.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/RenderInfo.cs b/src/dotVariant.Generator.Test/RenderInfo.cs index 233eba7..553d640 100644 --- a/src/dotVariant.Generator.Test/RenderInfo.cs +++ b/src/dotVariant.Generator.Test/RenderInfo.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/SourceGenerator.Test.cs b/src/dotVariant.Generator.Test/SourceGenerator.Test.cs index da0e4a9..cbb9c95 100644 --- a/src/dotVariant.Generator.Test/SourceGenerator.Test.cs +++ b/src/dotVariant.Generator.Test/SourceGenerator.Test.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/diagnostics/Clean.cs b/src/dotVariant.Generator.Test/diagnostics/Clean.cs index 2426f8d..0a73b84 100644 --- a/src/dotVariant.Generator.Test/diagnostics/Clean.cs +++ b/src/dotVariant.Generator.Test/diagnostics/Clean.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/diagnostics/HasAtLeastOneOption.cs b/src/dotVariant.Generator.Test/diagnostics/HasAtLeastOneOption.cs index 8bf83ea..7337cf7 100644 --- a/src/dotVariant.Generator.Test/diagnostics/HasAtLeastOneOption.cs +++ b/src/dotVariant.Generator.Test/diagnostics/HasAtLeastOneOption.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/diagnostics/HasNoDuplicateOptions.cs b/src/dotVariant.Generator.Test/diagnostics/HasNoDuplicateOptions.cs index d174fe6..2dcc558 100644 --- a/src/dotVariant.Generator.Test/diagnostics/HasNoDuplicateOptions.cs +++ b/src/dotVariant.Generator.Test/diagnostics/HasNoDuplicateOptions.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/diagnostics/HasNoReservedName.cs b/src/dotVariant.Generator.Test/diagnostics/HasNoReservedName.cs index ad6ca25..4efd1e5 100644 --- a/src/dotVariant.Generator.Test/diagnostics/HasNoReservedName.cs +++ b/src/dotVariant.Generator.Test/diagnostics/HasNoReservedName.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/diagnostics/HasVariantOf.cs b/src/dotVariant.Generator.Test/diagnostics/HasVariantOf.cs index 3ebc4fe..b4d9f97 100644 --- a/src/dotVariant.Generator.Test/diagnostics/HasVariantOf.cs +++ b/src/dotVariant.Generator.Test/diagnostics/HasVariantOf.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/diagnostics/IsNotRecord.cs b/src/dotVariant.Generator.Test/diagnostics/IsNotRecord.cs index 0ccccfc..0a44f92 100644 --- a/src/dotVariant.Generator.Test/diagnostics/IsNotRecord.cs +++ b/src/dotVariant.Generator.Test/diagnostics/IsNotRecord.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/diagnostics/IsNotStatic.cs b/src/dotVariant.Generator.Test/diagnostics/IsNotStatic.cs index 9a63767..28bc19b 100644 --- a/src/dotVariant.Generator.Test/diagnostics/IsNotStatic.cs +++ b/src/dotVariant.Generator.Test/diagnostics/IsNotStatic.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/diagnostics/IsPartial.cs b/src/dotVariant.Generator.Test/diagnostics/IsPartial.cs index 392e639..627826b 100644 --- a/src/dotVariant.Generator.Test/diagnostics/IsPartial.cs +++ b/src/dotVariant.Generator.Test/diagnostics/IsPartial.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/diagnostics/NoImplicitConversionForBaseClasses.cs b/src/dotVariant.Generator.Test/diagnostics/NoImplicitConversionForBaseClasses.cs index cf872c5..4d0d7cb 100644 --- a/src/dotVariant.Generator.Test/diagnostics/NoImplicitConversionForBaseClasses.cs +++ b/src/dotVariant.Generator.Test/diagnostics/NoImplicitConversionForBaseClasses.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/diagnostics/NoImplicitConversionForInterfaces.cs b/src/dotVariant.Generator.Test/diagnostics/NoImplicitConversionForInterfaces.cs index 55e4e07..523dd7b 100644 --- a/src/dotVariant.Generator.Test/diagnostics/NoImplicitConversionForInterfaces.cs +++ b/src/dotVariant.Generator.Test/diagnostics/NoImplicitConversionForInterfaces.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/diagnostics/NotTooManyOptions.cs b/src/dotVariant.Generator.Test/diagnostics/NotTooManyOptions.cs index 1c33b38..8e1cd65 100644 --- a/src/dotVariant.Generator.Test/diagnostics/NotTooManyOptions.cs +++ b/src/dotVariant.Generator.Test/diagnostics/NotTooManyOptions.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/samples/Variant-class-nullable-disable.in.cs b/src/dotVariant.Generator.Test/samples/Variant-class-nullable-disable.in.cs index 2f102bf..5795695 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-class-nullable-disable.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-class-nullable-disable.in.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/samples/Variant-class-nullable-enable.in.cs b/src/dotVariant.Generator.Test/samples/Variant-class-nullable-enable.in.cs index 9febdfd..5c0dbba 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-class-nullable-enable.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-class-nullable-enable.in.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/samples/Variant-disposable.in.cs b/src/dotVariant.Generator.Test/samples/Variant-disposable.in.cs index 30e33a8..6ea0096 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-disposable.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-disposable.in.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-T-as-nullable.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-T-as-nullable.in.cs index d9884b9..eb5c151 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-T-as-nullable.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-T-as-nullable.in.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-class-nullable.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-class-nullable.in.cs index 15eddcd..ff522c1 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-class-nullable.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-class-nullable.in.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-class.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-class.in.cs index ce45e06..f214826 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-class.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-class.in.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-multiple.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-multiple.in.cs index e9dca50..33b0c39 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-multiple.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-multiple.in.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-notnull.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-notnull.in.cs index fcd6c85..d074c3e 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-notnull.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-notnull.in.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-struct.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-struct.in.cs index d6af2d0..5d1aaef 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-struct.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-struct.in.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/samples/Variant-generic-unbounded.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-unbounded.in.cs index 43ea4f6..bde8dd3 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-generic-unbounded.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-generic-unbounded.in.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/samples/Variant-no-implicit-conversion.in.cs b/src/dotVariant.Generator.Test/samples/Variant-no-implicit-conversion.in.cs index 4d66a1a..3e5a6f4 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-no-implicit-conversion.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-no-implicit-conversion.in.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/samples/Variant-nullable-value-type.in.cs b/src/dotVariant.Generator.Test/samples/Variant-nullable-value-type.in.cs index 61cfaea..f528540 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-nullable-value-type.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-nullable-value-type.in.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/samples/Variant-public.in.cs b/src/dotVariant.Generator.Test/samples/Variant-public.in.cs index eeabea3..2492cb8 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-public.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-public.in.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-disable.in.cs b/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-disable.in.cs index d2123a2..cf22257 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-disable.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-disable.in.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-enable.in.cs b/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-enable.in.cs index 75d40cc..0937657 100644 --- a/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-enable.in.cs +++ b/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-enable.in.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator/Descriptor.cs b/src/dotVariant.Generator/Descriptor.cs index d0f2486..d548a61 100644 --- a/src/dotVariant.Generator/Descriptor.cs +++ b/src/dotVariant.Generator/Descriptor.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator/Diagnose.cs b/src/dotVariant.Generator/Diagnose.cs index 8992a2f..2601bdc 100644 --- a/src/dotVariant.Generator/Diagnose.cs +++ b/src/dotVariant.Generator/Diagnose.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator/Inspect.cs b/src/dotVariant.Generator/Inspect.cs index a562122..03783ff 100644 --- a/src/dotVariant.Generator/Inspect.cs +++ b/src/dotVariant.Generator/Inspect.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator/RenderInfo.cs b/src/dotVariant.Generator/RenderInfo.cs index 8c4a213..fb2aaf9 100644 --- a/src/dotVariant.Generator/RenderInfo.cs +++ b/src/dotVariant.Generator/RenderInfo.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator/Renderer.cs b/src/dotVariant.Generator/Renderer.cs index bcaeb20..a872a8e 100644 --- a/src/dotVariant.Generator/Renderer.cs +++ b/src/dotVariant.Generator/Renderer.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator/SourceGenerator.cs b/src/dotVariant.Generator/SourceGenerator.cs index f980896..21eedc6 100644 --- a/src/dotVariant.Generator/SourceGenerator.cs +++ b/src/dotVariant.Generator/SourceGenerator.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Generator/templates/IEnumerable.scriban-cs b/src/dotVariant.Generator/templates/IEnumerable.scriban-cs index 9563656..291ff36 100644 --- a/src/dotVariant.Generator/templates/IEnumerable.scriban-cs +++ b/src/dotVariant.Generator/templates/IEnumerable.scriban-cs @@ -1,5 +1,5 @@ {{~ -# SPDX-FileCopyrightText: 2021 The dotVariant Authors. +# SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) # # SPDX-License-Identifier: BSL-1.0 ~}} diff --git a/src/dotVariant.Generator/templates/IObservable.scriban-cs b/src/dotVariant.Generator/templates/IObservable.scriban-cs index 240133b..d2949ff 100644 --- a/src/dotVariant.Generator/templates/IObservable.scriban-cs +++ b/src/dotVariant.Generator/templates/IObservable.scriban-cs @@ -1,5 +1,5 @@ {{~ -# SPDX-FileCopyrightText: 2021 The dotVariant Authors. +# SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) # # SPDX-License-Identifier: BSL-1.0 ~}} diff --git a/src/dotVariant.Generator/templates/Union.scriban-cs b/src/dotVariant.Generator/templates/Union.scriban-cs index 05b26f4..adea842 100644 --- a/src/dotVariant.Generator/templates/Union.scriban-cs +++ b/src/dotVariant.Generator/templates/Union.scriban-cs @@ -1,5 +1,5 @@ {{~ -# SPDX-FileCopyrightText: 2021 The dotVariant Authors. +# SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) # # SPDX-License-Identifier: BSL-1.0 ~}} diff --git a/src/dotVariant.Generator/templates/Variant.scriban-cs b/src/dotVariant.Generator/templates/Variant.scriban-cs index 0330e1f..f89acf3 100644 --- a/src/dotVariant.Generator/templates/Variant.scriban-cs +++ b/src/dotVariant.Generator/templates/Variant.scriban-cs @@ -1,5 +1,5 @@ {{~ -# SPDX-FileCopyrightText: 2021 The dotVariant Authors. +# SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) # # SPDX-License-Identifier: BSL-1.0 ~}} diff --git a/src/dotVariant.Generator/templates/globals.scriban-cs b/src/dotVariant.Generator/templates/globals.scriban-cs index 92b2384..7eb4318 100644 --- a/src/dotVariant.Generator/templates/globals.scriban-cs +++ b/src/dotVariant.Generator/templates/globals.scriban-cs @@ -1,5 +1,5 @@ {{~ -# SPDX-FileCopyrightText: 2021 The dotVariant Authors. +# SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) # # SPDX-License-Identifier: BSL-1.0 ~}} diff --git a/src/dotVariant.Runtime/Accessor.cs b/src/dotVariant.Runtime/Accessor.cs index 277a09e..e0a3682 100644 --- a/src/dotVariant.Runtime/Accessor.cs +++ b/src/dotVariant.Runtime/Accessor.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Runtime/GeneratorSupport/Throw.cs b/src/dotVariant.Runtime/GeneratorSupport/Throw.cs index 3a6806a..5067773 100644 --- a/src/dotVariant.Runtime/GeneratorSupport/Throw.cs +++ b/src/dotVariant.Runtime/GeneratorSupport/Throw.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Runtime/NoImplicitConversionAttribute.cs b/src/dotVariant.Runtime/NoImplicitConversionAttribute.cs index adb0cdf..1cd8f17 100644 --- a/src/dotVariant.Runtime/NoImplicitConversionAttribute.cs +++ b/src/dotVariant.Runtime/NoImplicitConversionAttribute.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Runtime/NullableAttributes.cs b/src/dotVariant.Runtime/NullableAttributes.cs index c32ad4e..bfe49ec 100644 --- a/src/dotVariant.Runtime/NullableAttributes.cs +++ b/src/dotVariant.Runtime/NullableAttributes.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Runtime/VariantAttribute.cs b/src/dotVariant.Runtime/VariantAttribute.cs index 97388a3..d98625a 100644 --- a/src/dotVariant.Runtime/VariantAttribute.cs +++ b/src/dotVariant.Runtime/VariantAttribute.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Test/Helpers.cs b/src/dotVariant.Test/Helpers.cs index 6a34990..288e606 100644 --- a/src/dotVariant.Test/Helpers.cs +++ b/src/dotVariant.Test/Helpers.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Test/Variant+Dispose.cs b/src/dotVariant.Test/Variant+Dispose.cs index 3fb95f2..357000a 100644 --- a/src/dotVariant.Test/Variant+Dispose.cs +++ b/src/dotVariant.Test/Variant+Dispose.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Test/Variant+Equality.cs b/src/dotVariant.Test/Variant+Equality.cs index 1dfe713..daa5654 100644 --- a/src/dotVariant.Test/Variant+Equality.cs +++ b/src/dotVariant.Test/Variant+Equality.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Test/Variant+IEnumerable.cs b/src/dotVariant.Test/Variant+IEnumerable.cs index 043cf91..78b20e5 100644 --- a/src/dotVariant.Test/Variant+IEnumerable.cs +++ b/src/dotVariant.Test/Variant+IEnumerable.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Test/Variant+IObservable.cs b/src/dotVariant.Test/Variant+IObservable.cs index a65f12b..f277302 100644 --- a/src/dotVariant.Test/Variant+IObservable.cs +++ b/src/dotVariant.Test/Variant+IObservable.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Test/Variant+IsEmpty.cs b/src/dotVariant.Test/Variant+IsEmpty.cs index 61a6891..37d0e70 100644 --- a/src/dotVariant.Test/Variant+IsEmpty.cs +++ b/src/dotVariant.Test/Variant+IsEmpty.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Test/Variant+Match-Action.cs b/src/dotVariant.Test/Variant+Match-Action.cs index 99a41b3..3ca9a44 100644 --- a/src/dotVariant.Test/Variant+Match-Action.cs +++ b/src/dotVariant.Test/Variant+Match-Action.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Test/Variant+Match-Func.cs b/src/dotVariant.Test/Variant+Match-Func.cs index 3851960..40516d7 100644 --- a/src/dotVariant.Test/Variant+Match-Func.cs +++ b/src/dotVariant.Test/Variant+Match-Func.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Test/Variant+Match-out.cs b/src/dotVariant.Test/Variant+Match-out.cs index 57b2def..8cbeabf 100644 --- a/src/dotVariant.Test/Variant+Match-out.cs +++ b/src/dotVariant.Test/Variant+Match-out.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Test/Variant+ToString.cs b/src/dotVariant.Test/Variant+ToString.cs index 72e1062..bca1fac 100644 --- a/src/dotVariant.Test/Variant+ToString.cs +++ b/src/dotVariant.Test/Variant+ToString.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Test/Variant+TryMatch.cs b/src/dotVariant.Test/Variant+TryMatch.cs index 21f82a3..3190359 100644 --- a/src/dotVariant.Test/Variant+TryMatch.cs +++ b/src/dotVariant.Test/Variant+TryMatch.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Test/Variant+Visit.cs b/src/dotVariant.Test/Variant+Visit.cs index 777f5da..010ac7c 100644 --- a/src/dotVariant.Test/Variant+Visit.cs +++ b/src/dotVariant.Test/Variant+Visit.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 diff --git a/src/dotVariant.Test/Variants.cs b/src/dotVariant.Test/Variants.cs index 3dc78f1..72fb397 100644 --- a/src/dotVariant.Test/Variants.cs +++ b/src/dotVariant.Test/Variants.cs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021 The dotVariant Authors. +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // // SPDX-License-Identifier: BSL-1.0 From e3f7a7531612b3deed17fcdc1eb23a65a5d11885 Mon Sep 17 00:00:00 2001 From: Miro Knejp Date: Sun, 9 Jul 2023 21:42:16 +0200 Subject: [PATCH 13/17] Fix broken copyright header --- .github/workflows/reuse.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reuse.yaml b/.github/workflows/reuse.yaml index c2878ac..0dcaaec 100644 --- a/.github/workflows/reuse.yaml +++ b/.github/workflows/reuse.yaml @@ -1,4 +1,6 @@ -# intentionally broken license header +# SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) +# +# SPDX-License-Identifier: BSL-1.0 # Make sure all files are properly attributed with copyright and license name: reuse From 47d8fe749930dea3c56ea55d983fbd546053dc9c Mon Sep 17 00:00:00 2001 From: Miro Knejp Date: Sun, 9 Jul 2023 21:47:07 +0200 Subject: [PATCH 14/17] give the reuse-lint job a better name --- .github/workflows/reuse.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/reuse.yaml b/.github/workflows/reuse.yaml index 0dcaaec..f220960 100644 --- a/.github/workflows/reuse.yaml +++ b/.github/workflows/reuse.yaml @@ -13,6 +13,7 @@ defaults: jobs: lint: runs-on: ubuntu-latest + name: reuse lint steps: - uses: actions/checkout@v2 From 0e5e208391dc8b3322cdceb9c23cd85bcd9ad682 Mon Sep 17 00:00:00 2001 From: Miro Knejp Date: Sun, 9 Jul 2023 21:53:21 +0200 Subject: [PATCH 15/17] Add reference to AUTHORS.txt to copyright holders --- src/nuget.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nuget.config b/src/nuget.config index 490a775..1831ea1 100644 --- a/src/nuget.config +++ b/src/nuget.config @@ -1,5 +1,5 @@ From 44e66e071a3bef393b2681a37cbcc50c7d84ed3a Mon Sep 17 00:00:00 2001 From: Miro Knejp Date: Sun, 9 Jul 2023 22:01:39 +0200 Subject: [PATCH 16/17] Embed AUTHORS.txt in package --- src/Directory.Build.props | 2 +- src/dotVariant/dotVariant.csproj | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 2e0593d..5b57d90 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -3,7 +3,7 @@ Miro Knejp $(Author) - 2021 dotVariant Authors + 2021 dotVariant Authors (see AUTHORS.txt) A type-safe and space-efficient sum type for C# (comparable to unions in C or C++) BSL-1.0 README.md diff --git a/src/dotVariant/dotVariant.csproj b/src/dotVariant/dotVariant.csproj index 1f16d8f..c2e1011 100644 --- a/src/dotVariant/dotVariant.csproj +++ b/src/dotVariant/dotVariant.csproj @@ -24,6 +24,7 @@ + From 7f0373a6a514e284bfa17766af0165b8d90bb549 Mon Sep 17 00:00:00 2001 From: Miro Knejp Date: Mon, 10 Jul 2023 14:15:27 +0200 Subject: [PATCH 17/17] Update AUTHORS.txt Co-authored-by: Daniel --- AUTHORS.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AUTHORS.txt b/AUTHORS.txt index 9172873..a3e5c98 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -4,6 +4,6 @@ This file lists the dotVariant Authors in alphabetical order -Daniel +Daniel Henk jvbsl Miro Knejp