Sha256: a7eb16b44ecfe88a2cad63013557f7c04eb7b1208de507ada26d06f07a8a2aa7
Contents?: true
Size: 1.57 KB
Versions: 1
Compression:
Stored size: 1.57 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 ActiveSupportClassAttributeAllowed: false 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 SafeAutoCorrect: false 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 ThreadSafety/DirChdir: Description: Avoid using `Dir.chdir` due to its process-wide effect. Enabled: true ThreadSafety/RackMiddlewareInstanceVariable: Description: Avoid instance variables in Rack middleware. Enabled: true Include: - 'app/middleware/**/*.rb' - 'lib/middleware/**/*.rb' - 'app/middlewares/**/*.rb' - 'lib/middlewares/**/*.rb' AllowedIdentifiers: []
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubocop-thread_safety-0.6.0 | config/default.yml |