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
Push — master ( d4663b...83e50d )
by P.R.
02:57
created

ScheduleDefinitionMessage.__init__()   A

Complexity

Conditions 1

Size

Total Lines 22

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 22
rs 9.2
ccs 0
cts 5
cp 0
crap 2
1
"""
2
Enarksh
3
4
Copyright 2013-2016 Set Based IT Consultancy
5
6
Licence MIT
7
"""
8
from enarksh.message.Message import Message
0 ignored issues
show
Bug introduced by
The name message does not seem to exist in module enarksh.
Loading history...
Configuration introduced by
The import enarksh.message.Message could not be resolved.

This can be caused by one of the following:

1. Missing Dependencies

This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.

# .scrutinizer.yml
before_commands:
    - sudo pip install abc # Python2
    - sudo pip3 install abc # Python3
Tip: We are currently not using virtualenv to run pylint, when installing your modules make sure to use the command for the correct version.

2. Missing __init__.py files

This error could also result from missing __init__.py files in your module folders. Make sure that you place one file in each sub-folder.

Loading history...
9
10
11
class ScheduleDefinitionMessage(Message):
12
    """
13
    Message type for loading a new schedule definition.
14
    """
15
    MESSAGE_TYPE = 'controller:ScheduleDefinitionMessage'
16
    """
17
    The message type.
18
19
    :type: str
20
    """
21
22
    # ------------------------------------------------------------------------------------------------------------------
23
    def __init__(self, xml, filename):
24
        """
25
        Object constructor.
26
27
        :param int xml: The XML with the schedule definition.
28
        :param int filename: The name of the file with the schedule definition.
29
        """
30
        Message.__init__(self, ScheduleDefinitionMessage.MESSAGE_TYPE)
31
32
        self.xml = xml
33
        """
34
        The XML with the schedule definition.
35
36
        :type: str
37
        """
38
39
        self.filename = filename
40
        """
41
        The name of the file with the schedule definition.
42
43
        :type: str
44
        """
45
46
    # ------------------------------------------------------------------------------------------------------------------
47
    def send_message(self, end_point):
48
        """
49
        Sends the message to an end point.
50
51
        :param str end_point: The end point.
52
53
        :rtype: None
54
        """
55
        self.message_controller.send_message(end_point, self)
0 ignored issues
show
Bug introduced by
The Instance of ScheduleDefinitionMessage does not seem to have a member named message_controller.

This check looks for calls to members that are non-existent. These calls will fail.

The member could have been renamed or removed.

Loading history...
56
57
# ----------------------------------------------------------------------------------------------------------------------
58