2.1.23.7. cli.pre_commit_scripts.check_license_info

Check the license information header in the provided 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 compares the beginning of each file against the expected header text and reports any mismatches. It is intended for use with pre-commit.

Functions

check_asm(files[, license_type])

Check assembler source files for correct license header.

check_c(files[, license_type])

Check C source files for correct license header.

check_pwsh(files[, license_type])

Check PowerShell script files for correct license header.

check_py(files[, license_type])

Check Python script/module files for correct license header.

check_shell(files[, license_type])

Check shell script files for correct license header.

check_toml(files[, license_type])

Check TOML files for correct license header.

check_yaml(files[, license_type])

Check YAML files for correct license header.

compare_header(file_name, expected, actual, ...)

Compare the actual header in a file with the expected license header.

main([argv])

Command-line interface for license header checking.