From c0de512e143126f9fea700acfd4164b2ab7fc3be Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Wed, 9 Apr 2025 23:44:17 -0700 Subject: [PATCH] fix: make test/ headers compliant with styleguide These were not included in that check. Beats me as to why. Change-Id: Ib44c7f0b10672359026f95daeb088039cf6df4eb --- misc/pre-commit.nix | 2 +- tests/unit/libstore/protocol.hh | 2 ++ tests/unit/libutil-support/tests/test-data.hh | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/misc/pre-commit.nix b/misc/pre-commit.nix index 6e2a979b8..6b9449bd9 100644 --- a/misc/pre-commit.nix +++ b/misc/pre-commit.nix @@ -81,7 +81,7 @@ pre-commit-run { check-headers = { enable = true; package = pkgs.check-headers; - files = "^lix/"; + files = "^(lix/|tests/)"; types = [ "c++" "file" diff --git a/tests/unit/libstore/protocol.hh b/tests/unit/libstore/protocol.hh index 48082c9af..514649ac2 100644 --- a/tests/unit/libstore/protocol.hh +++ b/tests/unit/libstore/protocol.hh @@ -1,3 +1,5 @@ +#pragma once +/// @file #include #include "lix/libutil/strings.hh" diff --git a/tests/unit/libutil-support/tests/test-data.hh b/tests/unit/libutil-support/tests/test-data.hh index 72f6e9f97..f2ade6fce 100644 --- a/tests/unit/libutil-support/tests/test-data.hh +++ b/tests/unit/libutil-support/tests/test-data.hh @@ -1,4 +1,5 @@ #pragma once +/// @file #include "lix/libutil/types.hh" #include "lix/libutil/environment-variables.hh"