Passed
Push — 2.x ( 0ba30f...7ab1ba )
by Jordi
08:49
created

senaite.core.browser.widgets.analysisprofileswidget.AnalysisProfilesWidget.__init__()   B

Complexity

Conditions 4

Size

Total Lines 95
Code Lines 69

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 69
dl 0
loc 95
rs 8.0145
c 0
b 0
f 0
cc 4
nop 3

How to fix   Long Method   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
# -*- coding: utf-8 -*-
2
3
from zope import deprecation
4
5
# BBB
6
from .analysisprofile_services_widget import AnalysisProfileServicesWidget
7
8
9
class AnalysisProfilesWidget(AnalysisProfileServicesWidget):
10
    pass
11
12
13
deprecation.deprecated("AnalysisProfilesWidget",
14
                       "Moved to senaite.core.browser.widgets.analysisprofile_services_widget.AnalysisProfileServicesWidget")  # noqa E501
15