HPE Copyright Header Management
Ensure all source files have the required HPE copyright header to pass CI checks.
Copyright Format
Copyright {start_year}-{end_year} Hewlett Packard Enterprise Development LP
- start_year: Year the file was created
- end_year: Current year (must be updated annually)
- Placement: First line of the file, as a comment
Examples by Language
| Language |
Copyright Line |
| Python |
# Copyright 2024-2025 Hewlett Packard Enterprise Development LP |
| JavaScript/TypeScript |
// Copyright 2024-2025 Hewlett Packard Enterprise Development LP |
| Go |
// Copyright 2024-2025 Hewlett Packard Enterprise Development LP |
| SQL |
-- Copyright 2024-2025 Hewlett Packard Enterprise Development LP |
| HTML/XML |
<!-- Copyright 2024-2025 Hewlett Packard Enterprise Development LP --> |
| CSS |
/* Copyright 2024-2025 Hewlett Packard Enterprise Development LP */ |
Quick Reference
Check all files (dry run)
python scripts/copyright_check.py /path/to/repo --dry-run
Fix all files
python scripts/copyright_check.py /path/to/repo
CI check mode (fails if issues found)
python scripts/copyright_check.py /path/to/repo --check-only
Rules
- Missing header: Add
Copyright CURRENT_YEAR-CURRENT_YEAR Hewlett Packard Enterprise Development LP
- Outdated year: Update only the second year to current year (e.g.,
2024-2024 → 2024-2025)
- Exclusions: Respects both
.gitignore and .copyrightignore files (gitignore-style patterns)
Manual Fixes
When manually adding or fixing a copyright header:
- Determine the correct comment syntax for the file type
- Add as the very first line of the file
- Use current year for both years if creating new:
Copyright 2025-2025 Hewlett Packard Enterprise Development LP
- If updating existing, only change the second year
Supported File Types
The script supports 50+ file extensions including:
- Hash (#):
.py, .sh, .rb, .pl, .r, .jl
- Double-slash (//):
.js, .ts, .jsx, .tsx, .go, .c, .cpp, .java, .kt, .swift, .rs
- Dash-dash (--):
.sql, .lua, .hs
- Block comments:
.html, .xml, .css, .vue
Exclusion Patterns
The script automatically reads patterns from both .gitignore and .copyrightignore in the repo root. Use .copyrightignore for additional exclusions specific to copyright checking:
# Directories
vendor/**
third_party/**
# File types not in .gitignore
*.generated.go
# Specific files
Makefile
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: mvilrokx-claude-skills-hpe-copyright3description: HPE Copyright Header Management4---56# HPE Copyright Header Management78Ensure all source files have the required HPE copyright header to pass CI checks.910## Copyright Format1112```13Copyright {start_year}-{end_year} Hewlett Packard Enterprise Development LP14```1516- **start_year**: Year the file was created17- **end_year**: Current year (must be updated annually)18- **Placement**: First line of the file, as a comment1920### Examples by Language2122| Language | Copyright Line |23|----------|----------------|24| Python | `# Copyright 2024-2025 Hewlett Packard Enterprise Development LP` |25| JavaScript/TypeScript | `// Copyright 2024-2025 Hewlett Packard Enterprise Development LP` |26| Go | `// Copyright 2024-2025 Hewlett Packard Enterprise Development LP` |27| SQL | `-- Copyright 2024-2025 Hewlett Packard Enterprise Development LP` |28| HTML/XML | `<!-- Copyright 2024-2025 Hewlett Packard Enterprise Development LP -->` |29| CSS | `/* Copyright 2024-2025 Hewlett Packard Enterprise Development LP */` |3031## Quick Reference3233### Check all files (dry run)3435```bash36python scripts/copyright_check.py /path/to/repo --dry-run37```3839### Fix all files4041```bash42python scripts/copyright_check.py /path/to/repo43```4445### CI check mode (fails if issues found)4647```bash48python scripts/copyright_check.py /path/to/repo --check-only49```5051## Rules52531. **Missing header**: Add `Copyright CURRENT_YEAR-CURRENT_YEAR Hewlett Packard Enterprise Development LP`542. **Outdated year**: Update only the second year to current year (e.g., `2024-2024` → `2024-2025`)553. **Exclusions**: Respects both `.gitignore` and `.copyrightignore` files (gitignore-style patterns)5657## Manual Fixes5859When manually adding or fixing a copyright header:60611. Determine the correct comment syntax for the file type622. Add as the **very first line** of the file633. Use current year for both years if creating new: `Copyright 2025-2025 Hewlett Packard Enterprise Development LP`644. If updating existing, only change the second year6566## Supported File Types6768The script supports 50+ file extensions including:6970- **Hash (#)**: `.py`, `.sh`, `.rb`, `.pl`, `.r`, `.jl`71- **Double-slash (//)**: `.js`, `.ts`, `.jsx`, `.tsx`, `.go`, `.c`, `.cpp`, `.java`, `.kt`, `.swift`, `.rs`72- **Dash-dash (--)**: `.sql`, `.lua`, `.hs`73- **Block comments**: `.html`, `.xml`, `.css`, `.vue`7475## Exclusion Patterns7677The script automatically reads patterns from both `.gitignore` and `.copyrightignore` in the repo root. Use `.copyrightignore` for additional exclusions specific to copyright checking:7879```80# Directories81vendor/**82third_party/**8384# File types not in .gitignore85*.generated.go8687# Specific files88Makefile89```9091---92> Converted and distributed by [TomeVault](https://tomevault.io/claim/mvilrokx) — claim your Tome and manage your conversions.93<!-- tomevault:4.0:skill_md:2026-04-13 -->