Completed
Push — master ( d1f0a7...3b2ece )
by Edward
21:04 queued 05:38
created

st2reactor.rules.ProcessSensorContainer   B

Complexity

Total Complexity 47

Size/Duplication

Total Lines 378
Duplicated Lines 0 %
Metric Value
wmc 47
dl 0
loc 378
rs 8.439

How to fix   Complexity   

Complex Class

Complex classes like st2reactor.rules.ProcessSensorContainer often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.

Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.

1
__author__ = 'manas'
2