Skip to content

chore(license): state GPL-3.0-or-later in every file and manifest - #38

Merged
Pasithea0 merged 1 commit into
mainfrom
chore/licensing
Nov 10, 2026
Merged

Pasithea0 merged 1 commit into
mainfrom
chore/licensing

Conversation

@Pasithea0

@Pasithea0 Pasithea0 commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Why

The intent for this repo is GPL-3.0-or-later, but nothing in it said so: LICENSE
is the plain FSF GPL-3 text, no source file carried an identifier — the .csproj had no PackageLicenseExpression at all. Or-later is only
worth anything if it is written down while the contribution is being made — it is what
lets the project adopt a future GPL version without hunting down every contributor for a
re-grant, and right now a downstream author copying a file, or reading the sidebar, cannot
tell whether GPLv4 is permitted.

What the PR does

File Change
LICENSE Left byte-identical to the FSF text — see the note below on why the notice is not prepended here.
41 source files (40 .cs, 1 .js) // SPDX-License-Identifier: GPL-3.0-or-later plus a copyright line.
TheIntroDB/Configuration/configPage.html <!-- SPDX-License-Identifier: GPL-3.0-or-later --> at the top (the file is an HTML fragment, with no doctype).
TheIntroDB/TheIntroDB.csproj, TheIntroDB.Tests/TheIntroDB.Tests.csproj <PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression> added to each.
README.md A License section naming the identifier (GPL-3.0-or-later), carrying the FSF's permission notice (“either version 3 of the License, or (at your option) any later version”), and linking to LICENSE.

No functional change: comments, manifest fields and prose.

LICENSE is deliberately untouched

The obvious move is to prepend that notice to LICENSE itself. I tried exactly that first,
and backed it out on the evidence:

  • GitHub's license detector cannot report GPL-3.0-or-later from a license file. The
    vendored database licensee matches against (choosealicense.com) carries GPL-3.0,
    GPL-2.0, AGPL-3.0, LGPL-* — there is no gpl-3.0-or-later entry, and the file matcher
    returns the matched entry's spdx_id. The package-manifest matcher normalises -or-later
    away (SPDX_SUFFIX_REGEX in matchers/package.rb), so it cannot produce it either. Sampled
    against twelve real GPL projects (obsproject/obs-studio, gnuradio/gnuradio, KDE/krita,
    mpv-player/mpv, blender/blender, qBittorrent/qBittorrent, …): every one reports
    GPL-2.0, GPL-3.0 or NOASSERTION — none report an -or-later id.
  • Augmenting LICENSE makes it strictly worse. With the notice prepended, the branch
    reported NOASSERTION instead of GPL-3.0: the file no longer matches the canonical text
    closely enough, and the repo loses the license it did have.

So the grant is stated where it is both human-visible and machine-readable: the SPDX
identifier on every file (the location the SPDX spec prescribes for a per-file grant), the
manifest field, and the README. LICENSE stays byte-identical to what the FSF ships, so the
sidebar keeps reading GPL-3.0. If you would rather have the notice physically inside
LICENSE and accept the sidebar saying "Other", that is a two-line change — say the word.

Tests

  • dotnet test TheIntroDB.sln — Failed: 0, Passed: 118, Total: 118.
  • gh api repos/TheIntroDB/emby-plugin/license?ref=chore/licensing — GPL-3.0, unchanged from main.

Not in this PR

  • Any release/version bump (publish/ artifacts are untouched).

@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 47 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2e80ec0c-f7da-49ee-bf04-82f6d28de5b2
Commits

Reviewing files that changed from the base of the PR and between 31bdfe6 and 37fb4ba.

Files selected for processing: 45

  • README.md
  • TheIntroDB.Tests/ChapterMarkerPolicyTests.cs
  • TheIntroDB.Tests/LegacyMarkerAdoptionTests.cs
  • TheIntroDB.Tests/OnDemandFetchGateTests.cs
  • TheIntroDB.Tests/ScanSafetyTests.cs
  • TheIntroDB.Tests/SegmentRefreshPolicyTests.cs
  • TheIntroDB.Tests/SegmentTimestampTests.cs
  • TheIntroDB.Tests/TheIntroDB.Tests.csproj
  • TheIntroDB.Tests/TheIntroDbNotFoundCacheTests.cs
  • TheIntroDB.Tests/V4MigrationTests.cs
  • TheIntroDB/Api/ApiKeyValidationService.cs
  • TheIntroDB/Api/LibraryProbeService.cs
  • TheIntroDB/Api/MediaFetchResult.cs
  • TheIntroDB/Api/MediaResponse.cs
  • TheIntroDB/Api/NotFoundCacheService.cs
  • TheIntroDB/Api/SegmentTimestamp.cs
  • TheIntroDB/Api/SegmentsService.cs
  • TheIntroDB/Api/TheIntroDbApiKeyValidationService.cs
  • TheIntroDB/Api/TheIntroDbClient.cs
  • TheIntroDB/Api/TheIntroDbUserStats.cs
  • TheIntroDB/Configuration/PluginConfiguration.cs
  • TheIntroDB/Configuration/configPage.html
  • TheIntroDB/Configuration/configPage.js
  • TheIntroDB/Data/ITheIntroDbSegmentRepository.cs
  • TheIntroDB/Data/TheIntroDbSegmentRepository.cs
  • TheIntroDB/EntryPoints/TheIntroDbChapterMarkerPersistenceEntryPoint.cs
  • TheIntroDB/EntryPoints/TheIntroDbUsageReportingEntryPoint.cs
  • TheIntroDB/Models/MediaSegmentData.cs
  • TheIntroDB/Models/OwnedChapterMarker.cs
  • TheIntroDB/Models/StoredMediaSegment.cs
  • TheIntroDB/Plugin.cs
  • TheIntroDB/Providers/SegmentFetchResult.cs
  • TheIntroDB/Providers/TheIntroDbSegmentProvider.cs
  • TheIntroDB/Services/AnonymousUsageReporter.cs
  • TheIntroDB/Services/ChapterMarkerPolicy.cs
  • TheIntroDB/Services/PluginLogger.cs
  • TheIntroDB/Services/ScanLookupBudget.cs
  • TheIntroDB/Services/SegmentRefreshPolicy.cs
  • TheIntroDB/Services/TheIntroDbChapterMarkerWriter.cs
  • TheIntroDB/Services/TheIntroDbLegacyMarkerAdoption.cs
  • TheIntroDB/Services/TheIntroDbLibraryScanner.cs
  • TheIntroDB/Services/TheIntroDbNotFoundCache.cs
  • TheIntroDB/Tasks/TheIntroDbMediaSegmentPreviewTask.cs
  • TheIntroDB/Tasks/TheIntroDbMediaSegmentScanTask.cs
  • TheIntroDB/TheIntroDB.csproj

No actionable comments were generated in the recent review.

Walkthrough

The README documents the GPL-3.0-or-later license. Both project files declare the license expression, and source files receive SPDX license and 2026 copyright headers. No executable behavior or test logic changed.

Changes: Project licensing

Layer / File(s) Summary
License declarations
README.md, TheIntroDB/TheIntroDB.csproj, TheIntroDB.Tests/TheIntroDB.Tests.csproj
The README adds a GPL-3.0-or-later license notice and link. Both project files declare GPL-3.0-or-later as the package license expression.
Application source headers
TheIntroDB/Api/*, TheIntroDB/Configuration/*, TheIntroDB/Data/*, TheIntroDB/EntryPoints/*, TheIntroDB/Models/*, TheIntroDB/Plugin.cs, TheIntroDB/Providers/*, TheIntroDB/Services/*, TheIntroDB/Tasks/*
Application source files receive GPL-3.0-or-later SPDX identifiers and 2026 copyright notices.
Test source headers
TheIntroDB.Tests/*
Test source files receive GPL-3.0-or-later SPDX identifiers and 2026 copyright notices. Test logic is unchanged.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Merge Risk: Minimal · previous review 31bdf

The changes consistently declare GPL-3.0-or-later without changing application or test behavior. No merge-blocking issue is identified; merge after normal checks.

Pre-merge checks: Passed 5

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: adding a GPL-3.0-or-later license statement to every source file and project manifest. The objectives confirm this is the core of PR #38: SPDX identifiers and copyrigh…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: adding a GPL-3.0-or-later license statement to every source file and project manifest. The objectives confirm this is the core of PR #38: SPDX identifiers and copyright lines in 41 files, a PackageLicenseExpression in both project files, and a README License section. The title uses the conventional commit prefix and stays concise. It does not mention the README section or the unchanged LICENSE file, which is acceptable because the title does not need to cover every detail.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 41 files. (3 skipped: 3 unsupported.)

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 560c46f8-f3e6-4d2a-9975-04b8ab046103
Commits

Reviewing files that changed from the base of the PR and between 0664691 and 31bdfe6.

Files selected for processing: 44

  • README.md
  • TheIntroDB.Tests/ChapterMarkerPolicyTests.cs
  • TheIntroDB.Tests/LegacyMarkerAdoptionTests.cs
  • TheIntroDB.Tests/OnDemandFetchGateTests.cs
  • TheIntroDB.Tests/ScanSafetyTests.cs
  • TheIntroDB.Tests/SegmentRefreshPolicyTests.cs
  • TheIntroDB.Tests/SegmentTimestampTests.cs
  • TheIntroDB.Tests/TheIntroDB.Tests.csproj
  • TheIntroDB.Tests/TheIntroDbNotFoundCacheTests.cs
  • TheIntroDB.Tests/V4MigrationTests.cs
  • TheIntroDB/Api/ApiKeyValidationService.cs
  • TheIntroDB/Api/LibraryProbeService.cs
  • TheIntroDB/Api/MediaFetchResult.cs
  • TheIntroDB/Api/MediaResponse.cs
  • TheIntroDB/Api/NotFoundCacheService.cs
  • TheIntroDB/Api/SegmentTimestamp.cs
  • TheIntroDB/Api/SegmentsService.cs
  • TheIntroDB/Api/TheIntroDbApiKeyValidationService.cs
  • TheIntroDB/Api/TheIntroDbClient.cs
  • TheIntroDB/Api/TheIntroDbUserStats.cs
  • TheIntroDB/Configuration/PluginConfiguration.cs
  • TheIntroDB/Configuration/configPage.js
  • TheIntroDB/Data/ITheIntroDbSegmentRepository.cs
  • TheIntroDB/Data/TheIntroDbSegmentRepository.cs
  • TheIntroDB/EntryPoints/TheIntroDbChapterMarkerPersistenceEntryPoint.cs
  • TheIntroDB/EntryPoints/TheIntroDbUsageReportingEntryPoint.cs
  • TheIntroDB/Models/MediaSegmentData.cs
  • TheIntroDB/Models/OwnedChapterMarker.cs
  • TheIntroDB/Models/StoredMediaSegment.cs
  • TheIntroDB/Plugin.cs
  • TheIntroDB/Providers/SegmentFetchResult.cs
  • TheIntroDB/Providers/TheIntroDbSegmentProvider.cs
  • TheIntroDB/Services/AnonymousUsageReporter.cs
  • TheIntroDB/Services/ChapterMarkerPolicy.cs
  • TheIntroDB/Services/PluginLogger.cs
  • TheIntroDB/Services/ScanLookupBudget.cs
  • TheIntroDB/Services/SegmentRefreshPolicy.cs
  • TheIntroDB/Services/TheIntroDbChapterMarkerWriter.cs
  • TheIntroDB/Services/TheIntroDbLegacyMarkerAdoption.cs
  • TheIntroDB/Services/TheIntroDbLibraryScanner.cs
  • TheIntroDB/Services/TheIntroDbNotFoundCache.cs
  • TheIntroDB/Tasks/TheIntroDbMediaSegmentPreviewTask.cs
  • TheIntroDB/Tasks/TheIntroDbMediaSegmentScanTask.cs
  • TheIntroDB/TheIntroDB.csproj

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

The intent is or-later, but nothing in the repo said so, so a consumer cannot tell
whether GPLv4 is permitted. The grant only helps if it is made while the
contribution is, while a re-grant would mean writing to every contributor.

- 41 source files (40 `.cs`, 1 `.js`) | `// SPDX-License-Identifier: GPL-3.0-or-later` plus a copyright line.
- `TheIntroDB/Configuration/configPage.html` | `<!-- SPDX-License-Identifier: GPL-3.0-or-later -->` at the top (the file is an HTML fragment, with no doctype).
- `TheIntroDB/TheIntroDB.csproj`, `TheIntroDB.Tests/TheIntroDB.Tests.csproj` | `<PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression>` added to each.

LICENSE is left byte-identical to the FSF text. Prepending the notice above it was
tried first and reverted on evidence: GitHub's detector has no GPL-3.0-or-later entry
to match against (the vendored database only carries GPL-3.0, and the package matcher
strips -or-later), and an augmented LICENSE stops matching the canonical text at all -
the repo went from GPL-3.0 to NOASSERTION. The per-file SPDX identifier, the manifest
field and the README are where the grant is readable.

Verified:
- `dotnet test TheIntroDB.sln` — **Failed: 0, Passed: 118, Total: 118**.
- `gh api repos/TheIntroDB/emby-plugin/license?ref=chore/licensing` — `GPL-3.0`, unchanged from `main`.
@Pasithea0
Pasithea0 merged commit beea26c into main Nov 10, 2026
3 checks passed
@Pasithea0
Pasithea0 deleted the chore/licensing branch November 10, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant