File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,11 @@ application with Suspenders.
33
33
We skip the [ default test framework] [ ] in favor of [ RSpec] [ ] , and [ prefer
34
34
PostgreSQL] [ ] as our database.
35
35
36
+ We skip [ RuboCop rules by default] [ ] in favor of our [ holistic linting rules] [ ] .
37
+
36
38
```
37
39
rails new app_name \
40
+ --skip_rubocop \
38
41
--skip-test \
39
42
-d=postgresql \
40
43
-m=https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb
@@ -57,6 +60,8 @@ app_name`, or create your own [railsrc][] file with the following configuration:
57
60
[ prefer PostgreSQL ] : https://github.com/thoughtbot/dotfiles/pull/728
58
61
[ dotfiles ] : https://github.com/thoughtbot/dotfiles
59
62
[ railsrc ] : https://github.com/rails/rails/blob/7f7f9df8641e35a076fe26bd097f6a1b22cb4e2d/railties/lib/rails/generators/rails/app/USAGE#L5C1-L7
63
+ [ RuboCop rules by default ] : https://guides.rubyonrails.org/v7.2/7_2_release_notes.html#add-omakase-rubocop-rules-by-default
64
+ [ holistic linting rules ] : https://github.com/thoughtbot/suspenders/blob/main/FEATURES.md#linting
60
65
61
66
### With Existing Rails Applications
62
67
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ def apply_template!
22
22
23
23
fail Rails ::Generators ::Error , message
24
24
end
25
- if options [ :database ] == "postgresql" && options [ :skip_test ]
25
+ if options [ :database ] == "postgresql" && options [ :skip_test ] && options [ :skip_rubocop ]
26
26
after_bundle do
27
27
gem_group :development , :test do
28
28
gem "suspenders"
@@ -42,6 +42,7 @@ def apply_template!
42
42
=== Please use the correct options ===
43
43
44
44
rails new <app_name> \\
45
+ --skip-rubocop \\
45
46
--skip-test \\
46
47
-d=postgresql \\
47
48
-m=https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb
You can’t perform that action at this time.
0 commit comments