From aa07a79345ac066d3b7c2645e1ee8f5a00d3e497 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sun, 8 Sep 2024 18:16:02 +0200 Subject: [PATCH] Add RuboCop Packaging (#936) For parity with activeadmin and arbre Refs: - activeadmin/activeadmin#6462 - activeadmin/arbre#212 --- .rubocop.yml | 13 +++++++++++++ Gemfile | 1 + Gemfile.lock | 3 +++ 3 files changed, 17 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 9cd1a1b9..0b229713 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -2,6 +2,7 @@ require: - rubocop-minitest + - rubocop-packaging - rubocop-performance AllCops: @@ -215,6 +216,18 @@ Minitest/UnspecifiedException: Minitest/UselessAssertion: Enabled: true +Packaging/BundlerSetupInTests: + Enabled: true + +Packaging/GemspecGit: + Enabled: true + +Packaging/RequireHardcodingLib: + Enabled: true + +Packaging/RequireRelativeHardcodingLib: + Enabled: true + Performance: Enabled: true diff --git a/Gemfile b/Gemfile index 9c37b00f..352e791d 100644 --- a/Gemfile +++ b/Gemfile @@ -18,5 +18,6 @@ end group :rubocop do gem 'rubocop' gem 'rubocop-minitest' + gem 'rubocop-packaging' gem 'rubocop-performance' end diff --git a/Gemfile.lock b/Gemfile.lock index 781c9666..7d1882ec 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -220,6 +220,8 @@ GEM rubocop-minitest (0.36.0) rubocop (>= 1.61, < 2.0) rubocop-ast (>= 1.31.1, < 2.0) + rubocop-packaging (0.5.2) + rubocop (>= 1.33, < 2.0) rubocop-performance (1.21.1) rubocop (>= 1.48.1, < 2.0) rubocop-ast (>= 1.31.1, < 2.0) @@ -265,6 +267,7 @@ DEPENDENCIES rails-controller-testing rubocop rubocop-minitest + rubocop-packaging rubocop-performance simplecov simplecov-cobertura