Skip to content

file_footer

Last lines lines of each file in scope must match a regex. Mirror of file_header anchored at the end of the file. Use for license footers, signed-off-by trailers, generated-file sentinels.

- id: license-footer
kind: footer
paths: "src/**/*.rs"
pattern: "Licensed under the Apache License, Version 2\\.0"
lines: 3
level: error

Fix: file_append — append a declared content. With no fix declared, violations are unfixable.

OptionTypeRequiredDefaultDescription
linesinteger (>= 1)20Number of trailing lines to consider.
patternstringyesRust regex. The last lines lines of each file must match.

Plus the common paths, level, id, and when fields. This table is generated from the JSON Schema; option types and defaults are authoritative.