Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fix `.rubocop.yml` in the spree extension template (#12722)

Damian Kaczmarczykb948901a8899
diff --git a/cli/lib/spree_cli/templates/extension/.rubocop.yml b/cli/lib/spree_cli/templates/extension/.rubocop.yml
index 0ff174b583..51320aa362 100644
--- a/cli/lib/spree_cli/templates/extension/.rubocop.yml
+++ b/cli/lib/spree_cli/templates/extension/.rubocop.yml
@@ -1,3 +1,6 @@
+plugins:
+ - rubocop-rails
+
AllCops:
DisplayCopNames: true
TargetRubyVersion: 3.3
@@ -9,10 +12,7 @@ AllCops:
- 'spec/dummy/**/*'
- 'lib/generators/**/*'
-Rails:
- Enabled: true
-
-Metrics/LineLength:
+Layout/LineLength:
Max: 150
# DISABLED