Commit 133ddd2a authored by Antonio Terceiro's avatar Antonio Terceiro

gitlab-ci: check Ruby code style with rubocop

On CI, it will run with .rubocop_todo.yml which gives an xemption to the
existing code. This way no new style violations will be introduced,
without us having to fix all existing problems upfront.

With time, we should be able to fix all Ruby style issues, and delete
them from .rubocop_todo.yml.
parent 1cb37b96
Pipeline #42170 passed with stage
in 10 minutes
......@@ -20,3 +20,12 @@ testing:
stable:
<<: *test
image: 'debian:stable-backports'
ruby-style:
image: 'debian:unstable'
before_script:
- apt-get -q update
- apt-get -q -y dist-upgrade
- apt-get install -qy rubocop
script:
- rubocop -c .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.3
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment