open-nomad/.semgrep/changelog.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
658 B
YAML
Raw Permalink Normal View History

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
2022-01-26 21:32:47 +00:00
rules:
# Check `release-note` in changelog entries.
# https://semgrep.dev/s/DyRW
- id: "changelog-release-note"
patterns:
- pattern: "```$CHANGE_TYPE"
- pattern-not-inside: "```release-note"
# This is probably the right way to write this rule, but semgrep doesn't
# like it: https://github.com/returntocorp/semgrep/issues/4565
# - pattern-not: "```release-note:..."
message: "Missing `relelease-note`"
languages:
- "generic"
severity: "ERROR"
fix: "```release-note:$CHANGE_TYPE"
paths:
include:
- ".changelog"