From b0d267e2e97e969c9179b9b71bfb219242de297b Mon Sep 17 00:00:00 2001 From: omissis Date: Mon, 8 Aug 2022 22:38:33 +0200 Subject: [PATCH] feat: add draft of a possible yaml config file --- examples/.goarkitect.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 examples/.goarkitect.yml diff --git a/examples/.goarkitect.yml b/examples/.goarkitect.yml new file mode 100644 index 0000000..be44b6c --- /dev/null +++ b/examples/.goarkitect.yml @@ -0,0 +1,28 @@ +--- +rules: + - name: example + kind: file + matcher: + name: all + options: + basepath: /tmp/example + thats: [] + excepts: [] + shoulds: + - kind: end_with + suffix: file + - kind: exist + - kind: match_regex + res: /[a-z]+/ + because: "it is an example" + - name: makefile_exists + kind: file + matcher: + name: one + options: + filename: /tmp/example/Makefile + thats: [] + excepts: [] + shoulds: + - kind: exist + because: "it is needed to encapsulate common project operations"