GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Pull Request — master (#5)
by Oleg
08:07
created

EnarkshApplication.__init__()   A

Complexity

Conditions 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
c 0
b 0
f 0
dl 0
loc 5
ccs 0
cts 2
cp 0
crap 2
rs 9.4285
1
"""
2
Enarksh
3
4
Copyright 2013-2016 Set Based IT Consultancy
5
6
Licence MIT
7
"""
8
from cleo import Application
9
10
from enarksh.command.BootstrapCommand import BootstrapCommand
11
from enarksh.command.LoadHostCommand import LoadHostCommand
12
from enarksh.command.LoadScheduleCommand import LoadScheduleCommand
13
14
15
class EnarkshApplication(Application):
16
    """
17
    The Enarksh application.
18
    """
19
20
    # ------------------------------------------------------------------------------------------------------------------
21
    def __init__(self):
22
        """
23
        Object constructor
24
        """
25
        Application.__init__(self, 'Enarksh', '0.0.0')
26
27
    # ------------------------------------------------------------------------------------------------------------------
28
    def get_default_commands(self):
29
        """
30
        Returns the default commands of this application.
31
32
        :rtype: list[cleo.Command]
33
        """
34
        commands = Application.get_default_commands(self)
35
36
        self.add(BootstrapCommand())
37
        self.add(LoadHostCommand())
38
        self.add(LoadScheduleCommand())
39
40
        return commands
41
42
43
# ----------------------------------------------------------------------------------------------------------------------
44