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.

KerapuApplication.__init__()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 1
dl 0
loc 5
ccs 0
cts 1
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
from typing import List
2
3
from cleo import Application, Command
4
5
from kerapu.command.ShredderCommand import ShredderCommand
6
from kerapu.command.TestsetShredderCommand import TestShredderCommand
7
8
9
class KerapuApplication(Application):
10
    """
11
    The Kerapu application.
12
    """
13
14
    # ------------------------------------------------------------------------------------------------------------------
15
    def __init__(self):
16
        """
17
        Object constructor.
18
        """
19
        Application.__init__(self, 'kerapu', '2.0.3')
20
21
    # ------------------------------------------------------------------------------------------------------------------
22
    def get_default_commands(self) -> List[Command]:
23
        """
24
        Returns the default commands of this application.
25
26
        :rtype: list[Command]
27
        """
28
        commands = Application.get_default_commands(self)
29
30
        # Kerapu:
31
        commands.append(ShredderCommand())
32
        commands.append(TestShredderCommand())
33
34
        return commands
35
36
# ----------------------------------------------------------------------------------------------------------------------
37