Page MenuHomeFreeBSD

.hooks: add hook to check indentation of conditionals of Mk/ files
ClosedPublic

Authored by tcberner on Apr 24 2022, 10:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 13, 1:30 PM
Unknown Object (File)
Wed, Apr 8, 6:10 PM
Unknown Object (File)
Wed, Apr 8, 5:42 AM
Unknown Object (File)
Tue, Apr 7, 3:53 PM
Unknown Object (File)
Tue, Apr 7, 12:54 PM
Unknown Object (File)
Tue, Apr 7, 7:05 AM
Unknown Object (File)
Mar 9 2026, 3:00 PM
Unknown Object (File)
Mar 8 2026, 11:56 PM
Subscribers

Details

Summary

This adds a further pre-commit hook to enforce indentations in Mk/*

Example:

> vim Mk/Uses/tcl.mk 
[add/remove some whitespaces between a `.` and an `if`]
> git add Mk/Uses/tcl.mk
> git commit -m "Mk/Uses/tcl.mk: test hook"
[pre-commit] tcl.mk is not properly indented -- please use /tmp/check_indentations-tcl.mk.LShfR7TD48/tcl.mk which was created using Tools/scripts/indent_make_if.pl

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable