Repository navigation
Closed
Description
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
*.csfiles inReqIFSharp,ReqIFSharp.Extensionsand 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. NOTICEsaysCopyright 2014-2026, the file headers andDirectory.Build.propssay2017-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
.csfile contains the long notice text any more (git grep "Licensed under the Apache License"finds onlyLICENSEandNOTICE); every.csfile hasSPDX-License-Identifier: Apache-2.0and anSPDX-FileCopyrightTextline. - 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
Metadata
Metadata
Assignees
Labels
No labels
Activity