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)
Sat, Jun 27, 6:19 PM
Unknown Object (File)
Wed, Jun 24, 3:50 AM
Unknown Object (File)
Tue, Jun 9, 8:18 PM
Unknown Object (File)
Sun, Jun 7, 5:26 PM
Unknown Object (File)
May 21 2026, 12:07 AM
Unknown Object (File)
May 18 2026, 6:43 AM
Unknown Object (File)
May 11 2026, 6:34 PM
Unknown Object (File)
May 11 2026, 1:56 AM
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