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)
Mar 8 2024, 4:21 PM
Unknown Object (File)
Mar 8 2024, 4:21 PM
Unknown Object (File)
Mar 8 2024, 4:21 PM
Unknown Object (File)
Mar 8 2024, 4:08 PM
Unknown Object (File)
Feb 1 2024, 7:35 AM
Unknown Object (File)
Jan 28 2024, 2:03 AM
Unknown Object (File)
Jan 24 2024, 12:21 PM
Unknown Object (File)
Jan 12 2024, 8:49 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