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.
Test Setup Failed
Push — master ( 19fcc2...697e45 )
by P.R.
03:59
created

SpawnJobMessage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
B __init__() 0 38 1
A send_message() 0 9 1
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 SpawnJobMessage(Message):
12
    """
13
    Message type for instructing the spanner ot spawn a new job.
14
    """
15
    MESSAGE_TYPE = 'spawner:SpawnJobMessage'
16
    """
17
    The message type.
18
19
    :type: str
20
    """
21
22
    # ------------------------------------------------------------------------------------------------------------------
23
    def __init__(self, sch_id, rnd_id, user_name, args):
24
        """
25
        Object constructor.
26
27
        :param int sch_id: The ID of the schedule of the job.
28
        :param int rnd_id: The ID of the job.
29
        :param str user_name: The user under which the job must run.
30
        :param list[str] args: The arguments for the job. (args[0] is the path to the executable.)
31
        """
32
        Message.__init__(self, SpawnJobMessage.MESSAGE_TYPE)
33
34
        self.sch_id = sch_id
35
        """
36
        The ID of the schedule of the job.
37
38
        :type: int
39
        """
40
41
        self.rnd_id = rnd_id
42
        """
43
        The ID of the job.
44
45
        :type: int
46
        """
47
48
        self.user_name = user_name
49
        """
50
        The user under which the job must run.
51
52
        :type: str
53
        """
54
55
        self.args = args
56
        """
57
        The arguments for the job. (args[0] is the path to the executable.)
58
59
        :type: list[str]
60
        """
61
62
    # ------------------------------------------------------------------------------------------------------------------
63
    def send_message(self, end_point):
64
        """
65
        Sends the message to an end point.
66
67
        :param str end_point: The end point.
68
69
        :rtype: None
70
        """
71
        self.message_controller.send_message(end_point, self)
0 ignored issues
show
Bug introduced by
The Instance of SpawnJobMessage 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...
72
73
# ----------------------------------------------------------------------------------------------------------------------
74