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
F137999847: D35041.id105364.diff
Fri, Nov 28, 1:01 AM
Unknown Object (File)
Tue, Nov 25, 7:10 PM
Unknown Object (File)
Sat, Nov 22, 7:06 PM
Unknown Object (File)
Thu, Nov 20, 8:57 PM
Unknown Object (File)
Thu, Nov 20, 8:56 PM
Unknown Object (File)
Thu, Nov 20, 8:55 PM
Unknown Object (File)
Thu, Nov 20, 8:47 PM
Unknown Object (File)
Tue, Nov 11, 5:36 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
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 45339
Build 42227: arc lint + arc unit