From 2f3f37d828dd479f50aad8a9c9580eb5959cc11e Mon Sep 17 00:00:00 2001
From: Thomas Schneider <thomas@fsmpi.rwth-aachen.de>
Date: Fri, 3 Mar 2023 23:17:36 +0100
Subject: [PATCH] ci: Update ansible-lint config to current version

- The old check numbers are gone
- Move output config to CI invocation, and use a format GitLab can understand
---
 .ansible-lint  | 9 +--------
 .gitlab-ci.yml | 9 ++++++++-
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/.ansible-lint b/.ansible-lint
index 5f1bb03..8735351 100644
--- a/.ansible-lint
+++ b/.ansible-lint
@@ -1,9 +1,2 @@
-parseable: true
-quiet: true
+---
 use_default_rules: true
-skip_list:
-  - '204'  # line length is checked by yamllint
-  - '401'  # git checkout must contain explicit version
-  - '701'  # 7xx is about ansible galaxy guidelines
-  - '702'
-  - '703'
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6198475..e91fe3f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,5 +20,12 @@ test:
   stage: test
   script:
     - yamllint .
-    - ansible-lint ./*/
+    - >-
+      ansible-lint
+      --format codeclimate
+      ./*/
+      > codeclimate.json
     - "! rg --fixed-strings 'passwordstore' ./*/templates"
+  artifacts:
+    reports:
+      codequality: codeclimate.json
-- 
GitLab