From ab6f82298234c0d735becbf5cd1eb6fdd87bf7d8 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Sun, 3 Jan 2021 17:59:34 +0100 Subject: [PATCH] Rubocop: Update configuration and todo file --- .rubocop.yml | 4 ++++ lib/modulesync/git_service/gitlab.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index 5302503e..48da1203 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -20,8 +20,12 @@ Style/TrailingCommaInLiteral: # sane line length Metrics/LineLength: Max: 120 + IgnoreCopDirectives: true Exclude: - 'features/**/*' Style/FrozenStringLiteralComment: Enabled: false + +TrailingCommaInArguments: + EnforcedStyleForMultiline: comma diff --git a/lib/modulesync/git_service/gitlab.rb b/lib/modulesync/git_service/gitlab.rb index ca8c99c0..12f5f76a 100644 --- a/lib/modulesync/git_service/gitlab.rb +++ b/lib/modulesync/git_service/gitlab.rb @@ -12,7 +12,7 @@ class GitLab < Base def initialize(token, endpoint) @api = Gitlab::Client.new( :endpoint => endpoint, - :private_token => token + :private_token => token, ) end