EmptyPlugin   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A activate() 0 2 1
A deactivate() 0 2 1
A __init__() 0 3 1
1
from groundwork.patterns import GwBasePattern
2
3
4
class EmptyPlugin(GwBasePattern):
5
    def __init__(self, app, name=None, *args, **kwargs):
6
        self.name = name or self.__class__.__name__
7
        super(EmptyPlugin, self).__init__(app, *args, **kwargs)
8
9
    def activate(self):
10
        pass
11
12
    def deactivate(self):
13
        pass
14