open-vault/tools/semgrep/ci/time-parse-duration.yml
hc-github-team-secure-vault-core 36365ed7f4
backport of commit 3a46ecc389e9096ccea6c6f847b68ada7f8068d7 (#21362)
Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2023-06-21 14:01:13 +00:00

11 lines
282 B
YAML

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
rules:
- id: time-parse-duration
patterns:
- pattern: time.ParseDuration
message: "Usage of time.ParseDuration. Use parseutil.ParseDurationSeconds, instead!"
languages: [go]
severity: ERROR