From fb365183fcf4a8c2fdb71f051c83da0a2731d748 Mon Sep 17 00:00:00 2001 From: Adam Mitz Date: Mon, 26 Feb 2024 15:29:12 -0600 Subject: [PATCH] Update lint regex for gettimeofday to be more selective --- tools/scripts/lint.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/scripts/lint.pl b/tools/scripts/lint.pl index 38eb0be7e45..41999c8e160 100755 --- a/tools/scripts/lint.pl +++ b/tools/scripts/lint.pl @@ -456,7 +456,7 @@ sub match_prefix_get_suffix { gettimeofday => { path_matches_all_of => ['cpp_file', 'in_dds_dcps'], - line_matches => qr/(gettimeofday|ACE_Time_Value\(\)\.now\(\))/, + line_matches => qr/(\bgettimeofday\b|ACE_Time_Value\(\)\.now\(\))/, message => [ 'ACE_OS::gettimeofday() and "ACE_Time_Value().now()" are forbidden in the core libraries.', 'See https://opendds.readthedocs.io/en/master/internal/dev_guidelines.html#time for details.',