Test Failed
Push — master ( 714282...4cb748 )
by P.R.
01:55 queued 13s
created

SDocApplication.get_default_commands()   A

Complexity

Conditions 1

Size

Total Lines 13
Code Lines 6

Duplication

Lines 13
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 6
dl 13
loc 13
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
cc 1
nop 1
crap 2
1
from cleo import Application
2
3
from sdoc.command.SDoc1Command import SDoc1Command
4
from sdoc.command.SDoc2Command import SDoc2Command
5
from sdoc.command.SDocCommand import SDocCommand
6
7
8
# ----------------------------------------------------------------------------------------------------------------------
9 View Code Duplication
class SDocApplication(Application):
0 ignored issues
show
Duplication introduced by
This code seems to be duplicated in your project.
Loading history...
10
    """
11
    The SDocApplication application.
12
    """
13
14
    # ------------------------------------------------------------------------------------------------------------------
15
    def __init__(self):
16
        """
17
        Object constructor.
18
        """
19
        Application.__init__(self, 'SDocApplication', '0.0.11')
20
21
    # ------------------------------------------------------------------------------------------------------------------
22
    def get_default_commands(self):
23
        """
24
        Returns the default commands of this application.
25
26
        :rtype: list[cleo.Command]
27
        """
28
        commands = Application.get_default_commands(self)
29
30
        self.add(SDocCommand())
31
        self.add(SDoc1Command())
32
        self.add(SDoc2Command())
33
34
        return commands
35
36
# ----------------------------------------------------------------------------------------------------------------------
37