Sha256: 6525e4259b05e365b18edcd91780c5ee310c700283b4ea30e861a5dd795cc539
Contents?: true
Size: 1.11 KB
Versions: 3
Compression:
Stored size: 1.11 KB
Contents
# Additional configuration for thread_safety cops # # Without adding these to your rubocop config, these values will be the default. ThreadSafety/ClassAndModuleAttributes: Description: 'Avoid mutating class and module attributes.' Enabled: true ThreadSafety/InstanceVariableInClassMethod: Description: 'Avoid using instance variables in class methods.' Enabled: true ThreadSafety/MutableClassInstanceVariable: Description: 'Do not assign mutable objects to class instance variables.' Enabled: true EnforcedStyle: literals SupportedStyles: # literals: freeze literals assigned to constants # strict: freeze all constants # Strict mode is considered an experimental feature. It has not been updated # with an exhaustive list of all methods that will produce frozen objects so # there is a decent chance of getting some false positives. Luckily, there is # no harm in freezing an already frozen object. - literals - strict ThreadSafety/NewThread: Description: >- Avoid starting new threads. Let a framework like Sidekiq handle the threads. Enabled: true
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubocop-thread_safety-0.4.4 | config/default.yml |
rubocop-thread_safety-0.4.3 | config/default.yml |
rubocop-thread_safety-0.4.2 | config/default.yml |