Skip to content

[Feature]: Replace the Apache-2.0 notice in source headers with the short SPDX form #103

Closed

Description

@samatstariongroup

What type of issue is this?

  • Bug report
  • Feature request

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am running the latest version of the reqifsharp
  • I have searched open and closed issues to ensure it has not already been reported

Description

Every C# source file (145 files) starts with the 17-line Apache-2.0 notice:

// -------------------------------------------------------------------------------------------------
// <copyright file="ReqIF.cs" company="Starion Group S.A.">
//
//   Copyright 2017-2026 Starion Group S.A.
//
//   Licensed under the Apache License, Version 2.0 (the "License");
//   ... (10 more lines of the standard notice)
//
// </copyright>
// ------------------------------------------------------------------------------------------------

Replace it with the short form using SPDX tags, which tools (REUSE, license scanners, SBOM generators) read without parsing the notice text:

// -------------------------------------------------------------------------------------------------
// <copyright file="ReqIF.cs" company="Starion Group S.A.">
//
//   SPDX-FileCopyrightText: 2017-2026 Starion Group S.A.
//   SPDX-License-Identifier: Apache-2.0
//
// </copyright>
// ------------------------------------------------------------------------------------------------

The full licence text stays in LICENSE, the package keeps <PackageLicenseExpression>Apache-2.0</PackageLicenseExpression> (Directory.Build.targets), and NOTICE stays as is.

Places to change

  • All 145 *.cs files in ReqIFSharp, ReqIFSharp.Extensions and the test projects.
  • The ReSharper file-header template in ReqIFSharp.sln.DotSettings (/Default/CodeStyle/FileHeader/FileHeaderText), so new files get the short form.
  • The convention in CLAUDE.md ("Every source file starts with the Apache-2.0 Starion Group copyright header ...").

To decide

  • Keep the <copyright file=... company=...> block around the SPDX lines (as above), or use only the two SPDX lines.
  • NOTICE says Copyright 2014-2026, the file headers and Directory.Build.props say 2017-2026. Pick one year range for all of them.
  • Optionally add a REUSE.toml (or .reuse/dep5) for files that cannot carry a header (test data, images, .sln, .csproj), and check the result with the REUSE tool in CI.

Acceptance criteria

  • No .cs file contains the long notice text any more (git grep "Licensed under the Apache License" finds only LICENSE and NOTICE); every .cs file has SPDX-License-Identifier: Apache-2.0 and an SPDX-FileCopyrightText line.
  • A new file created with ReSharper gets the short header.
  • The build has no warnings and all tests pass.
  • CHANGELOG: an entry under [Unreleased] (Changed), as it concerns the published sources.

System Configuration

  • reqifsharp version: development (ReqIFSharp 10.1.2, ReqIFSharp.Extensions 5.2.2)
  • Environment (Operating system, version and so on): any
  • .NET Framework version: n/a
  • Additional information: source headers only; no change to the packages' licence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions