From b45d4f7d67056de3b7f1fd5a32685969b3c6d1b3 Mon Sep 17 00:00:00 2001 From: Peter Leitzen Date: Thu, 28 Apr 2022 14:31:55 +0200 Subject: [PATCH] Exclude empty seed files from RuboCop Lint/EmptyFile rule permanently --- .rubocop.yml | 5 +++++ .rubocop_todo.yml | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index a944e783e3d1b8..be3a61a5fde6ed 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -72,6 +72,11 @@ Lint/LastKeywordArgument: Enabled: true Safe: false +Lint/EmptyFile: + Exclude: + - 'db/seeds.rb' + - 'ee/db/geo/seeds.rb' + # This cop checks whether some constant value isn't a # mutable literal (e.g. array or hash). Style/MutableConstant: diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index ac3734779621e3..0aad4d7f35c82e 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -11,13 +11,6 @@ Gitlab/PolicyRuleBoolean: Exclude: - 'ee/app/policies/ee/identity_provider_policy.rb' -# Offense count: 2 -# Configuration parameters: AllowComments. -Lint/EmptyFile: - Exclude: - - 'db/seeds.rb' - - 'ee/db/geo/seeds.rb' - # Offense count: 200 # Cop supports --auto-correct. Lint/RedundantCopDisableDirective: -- GitLab