1 file changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -3526,7 +3526,7 @@ Style/MultipleComparison:
3526
3526
ComparisonsThreshold : 2
3527
3527
Style/MutableConstant :
3528
3528
Description : Do not assign mutable objects to constants.
3529
- Enabled : false
3529
+ Enabled : true
3530
3530
VersionAdded : ' 0.34'
3531
3531
VersionChanged : ' 1.8'
3532
3532
SafeAutoCorrect : false
@@ -4523,7 +4523,41 @@ Style/ZeroLengthPredicate:
4523
4523
Safe : false
4524
4524
VersionAdded : ' 0.37'
4525
4525
VersionChanged : ' 0.39'
4526
+ ThreadSafety/ClassAndModuleAttributes :
4527
+ Description : Avoid mutating class and module attributes.
4528
+ Enabled : true
4529
+ ActiveSupportClassAttributeAllowed : false
4530
+ ThreadSafety/InstanceVariableInClassMethod :
4531
+ Description : Avoid using instance variables in class methods.
4532
+ Enabled : true
4533
+ ThreadSafety/MutableClassInstanceVariable :
4534
+ Description : Do not assign mutable objects to class instance variables.
4535
+ Enabled : true
4536
+ EnforcedStyle : literals
4537
+ SafeAutoCorrect : false
4538
+ SupportedStyles :
4539
+ - literals
4540
+ - strict
4541
+ ThreadSafety/NewThread :
4542
+ Description : Avoid starting new threads. Let a framework like Sidekiq handle the
4543
+ threads.
4544
+ Enabled : true
4545
+ ThreadSafety/DirChdir :
4546
+ Description : Avoid using `Dir.chdir` due to its process-wide effect.
4547
+ Enabled : true
4548
+ AllowCallWithBlock : false
4549
+ ThreadSafety/RackMiddlewareInstanceVariable :
4550
+ Description : Avoid instance variables in Rack middleware.
4551
+ Enabled : true
4552
+ Include :
4553
+ - app/middleware/**/*.rb
4554
+ - lib/middleware/**/*.rb
4555
+ - app/middlewares/**/*.rb
4556
+ - lib/middlewares/**/*.rb
4557
+ AllowedIdentifiers : []
4526
4558
inherit_mode :
4527
4559
merge :
4528
4560
- Exclude
4529
4561
- Include
4562
+ ThreadSafety :
4563
+ Enabled : true
0 commit comments