Completed
Push — master ( b657e5...d8feac )
by George
04:13 queued 02:05
created

SQSRoute   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 4
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __init__() 0 3 1
1
from ...routes import Route
0 ignored issues
show
Configuration introduced by
Unable to import 'routes' (invalid syntax (<string>, line 34))

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...
2
from .message_translators import SQSMessageTranslator, SNSMessageTranslator
3
4
5
class SQSRoute(Route):
6
    def __init__(self, *args, **kwargs):
7
        kwargs['message_translator'] = SQSMessageTranslator()
8
        super().__init__(*args, **kwargs)
9
10
11
class SNSQueueRoute(Route):
12
    def __init__(self, *args, **kwargs):
13
        kwargs['message_translator'] = SNSMessageTranslator()
14
        super().__init__(*args, **kwargs)
15