1
0
vault-redux/tools/semgrep/joinpath.yml
Steven Clark 2b88002501
Update licensing across various source files - 1.14 (#24674)
* Fix licensing on various files

* Update CI and release files to BUSL-1.1

* Update offset within config_test_helpers.go

 - Fix a test the same way it's been fixed on main/1.15
2024-01-08 12:24:52 -05:00

14 lines
424 B
YAML

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
rules:
- id: use-strings-join-path
patterns:
- pattern-either:
- pattern: strings.Join(..., "/")
- pattern: strings.Join(..., "\\")
- pattern: strings.Join(..., `\`)
message: "did you want path.Join() or filepath.Join()?"
languages: [go]
severity: ERROR