Completed
Pull Request — master (#105)
by
unknown
06:30
created

opcua.ua.create_standard_address_space_Part9()   B

Complexity

Conditions 1

Size

Total Lines 5512

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2
Metric Value
cc 1
dl 0
loc 5512
ccs 0
cts 0
cp 0
crap 2
rs 8.2857

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
# the order is important, some classes are overriden
2 1
from opcua.ua.attribute_ids import AttributeIds
3 1
from opcua.ua.object_ids import ObjectIds
4 1
from opcua.ua.status_codes import StatusCodes
5 1
from opcua.ua.uaprotocol_auto import *
6 1
from opcua.ua.uaprotocol_hand import *
7
8