forked from mhenrixon/sidekiq-unique-jobs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.reek.yml
179 lines (179 loc) · 6.48 KB
/
.reek.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
---
exclude_paths:
- examples
- gemfiles
- lib/sidekiq
- lib/sidekiq_unique_jobs/lua
- myapp
- spec
- tmp
- vendor/bundle
detectors:
BooleanParameter:
exclude:
- SidekiqUniqueJobs::Cli#self.banner
- SidekiqUniqueJobs::Redis
- SidekiqUniqueJobs::Lock#locked_jids
ControlParameter:
exclude:
- Sidekiq::JobSet::UniqueExtension#delete_by_value
- Sidekiq::ScheduledSet::UniqueExtension#delete
- SidekiqUniqueJobs::Lock::BaseLock#call_strategy
- SidekiqUniqueJobs::Orphans::Manager#start
- SidekiqUniqueJobs::Orphans::RubyReaper#active?
- SidekiqUniqueJobs::Redis::Hash#entries
DataClump:
enabled: true
exclude:
- SidekiqUniqueJobs::DeleteOrphan
- SidekiqUniqueJobs::Logging
- SidekiqUniqueJobs::Redis
DuplicateMethodCall:
exclude:
- Sidekiq#self.use_options
- SidekiqUniqueJobs#toggle
- SidekiqUniqueJobs::Deprecation#self.muted
- SidekiqUniqueJobs::Lock#del
- SidekiqUniqueJobs::Lock#lock
- SidekiqUniqueJobs::Lock::WhileExecuting#execute
- SidekiqUniqueJobs::Locksmith#enqueue
- SidekiqUniqueJobs::Locksmith#lock_sync
- SidekiqUniqueJobs::Locksmith#set_lock_info
- SidekiqUniqueJobs::Locksmith#wait_for_primed_token
- SidekiqUniqueJobs::OnConflict::Reschedule#call
- SidekiqUniqueJobs::Orphans::RubyReaper#entries
- SidekiqUniqueJobs::Profiler#self.stop
- SidekiqUniqueJobs::Script::Caller#extract_args
- SidekiqUniqueJobs::Timing#timed
- SidekiqUniqueJobs::Web#self.registered
FeatureEnvy:
exclude:
- SidekiqUniqueJobs::BatchDelete#batch_delete
- SidekiqUniqueJobs::Digests#page
- SidekiqUniqueJobs::Digests#page
- SidekiqUniqueJobs::InvalidUniqueArguments#initialize
- SidekiqUniqueJobs::InvalidWorker#initialize
- SidekiqUniqueJobs::Logging#debug_item
- SidekiqUniqueJobs::NotUniqueWorker#initialize
- SidekiqUniqueJobs::OnConflict::Reject#push_to_deadset
- SidekiqUniqueJobs::Orphans::RubyReaper#active?
- SidekiqUniqueJobs::Orphans::RubyReaper#entries
- SidekiqUniqueJobs::Redis::Entity#exist?
- SidekiqUniqueJobs::Web::Helpers#cparams
- SidekiqUniqueJobs::Web::Helpers#display_lock_args
InstanceVariableAssumption:
exclude:
- SidekiqUniqueJobs::TimerTask
IrresponsibleModule:
enabled: true
LongParameterList:
enabled: true
exclude:
- Hash#slice
- initialize
- SidekiqUniqueJobs::Changelog#add
- SidekiqUniqueJobs::Middleware#call
- SidekiqUniqueJobs::Redis
- SidekiqUniqueJobs::Script::Caller#call_script
- SidekiqUniqueJobs::Script::Caller#do_call
ManualDispatch:
enabled: true
exclude:
- Hash#slice
- Hash#slice!
- SidekiqUniqueJobs::Logging#logger_respond_to_with_context?
- SidekiqUniqueJobs::OnConflict::Reject#deadset_kill?
- SidekiqUniqueJobs::Orphans::RubyReaper#active?
- SidekiqUniqueJobs::Redis::Entity#exist?
- SidekiqUniqueJobs::Server#self.configure
- SidekiqUniqueJobs::SidekiqWorkerMethods#after_unlock_hook
- SidekiqUniqueJobs::SidekiqWorkerMethods#worker_method_defined?
- SidekiqUniqueJobs::Web::Helpers#redirect_to
MissingSafeMethod:
exclude:
- Array
NilCheck:
enabled: false
NestedIterators:
exclude:
- SidekiqUniqueJobs::BatchDelete#batch_delete
- SidekiqUniqueJobs::BatchDelete#keys_for_digest
- SidekiqUniqueJobs::Changelog#entries
- SidekiqUniqueJobs::Changelog#page
- SidekiqUniqueJobs::Digests#page
- SidekiqUniqueJobs::Locksmith#create_lock
- SidekiqUniqueJobs::Locksmith#lock!
- SidekiqUniqueJobs::Middleware#self.configure_client
- SidekiqUniqueJobs::Middleware#self.configure_server
- SidekiqUniqueJobs::Orphans::RubyReaper#active?
- SidekiqUniqueJobs::Orphans::RubyReaper#enqueued?
- SidekiqUniqueJobs::UpgradeLocks#keys_for_digest
RepeatedConditional:
exclude:
- SidekiqUniqueJobs::Locksmith
TooManyConstants:
exclude:
- SidekiqUniqueJobs
TooManyStatements:
exclude:
- Hash#slice
- initialize
- Sidekiq#self.use_options
- SidekiqUniqueJobs#use_config
- SidekiqUniqueJobs::BatchDelete#batch_delete
- SidekiqUniqueJobs::Changelog#entries
- SidekiqUniqueJobs::Changelog#page
- SidekiqUniqueJobs::DeleteOrphans#find_orphans
- SidekiqUniqueJobs::Digests#delete_by_pattern
- SidekiqUniqueJobs::Digests#entries
- SidekiqUniqueJobs::Digests#page
- SidekiqUniqueJobs::Lock#lock
- SidekiqUniqueJobs::Lock::BaseLock#call_strategy
- SidekiqUniqueJobs::Lock::UntilAndWhileExecuting#execute
- SidekiqUniqueJobs::Lock::WhileExecuting#execute
- SidekiqUniqueJobs::LockArgs#filtered_args
- SidekiqUniqueJobs::LockInfo#set
- SidekiqUniqueJobs::Locksmith#enqueue
- SidekiqUniqueJobs::Locksmith#lock
- SidekiqUniqueJobs::Locksmith#lock_async
- SidekiqUniqueJobs::Locksmith#lock_sync
- SidekiqUniqueJobs::LockTTL#calculate
- SidekiqUniqueJobs::Logging#build_message
- SidekiqUniqueJobs::Logging::Middleware#logging_context
- SidekiqUniqueJobs::Middleware#call
- SidekiqUniqueJobs::Server#self.configure
- SidekiqUniqueJobs::Orphans::Manager#start
- SidekiqUniqueJobs::Orphans::Manager#stop
- SidekiqUniqueJobs::Orphans::RubyReaper#active?
- SidekiqUniqueJobs::Orphans::RubyReaper#enqueued?
- SidekiqUniqueJobs::Orphans::RubyReaper#entries
- SidekiqUniqueJobs::Profiler#self.stop
- SidekiqUniqueJobs::Script::Caller#call_script
- SidekiqUniqueJobs::Script::Caller#extract_args
- SidekiqUniqueJobs#constantize
- SidekiqUniqueJobs::TimerTask#execute_task
- SidekiqUniqueJobs::TimerTask#timeout_task
- SidekiqUniqueJobs::UpgradeLocks#call
- SidekiqUniqueJobs::UpgradeLocks#upgrade_v6_lock
- SidekiqUniqueJobs::Web#self.registered
TooManyInstanceVariables:
exclude:
- SidekiqUniqueJobs::Key
- SidekiqUniqueJobs::LockConfig
- SidekiqUniqueJobs::Locksmith
- SidekiqUniqueJobs::Lock::BaseLock
- SidekiqUniqueJobs::TimerTask
TooManyMethods:
exclude:
- SidekiqUniqueJobs::Lock::BaseLock
- SidekiqUniqueJobs::Locksmith
- SidekiqUniqueJobs::Lock
- SidekiqUniqueJobs::Orphans::Reaper
UncommunicativeVariableName:
exclude:
- Hash#slice
UncommunicativeParameterName:
exclude:
- SidekiqUniqueJobs::Redis
UtilityFunction:
enabled: false