mirror of
https://github.com/hashicorp/vault.git
synced 2025-12-26 11:51:42 +01:00
* license: update headers to IBM Corp. * `make proto` * update offset because source file changed Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
14 lines
425 B
YAML
14 lines
425 B
YAML
# Copyright IBM Corp. 2016, 2025
|
|
# 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
|