Skip to content

Add support for headers within leading region wrappers in licence hea… - #47

Merged
layfield-ccdc merged 2 commits into
mainfrom
license-header-region-boundary
Oct 19, 2026
Merged

layfield-ccdc merged 2 commits into
mainfrom
license-header-region-boundary

Conversation

@layfield-ccdc

Copy link
Copy Markdown
Contributor

…der checks NO_JIRA

@layfield-ccdc

Copy link
Copy Markdown
Contributor Author

The checks for licenses should really check the file and not a header

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved issues remain with directive recognition and repairing invalid wrapped headers.

2 open issues
What changed in this PR

Adds support for validating licence headers inside leading #region wrappers, with regression tests.

Changes:

  • Adds region-wrapper handling during validation.
  • Adds wrapped-header test coverage.
  • Requires directive-boundary checks and wrapper-aware repair logic.
File Summary
test/​test_licence_headers.py Adds tests for wrapped licence headers.
main/​licence_headers.py Implements region-aware validation; repair handling remains incomplete.

Review effort: Lite

Comment thread main/licence_headers.py Outdated
Comment thread main/licence_headers.py
@layfield-ccdc
layfield-ccdc merged commit b30760c into main Oct 19, 2026
6 checks passed
@layfield-ccdc
layfield-ccdc deleted the license-header-region-boundary branch October 19, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants