A file has no copyright or license notice before its package clause
What it finds
A file without a copyright or license notice at its top: when files are copied into other projects, vendored or published apart from their repository, the notice is what tells their readers under which terms they may be used. Projects that require it want every file to carry it.
Reported are files whose comments before the package clause contain none of the words copyright, license or SPDX-License-Identifier, in any case. Many projects keep the notice in one file only, so the rule runs only when every rule is enabled.
From the rule's source, missing_license_header.rs.
Turn it on, off or suppress it
The rule runs from the all tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/go:missing-license-header" = "note"To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:
// tx0: ignore[tx0/go:missing-license-header] reason="..."tx0 explain tx0/go:missing-license-header shows the same in the terminal. Found a false positive? Report it.