Skip to content

Commit 03b730c

Browse files
mrveissclaude
andauthored
chore(license): add SPDX header enforcement hook + backfill post-sweep files (mrveiss#9840) (mrveiss#10127)
Adds tools/lint/check_spdx_header.py — an idempotent SPDX/Apache-2.0 license-header check (scan mode for CI, --fix mode for insertion). Wires it as the insert-license pre-commit hook and adds a blocking enforcement step to .github/workflows/enforce-precommit.yml so header coverage from the mrveiss#9826/mrveiss#9830 relicense sweep can no longer drift. Backfills the two-line header Copyright 2025-2026 mrveiss SPDX-License-Identifier: Apache-2.0 on all first-party .py/.ts/.tsx/.js/.mjs/.sh/.css files added since the sweep (correct comment style per language, after any shebang/coding line; legacy 'Copyright (c)' lines de-duped). Scope matches the original sweep: vendored, generated, .vue, .github/workflows, autobot-infrastructure, data/file_manager_root, *.min.{js,css} excluded. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent cc92c4d commit 03b730c

369 files changed

Lines changed: 918 additions & 160 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.claude/hooks/block-dangerous-commands.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#!/bin/bash
2+
# Copyright 2025-2026 mrveiss
3+
# SPDX-License-Identifier: Apache-2.0
24
# Blocks dangerous shell commands before execution.
35
# PreToolUse hook for Bash operations.
46
# Exit 2 = block the action. Exit 0 = allow.
57
#
68
# AutoBot - AI-Powered Automation Platform
7-
# Copyright (c) 2025 mrveiss
89
# Author: mrveiss
910
# Issue: #3021
1011

‎.claude/hooks/block-dangerous-commands_test.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/bash
2+
# Copyright 2025-2026 mrveiss
3+
# SPDX-License-Identifier: Apache-2.0
24
# Test suite for block-dangerous-commands.sh
35
# Run via: bash .claude/hooks/block-dangerous-commands_test.sh
46
# Must run via bash (not the interactive shell alias) to match hook runtime.

‎.claude/hooks/protect-files.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#!/bin/bash
2+
# Copyright 2025-2026 mrveiss
3+
# SPDX-License-Identifier: Apache-2.0
24
# Blocks edits to sensitive or generated files.
35
# PreToolUse hook for Edit|Write operations.
46
# Exit 2 = block the action. Exit 0 = allow.
57
#
68
# AutoBot - AI-Powered Automation Platform
7-
# Copyright (c) 2025 mrveiss
89
# Author: mrveiss
910
# Issue: #3026
1011

‎.claude/hooks/scan-secrets.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#!/bin/bash
2+
# Copyright 2025-2026 mrveiss
3+
# SPDX-License-Identifier: Apache-2.0
24
# Scans file content for accidental secrets before writing.
35
# PreToolUse hook for Edit|Write operations.
46
# Exit 2 = block (with "ask" decision so user can override). Exit 0 = allow.
57
#
68
# AutoBot - AI-Powered Automation Platform
7-
# Copyright (c) 2025 mrveiss
89
# Author: mrveiss
910
# Issue: #3022
1011

‎.claude/skills/claims-audit/extract-claims.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env python3
2+
# Copyright 2025-2026 mrveiss
3+
# SPDX-License-Identifier: Apache-2.0
24
"""
35
Extract claims from documentation for verification.
46

‎.claude/skills/claims-audit/file_issues.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env python3
2+
# Copyright 2025-2026 mrveiss
3+
# SPDX-License-Identifier: Apache-2.0
24
"""
35
File discovery issues for broken claims found during verification.
46

‎.claude/skills/claims-audit/generate-report.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env python3
2+
# Copyright 2025-2026 mrveiss
3+
# SPDX-License-Identifier: Apache-2.0
24
"""
35
Wrapper for generate_report.py for backward compatibility.
46

‎.claude/skills/claims-audit/generate_report.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env python3
2+
# Copyright 2025-2026 mrveiss
3+
# SPDX-License-Identifier: Apache-2.0
24
"""
35
Generate verification.md from inventory.json
46

‎.claude/skills/claims-audit/test_extract_claims.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env python3
2+
# Copyright 2025-2026 mrveiss
3+
# SPDX-License-Identifier: Apache-2.0
24
"""Unit tests for claim extraction."""
35

46
import json

‎.claude/skills/claims-audit/test_file_issues.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright 2025-2026 mrveiss
2+
# SPDX-License-Identifier: Apache-2.0
13
"""
24
Unit tests for file-issues.py
35
"""

0 commit comments

Comments
 (0)