From d92773c1e25d1211d27348e0b67566509d7228c7 Mon Sep 17 00:00:00 2001 From: MrEarle Date: Fri, 22 Apr 2022 12:01:46 -0400 Subject: [PATCH 1/2] feat(recipe): add rubocop-platanus to recipe --- lib/potassium/assets/.rubocop.yml | 1 + lib/potassium/recipes/style.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/potassium/assets/.rubocop.yml b/lib/potassium/assets/.rubocop.yml index 6d86b849..750999c0 100644 --- a/lib/potassium/assets/.rubocop.yml +++ b/lib/potassium/assets/.rubocop.yml @@ -2,6 +2,7 @@ require: - rubocop-rspec - rubocop-rails - rubocop-performance + - rubocop-platanus AllCops: Exclude: - "vendor/**/*" diff --git a/lib/potassium/recipes/style.rb b/lib/potassium/recipes/style.rb index b2456574..3aabe4b0 100644 --- a/lib/potassium/recipes/style.rb +++ b/lib/potassium/recipes/style.rb @@ -17,6 +17,7 @@ def add_linters gather_gem 'rubocop-performance' gather_gem 'rubocop-rails' gather_gem 'rubocop-rspec', Potassium::RUBOCOP_RSPEC_VERSION + gather_gem 'rubocop-platanus' end after(:webpacker_install) do From e00518bc3b3662a4fbd6a90c8f161f117b3b7eb2 Mon Sep 17 00:00:00 2001 From: MrEarle Date: Mon, 25 Apr 2022 11:06:00 -0400 Subject: [PATCH 2/2] feat(changelog): add rubocop-platanus --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c36b20e..d754402c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Features - Updates Webpacker to Shakapacker, upgrading Vue and TailwindCSS to their latest versions [#395](https://github.com/platanus/potassium/pull/395) - Add some image handling and processing in shrine file storage option [#398](https://github.com/platanus/potassium/pull/398) - Include `--platanus-config` option to skip most of the instalation options [#399](https://github.com/platanus/potassium/pull/399). + - Add [`rubocop-platanus`](https://github.com/platanus/rubocop-platanus) gem for linting platanus' best practices [#402](https://github.com/platanus/potassium/pull/402). ## 6.5.0 Features