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
F163756587: D35041.diff
Sat, Jul 25, 8:43 PM
Unknown Object (File)
Thu, Jul 23, 11:30 AM
Unknown Object (File)
Tue, Jul 21, 12:24 PM
Unknown Object (File)
Sat, Jul 18, 5:28 PM
Unknown Object (File)
Mon, Jul 6, 8:28 AM
Unknown Object (File)
Sat, Jul 4, 8:31 PM
Unknown Object (File)
Fri, Jul 3, 6:20 AM
Unknown Object (File)
Mon, Jun 29, 2:43 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