5.3.1.25.7. cli.pre_commit_scripts.check_license_info
Validate license headers in source and script files.
This script verifies that files of various types (C, ASM, Python, YAML, TOML, PowerShell, Shell) contain the correct license header for either “BSD-3-Clause” or “confidential”. It dispatches files to the appropriate checker by file extension and reports any mismatches. It is intended for use with pre-commit.
Functions
|
Check assembler source files for correct license header. |
|
Check C source files for correct license header. |
|
Check PowerShell script files for correct license header. |
|
Check Python script/module files for correct license header. |
|
Check shell script files for correct license header. |
|
Check TOML files for correct license header. |
|
Check YAML files for correct license header. |
|
Compare the actual header in a file with the expected license header. |
|
Command-line interface for license header checking. |
Classes
Per-checker configuration and accumulated file list. |
|
|
Callable signature used by license header checkers. |