-
Notifications
You must be signed in to change notification settings - Fork 21
/
default.yml
31 lines (27 loc) · 1.11 KB
/
default.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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