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)
Wed, Nov 6, 10:48 AM
Unknown Object (File)
Tue, Nov 5, 1:13 PM
Unknown Object (File)
Mon, Nov 4, 1:59 PM
Unknown Object (File)
Thu, Oct 31, 3:19 PM
Unknown Object (File)
Oct 2 2024, 8:59 PM
Unknown Object (File)
Sep 25 2024, 2:49 PM
Unknown Object (File)
Sep 24 2024, 11:21 PM
Unknown Object (File)
Sep 21 2024, 7:41 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
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 45339
Build 42227: arc lint + arc unit