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, Dec 14, 10:20 AM
Unknown Object (File)
Fri, Dec 13, 12:58 PM
Unknown Object (File)
Dec 5 2024, 7:56 PM
Unknown Object (File)
Dec 3 2024, 5:58 PM
Unknown Object (File)
Dec 3 2024, 12:06 PM
Unknown Object (File)
Nov 13 2024, 5:33 PM
Unknown Object (File)
Nov 6 2024, 10:48 AM
Unknown Object (File)
Nov 5 2024, 1:13 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