From b8f097cf7c5e963fd62857fd3fac5bae04f73fe8 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 13 Jul 2022 16:54:41 +0200 Subject: [PATCH] use codeclimate to run rubocop --- .codeclimate.yml | 5 +++++ .gitlab-ci.yml | 12 ++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 .codeclimate.yml diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 000000000..797220f60 --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,5 @@ +plugins: + rubocop: + enabled: true + config: + file: .rubocop.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5e6c17dd0..e6d03f248 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,4 @@ -rubocop: - stage: test - only: - - dev - image: sleede/rubocop-fm:latest - script: - - git diff --name-only master --diff-filter AMT | grep \\.rb$ | xargs bundle exec rubocop - +include: + - template: Code-Quality.gitlab-ci.yml + stages: + - test