mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-12-27 15:54:50 +00:00
21 lines
517 B
YAML
21 lines
517 B
YAML
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
rules:
|
|
- id: atomics-64bit-safety
|
|
patterns:
|
|
- pattern: |
|
|
type $TYPE struct {
|
|
...
|
|
$VAR atomic.$ATOMIC_TYPE
|
|
...
|
|
}
|
|
- metavariable-regex:
|
|
# We only care about 64 bit atomic types
|
|
metavariable: "$ATOMIC_TYPE"
|
|
regex: ".*64"
|
|
message: "Use pointers with member variables of uber-go/atomic types"
|
|
languages: [go]
|
|
severity: ERROR
|
|
|