projects
/
rails.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed unused translation keys from changesets.*
[rails.git]
/
.rubocop.yml
diff --git
a/.rubocop.yml
b/.rubocop.yml
index ac29f4fc8769d9aec2d1142f33eef65bf698383e..c0f0c1fa08053ec082a77ae9cd8e6e3d0facb874 100644
(file)
--- a/
.rubocop.yml
+++ b/
.rubocop.yml
@@
-1,12
+1,15
@@
inherit_from: .rubocop_todo.yml
require:
inherit_from: .rubocop_todo.yml
require:
+ - rubocop-capybara
+ - rubocop-factory_bot
- rubocop-minitest
- rubocop-performance
- rubocop-rails
- rubocop-minitest
- rubocop-performance
- rubocop-rails
+ - rubocop-rake
AllCops:
AllCops:
- TargetRubyVersion:
2.7
+ TargetRubyVersion:
3.0
NewCops: enable
Exclude:
- 'vendor/**/*'
NewCops: enable
Exclude:
- 'vendor/**/*'
@@
-37,15
+40,21
@@
Metrics/ModuleLength:
Naming/FileName:
Exclude:
- 'script/deliver-message'
Naming/FileName:
Exclude:
- 'script/deliver-message'
- - 'script/locale/reload-languages'
- 'script/update-spam-blocks'
Naming/MethodParameterName:
Enabled: false
- 'script/update-spam-blocks'
Naming/MethodParameterName:
Enabled: false
+# This conflicts with Strong Migrations, which can't check `change_table`
+Rails/BulkChangeTable:
+ Enabled: false
+
Rails/CreateTableWithTimestamps:
Enabled: false
Rails/CreateTableWithTimestamps:
Enabled: false
+Rails/FindBy:
+ IgnoreWhereFirst: false
+
Rails/FindEach:
Enabled: false
Rails/FindEach:
Enabled: false
@@
-55,7
+64,7
@@
Rails/HasManyOrHasOneDependent:
Rails/HttpPositionalArguments:
Enabled: false
Rails/HttpPositionalArguments:
Enabled: false
-Rails/
InverseOf
:
+Rails/
ReflectionClassName
:
Enabled: false
Rails/SkipsModelValidations:
Enabled: false
Rails/SkipsModelValidations: