Test Failed
Pull Request — master (#778)
by Nicola
03:54
created

savu.plugins.loaders.utils.my_safe_loader   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 15
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A MySafeLoader.__init__() 0 7 1
1
from yaml.reader import *
2
from yaml.scanner import *
3
from yaml.parser import *
4
from yaml.composer import *
5
from yaml.resolver import *
6
7
from savu.plugins.loaders.utils.my_safe_constructor import MySafeConstructor
8
9
class MySafeLoader(Reader, Scanner, Parser, Composer, MySafeConstructor, Resolver):
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable Scanner does not seem to be defined.
Loading history...
Comprehensibility Best Practice introduced by
The variable Resolver does not seem to be defined.
Loading history...
Comprehensibility Best Practice introduced by
The variable Parser does not seem to be defined.
Loading history...
Comprehensibility Best Practice introduced by
The variable Composer does not seem to be defined.
Loading history...
Comprehensibility Best Practice introduced by
The variable Reader does not seem to be defined.
Loading history...
10
11
    def __init__(self, stream):
12
        Reader.__init__(self, stream)
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable Reader does not seem to be defined.
Loading history...
13
        Scanner.__init__(self)
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable Scanner does not seem to be defined.
Loading history...
14
        Parser.__init__(self)
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable Parser does not seem to be defined.
Loading history...
15
        Composer.__init__(self)
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable Composer does not seem to be defined.
Loading history...
16
        MySafeConstructor.__init__(self)
17
        Resolver.__init__(self)
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable Resolver does not seem to be defined.
Loading history...