From 16d75e753c2fa90328b57f80b39dbb2496968891 Mon Sep 17 00:00:00 2001 From: Gabriele Fontana Date: Sat, 16 Nov 2024 17:05:31 +0100 Subject: [PATCH] test(add-contain-value-rule): add taht contain rule example --- examples/.goarkitect.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/examples/.goarkitect.yaml b/examples/.goarkitect.yaml index 7413639..0767edb 100644 --- a/examples/.goarkitect.yaml +++ b/examples/.goarkitect.yaml @@ -69,3 +69,15 @@ rules: - kind: end_with suffix: file because: "it is an example" + - name: a set of file that contains .go must be go file (end with .go) + kind: file + matcher: + kind: all + thats: + - kind: contain_value + value: .go + excepts: [] + shoulds: + - kind: end_with + suffix: .go + because: "it is an example "