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, Sep 5, 11:34 PM
Unknown Object (File)
Fri, Sep 4, 2:18 PM
Unknown Object (File)
Fri, Sep 4, 4:39 AM
Unknown Object (File)
Fri, Sep 4, 3:57 AM
Unknown Object (File)
Thu, Sep 3, 6:42 PM
Unknown Object (File)
Thu, Sep 3, 10:51 AM
Unknown Object (File)
Thu, Sep 3, 8:32 AM
Unknown Object (File)
Tue, Sep 1, 10:55 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