Stuff   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 18
Duplicated Lines 0 %
Metric Value
dl 0
loc 18
rs 10
wmc 6

5 Methods

Rating   Name   Duplication   Size   Complexity  
A other() 0 2 1
A __init__() 0 4 2
A raises() 0 2 1
A meth() 0 2 1
A mix() 0 3 1
1
def target():
2
    return
3
4
5
def func(*a):
6
    pass
7
8
9
def raises(*a):
10
    raise ValueError(a)
11
12
a = 1
13
14
15
class Stuff(object):
16
    def __init__(self, *args):
17
        if args == ('error',):
18
            raise ValueError
19
        self.args = args
20
21
    def meth(self):
22
        pass
23
24
    def mix(self, *args):
25
        self.meth()
26
        return getattr(self, 'args', ()) + args
27
28
    def raises(self, *a):
29
        raise ValueError(a)
30
31
    def other(self, *args):
32
        return ThatLONGStuf(*self.args + args)
33
34
35
class ThatLONGStuf(Stuff):
36
    pass
37