Skip to content

Commit

Permalink
Update lint regex for gettimeofday to be more selective
Browse files Browse the repository at this point in the history
  • Loading branch information
mitza-oci committed Feb 26, 2024
1 parent 8506a96 commit fb36518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/scripts/lint.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down

0 comments on commit fb36518

Please sign in to comment.