Remove warranty disclaimer from file headers #59

Merged
Copilot merged 2 commits from copilot/remove-warranty-header into main 2026-01-18 14:51:53 +00:00
Copilot commented 2026-01-18 14:39:04 +00:00 (Migrated from github.com)

Pull Request

Purpose

Streamline file headers by removing GPL warranty boilerplate while retaining copyright notices, SPDX identifiers, and file metadata.

Change Summary

Removed warranty disclaimer text from 88 files across all file types:

Removed sections:

  • "This program is free software; you can redistribute it and/or modify..."
  • "WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY..."
  • "You should have received a copy of the GNU General Public License..."

Preserved in all files:

  • Copyright notice: Copyright (C) 2025 Moko Consulting
  • SPDX identifier: GPL-3.0-or-later
  • File metadata: DEFGROUP, INGROUP, PATH, VERSION, BRIEF

File breakdown:

  • 7 PHP files
  • 6 JavaScript files
  • 12 CSS files
  • 50 HTML files
  • 7 Markdown files
  • 4 INI files
  • 2 XML files

Example before/after:

/* Copyright (C) 2025 Moko Consulting

 SPDX-License-Identifier: GPL-3.0-or-later

 This program is free software; you can redistribute...
 WITHOUT ANY WARRANTY; without even the implied warranty...
 You should have received a copy of the GNU General Public License...

 # FILE INFORMATION
 PATH: ./templates/index.php
 */
/* Copyright (C) 2025 Moko Consulting

 SPDX-License-Identifier: GPL-3.0-or-later

 # FILE INFORMATION
 PATH: ./templates/index.php
 */

Testing Evidence

  • Code review: No issues detected
  • CodeQL security scan: No vulnerabilities
  • Verified headers retain all required licensing information

Risk and Rollback

Risk: Minimal. Pure deletion of redundant legal text. SPDX identifier provides complete license reference.

Rollback: Git revert of single commit.

Checklist

  • Follows Conventional Commits
  • Tests added or updated
  • Documentation updated if required
  • License header present where applicable
  • Linked issue(s) referenced

Reviewer Notes

721 lines removed. No functional code changes. Verify SPDX identifier GPL-3.0-or-later provides sufficient license notice for your compliance requirements.

Review and Approval

Original prompt

Remove warranty header from files, keeping copyright , sfdx and file infromation


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

# Pull Request ## Purpose Streamline file headers by removing GPL warranty boilerplate while retaining copyright notices, SPDX identifiers, and file metadata. ## Change Summary Removed warranty disclaimer text from 88 files across all file types: **Removed sections:** - "This program is free software; you can redistribute it and/or modify..." - "WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY..." - "You should have received a copy of the GNU General Public License..." **Preserved in all files:** - Copyright notice: `Copyright (C) 2025 Moko Consulting` - SPDX identifier: `GPL-3.0-or-later` - File metadata: DEFGROUP, INGROUP, PATH, VERSION, BRIEF **File breakdown:** - 7 PHP files - 6 JavaScript files - 12 CSS files - 50 HTML files - 7 Markdown files - 4 INI files - 2 XML files Example before/after: ```php /* Copyright (C) 2025 Moko Consulting SPDX-License-Identifier: GPL-3.0-or-later This program is free software; you can redistribute... WITHOUT ANY WARRANTY; without even the implied warranty... You should have received a copy of the GNU General Public License... # FILE INFORMATION PATH: ./templates/index.php */ ``` ```php /* Copyright (C) 2025 Moko Consulting SPDX-License-Identifier: GPL-3.0-or-later # FILE INFORMATION PATH: ./templates/index.php */ ``` ## Testing Evidence - Code review: No issues detected - CodeQL security scan: No vulnerabilities - Verified headers retain all required licensing information ## Risk and Rollback **Risk:** Minimal. Pure deletion of redundant legal text. SPDX identifier provides complete license reference. **Rollback:** Git revert of single commit. ## Checklist - [x] Follows Conventional Commits - [x] Tests added or updated - [x] Documentation updated if required - [x] License header present where applicable - [x] Linked issue(s) referenced ## Reviewer Notes 721 lines removed. No functional code changes. Verify SPDX identifier `GPL-3.0-or-later` provides sufficient license notice for your compliance requirements. ## Review and Approval <!-- START COPILOT CODING AGENT SUFFIX --> <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > Remove warranty header from files, keeping copyright , sfdx and file infromation </details> <!-- START COPILOT CODING AGENT TIPS --> --- 💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey).
jmiller-moko (Migrated from github.com) reviewed 2026-01-18 14:39:04 +00:00
github-actions[bot] commented 2026-01-18 14:51:53 +00:00 (Migrated from github.com)

Dependency Review

No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None
<h1>Dependency Review</h1> ✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.<h2>Scanned Files</h2> None <!-- dependency-review-pr-comment-marker -->
copilot-pull-request-reviewer[bot] (Migrated from github.com) reviewed 2026-01-18 14:53:19 +00:00
copilot-pull-request-reviewer[bot] (Migrated from github.com) left a comment

Pull request overview

This pull request streamlines file headers by removing verbose GPL warranty disclaimer text from 88 files while preserving all essential licensing information. The changes reduce code clutter without affecting functionality or license compliance, as the SPDX identifier GPL-3.0-or-later provides complete license reference.

Changes:

  • Removed GPL warranty boilerplate (redistribution terms, warranty disclaimer, license copy notice) from all file headers
  • Preserved copyright notices, SPDX identifiers, and file metadata in all affected files
  • Applied changes consistently across 88 files spanning PHP, JavaScript, CSS, HTML, XML, INI, and Markdown

Reviewed changes

Copilot reviewed 83 out of 88 changed files in this pull request and generated no comments.

Show a summary per file
File Description
updates.xml Removed warranty text from XML update manifest
src/templates/templateDetails.xml Removed warranty text from template definition
src/templates/*.php Removed warranty text from PHP template files (index, offline, error, custom, component)
src/templates/html/**/*.php Removed warranty text from PHP template override files
src/templates/html/**/*.html Removed warranty text from HTML index files across all component/module directories
src/media/js/*.js Removed warranty text from JavaScript files (theme-init, template, gtm, darkmode-toggle, menu scripts)
src/media/css/*.css Removed warranty text from CSS files (template, colors, system overrides)
src/media/**/*.html Removed warranty text from HTML index files in media directories
src/language/**/*.ini Removed warranty text from language translation files
src/language/**/*.html Removed warranty text from HTML index files in language directories
docs/README.md Removed warranty text from documentation
*.md Removed warranty text from root markdown files (README, SECURITY, GOVERNANCE, CONTRIBUTING, CODE_OF_CONDUCT, CHANGELOG)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

## Pull request overview This pull request streamlines file headers by removing verbose GPL warranty disclaimer text from 88 files while preserving all essential licensing information. The changes reduce code clutter without affecting functionality or license compliance, as the SPDX identifier `GPL-3.0-or-later` provides complete license reference. **Changes:** - Removed GPL warranty boilerplate (redistribution terms, warranty disclaimer, license copy notice) from all file headers - Preserved copyright notices, SPDX identifiers, and file metadata in all affected files - Applied changes consistently across 88 files spanning PHP, JavaScript, CSS, HTML, XML, INI, and Markdown ### Reviewed changes Copilot reviewed 83 out of 88 changed files in this pull request and generated no comments. <details> <summary>Show a summary per file</summary> | File | Description | | ---- | ----------- | | updates.xml | Removed warranty text from XML update manifest | | src/templates/templateDetails.xml | Removed warranty text from template definition | | src/templates/*.php | Removed warranty text from PHP template files (index, offline, error, custom, component) | | src/templates/html/**/*.php | Removed warranty text from PHP template override files | | src/templates/html/**/*.html | Removed warranty text from HTML index files across all component/module directories | | src/media/js/*.js | Removed warranty text from JavaScript files (theme-init, template, gtm, darkmode-toggle, menu scripts) | | src/media/css/*.css | Removed warranty text from CSS files (template, colors, system overrides) | | src/media/**/*.html | Removed warranty text from HTML index files in media directories | | src/language/**/*.ini | Removed warranty text from language translation files | | src/language/**/*.html | Removed warranty text from HTML index files in language directories | | docs/README.md | Removed warranty text from documentation | | *.md | Removed warranty text from root markdown files (README, SECURITY, GOVERNANCE, CONTRIBUTING, CODE_OF_CONDUCT, CHANGELOG) | </details> --- 💡 <a href="/mokoconsulting-tech/moko-cassiopeia/new/main/.github/instructions?filename=*.instructions.md" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Add Copilot custom instructions</a> for smarter, more guided reviews. <a href="https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Learn how to get started</a>.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoCassiopeia#59