27bb03bbc0
* adding copyright header * fix fmt and a test
12 lines
340 B
YAML
12 lines
340 B
YAML
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
rules:
|
|
- id: uses-path-callbacks
|
|
patterns:
|
|
- pattern: |
|
|
[]*framework.Path{..., {..., Pattern: $PATTERN, ..., Callbacks:$CALL, ...}, ...}
|
|
|
|
message: "Path has a Callback for pattern $PATTERN"
|
|
languages: [go]
|
|
severity: WARNING |