diff --git a/.editorconfig b/.editorconfig index e24e95e..6203b6e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) +# +# 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 (see AUTHORS.txt)\n\nSPDX-License-Identifier: BSL-1.0 dotnet_diagnostic.IDE0073.severity = error [*.cs] diff --git a/.gitattributes b/.gitattributes index 176a458..af91353 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,5 @@ +# SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) +# +# SPDX-License-Identifier: CC0-1.0 + * text=auto diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index b560063..7a8e16b 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,6 +1,9 @@ -# Run dotVariant.Test against the pre-built package instead of -# ProjectReference. This ensures that both the generator -# and the runtime library are packaged correctly. +# SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) +# +# SPDX-License-Identifier: BSL-1.0 + +# Read the version number from the tag, build the package in release +# configuration and embed third party licenses. name: publish on: push: @@ -18,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/.github/workflows/reuse.yaml b/.github/workflows/reuse.yaml new file mode 100644 index 0000000..f220960 --- /dev/null +++ b/.github/workflows/reuse.yaml @@ -0,0 +1,26 @@ +# 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 +on: pull_request + +defaults: + run: + shell: pwsh + +jobs: + lint: + runs-on: ubuntu-latest + name: reuse lint + 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 diff --git a/.github/workflows/test-package.yaml b/.github/workflows/test-package.yaml index 11fb9d5..a929c51 100644 --- a/.github/workflows/test-package.yaml +++ b/.github/workflows/test-package.yaml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) +# +# 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..9c9471e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) +# +# SPDX-License-Identifier: BSL-1.0 + name: continuous test on: [push, pull_request] diff --git a/.gitignore b/.gitignore index 4723f6a..c612abe 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,10 @@ +# SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) +# +# SPDX-License-Identifier: CC0-1.0 + .vs/ bin/ obj/ *.user nuget.exe +*.binlog diff --git a/.reuse/dep5 b/.reuse/dep5 new file mode 100644 index 0000000..d8e082d --- /dev/null +++ b/.reuse/dep5 @@ -0,0 +1,19 @@ +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 files (project files, etc) +Files: *.sln *.csproj *.shproj *.props *.projitems +Copyright: 2021 The dotVariant Authors (see AUTHORS.txt) +License: CC0-1.0 + +# Configuration files +Files: */launchSettings.json */nuget.config +Copyright: 2021 The dotVariant Authors (see AUTHORS.txt) +License: CC0-1.0 + +# Tool-generated test sample output +Files: src/dotVariant.Generator.Test/samples/*.out.cs +Copyright: 2021 The dotVariant Authors (see AUTHORS.txt) +License: CC0-1.0 diff --git a/AUTHORS.txt b/AUTHORS.txt new file mode 100644 index 0000000..a3e5c98 --- /dev/null +++ b/AUTHORS.txt @@ -0,0 +1,9 @@ +# SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) +# +# SPDX-License-Identifier: CC0-1.0 + +This file lists the dotVariant Authors in alphabetical order + +Daniel Henk +jvbsl +Miro Knejp 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. diff --git a/README.md b/README.md index 2887b9a..25e9107 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/Directory.Build.props b/src/Directory.Build.props index 66ca259..5b57d90 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -3,17 +3,21 @@ Miro Knejp $(Author) - Copyright © Miro Knejp $([System.DateTime]::Now.Year) + 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 true variant;sum-types;functional;union;algebraic-data-types;discriminated-unions https://github.com/mknejp/dotvariant 999.0.0 true + $(MSBuildThisFileDirectory)../ + false $(DefineConstants);CI + false diff --git a/src/dotVariant.Generator.Test/GeneratorTools.Test.cs b/src/dotVariant.Generator.Test/GeneratorTools.Test.cs index e86eb77..2b43273 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 (see AUTHORS.txt) // -// 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..cb81d5c 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 (see AUTHORS.txt) // -// 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..a55a070 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 (see AUTHORS.txt) // -// 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..e75bca9 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 (see AUTHORS.txt) // -// 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..b1e379e 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 (see AUTHORS.txt) // -// 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..b36f440 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 (see AUTHORS.txt) // -// 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..a4b9fe1 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 (see AUTHORS.txt) // -// 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..553d640 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 (see AUTHORS.txt) // -// 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..cbb9c95 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 (see AUTHORS.txt) // -// 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; @@ -32,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) { @@ -95,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/diagnostics/Clean.cs b/src/dotVariant.Generator.Test/diagnostics/Clean.cs index 831581f..0a73b84 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 (see AUTHORS.txt) // -// 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..7337cf7 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 (see AUTHORS.txt) // -// 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..2dcc558 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 (see AUTHORS.txt) // -// 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..4efd1e5 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 (see AUTHORS.txt) // -// 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..b4d9f97 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 (see AUTHORS.txt) // -// 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..0a44f92 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 (see AUTHORS.txt) // -// 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..28bc19b 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 (see AUTHORS.txt) // -// 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..627826b 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 (see AUTHORS.txt) // -// 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..4d0d7cb 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 (see AUTHORS.txt) // -// 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..523dd7b 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 (see AUTHORS.txt) // -// 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..8e1cd65 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 (see AUTHORS.txt) // -// 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..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,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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-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.in.cs b/src/dotVariant.Generator.Test/samples/Variant-class-nullable-enable.in.cs index 7223c61..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,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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-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.in.cs b/src/dotVariant.Generator.Test/samples/Variant-disposable.in.cs index 6eab372..6ea0096 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 (see AUTHORS.txt) // -// 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-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.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-T-as-nullable.in.cs index 75fe749..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,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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-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.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-class-nullable.in.cs index f81e2c4..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,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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.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.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-class.in.cs index 088d011..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,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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.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.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-multiple.in.cs index 3e4b3fc..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,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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.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.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-notnull.in.cs index 8350137..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,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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.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.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-struct.in.cs index 8c50e5f..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,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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.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.in.cs b/src/dotVariant.Generator.Test/samples/Variant-generic-unbounded.in.cs index f9fb3a6..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,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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.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.in.cs b/src/dotVariant.Generator.Test/samples/Variant-no-implicit-conversion.in.cs index 7316922..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,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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-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.in.cs b/src/dotVariant.Generator.Test/samples/Variant-nullable-value-type.in.cs index 521efad..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,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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-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.in.cs b/src/dotVariant.Generator.Test/samples/Variant-public.in.cs index d79643c..2492cb8 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 (see AUTHORS.txt) // -// 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-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.in.cs b/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-disable.in.cs index d985688..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,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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.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.in.cs b/src/dotVariant.Generator.Test/samples/Variant-struct-nullable-enable.in.cs index aa6a4d1..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,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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-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) -// - diff --git a/src/dotVariant.Generator/Descriptor.cs b/src/dotVariant.Generator/Descriptor.cs index 4dd41aa..d548a61 100644 --- a/src/dotVariant.Generator/Descriptor.cs +++ b/src/dotVariant.Generator/Descriptor.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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..2601bdc 100644 --- a/src/dotVariant.Generator/Diagnose.cs +++ b/src/dotVariant.Generator/Diagnose.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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..03783ff 100644 --- a/src/dotVariant.Generator/Inspect.cs +++ b/src/dotVariant.Generator/Inspect.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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..fb2aaf9 100644 --- a/src/dotVariant.Generator/RenderInfo.cs +++ b/src/dotVariant.Generator/RenderInfo.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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..a872a8e 100644 --- a/src/dotVariant.Generator/Renderer.cs +++ b/src/dotVariant.Generator/Renderer.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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..21eedc6 100644 --- a/src/dotVariant.Generator/SourceGenerator.cs +++ b/src/dotVariant.Generator/SourceGenerator.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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/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.Generator/templates/IEnumerable.scriban-cs b/src/dotVariant.Generator/templates/IEnumerable.scriban-cs index 459ddf2..291ff36 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 (see AUTHORS.txt) +# +# 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..d2949ff 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 (see AUTHORS.txt) +# +# 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..adea842 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 (see AUTHORS.txt) +# +# 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..f89acf3 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 (see AUTHORS.txt) +# +# 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..7eb4318 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 (see AUTHORS.txt) +# +# SPDX-License-Identifier: BSL-1.0 ~}} {{~ ## Global input variables are fed from C# RenderInfo members: diff --git a/src/dotVariant.Runtime/Accessor.cs b/src/dotVariant.Runtime/Accessor.cs index 7bc9640..e0a3682 100644 --- a/src/dotVariant.Runtime/Accessor.cs +++ b/src/dotVariant.Runtime/Accessor.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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..5067773 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 (see AUTHORS.txt) // -// 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..1cd8f17 100644 --- a/src/dotVariant.Runtime/NoImplicitConversionAttribute.cs +++ b/src/dotVariant.Runtime/NoImplicitConversionAttribute.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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..bfe49ec 100644 --- a/src/dotVariant.Runtime/NullableAttributes.cs +++ b/src/dotVariant.Runtime/NullableAttributes.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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..d98625a 100644 --- a/src/dotVariant.Runtime/VariantAttribute.cs +++ b/src/dotVariant.Runtime/VariantAttribute.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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..288e606 100644 --- a/src/dotVariant.Test/Helpers.cs +++ b/src/dotVariant.Test/Helpers.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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..357000a 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 (see AUTHORS.txt) // -// 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..daa5654 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 (see AUTHORS.txt) // -// 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..78b20e5 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 (see AUTHORS.txt) // -// 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..f277302 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 (see AUTHORS.txt) // -// 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..37d0e70 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 (see AUTHORS.txt) // -// 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..3ca9a44 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 (see AUTHORS.txt) // -// 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..40516d7 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 (see AUTHORS.txt) // -// 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..8cbeabf 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 (see AUTHORS.txt) // -// 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..bca1fac 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 (see AUTHORS.txt) // -// 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..3190359 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 (see AUTHORS.txt) // -// 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..010ac7c 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 (see AUTHORS.txt) // -// 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..72fb397 100644 --- a/src/dotVariant.Test/Variants.cs +++ b/src/dotVariant.Test/Variants.cs @@ -1,8 +1,6 @@ +// SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) // -// 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/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..c2e1011 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,10 @@ - + + + @@ -33,4 +38,12 @@ + + + + + + + + diff --git a/src/nuget.config b/src/nuget.config index 368c09d..1831ea1 100644 --- a/src/nuget.config +++ b/src/nuget.config @@ -1,4 +1,9 @@ - + +