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 ( 15d04b...75383a )
by P.R.
05:07
created

KerapuStyle   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __init__() 0 16 1
A text() 0 8 3
1
"""
2
PyStratum
3
4
Copyright 2015-2016 Set Based IT Consultancy
5
6
Licence MIT
7
"""
8
from cleo import OutputFormatterStyle
0 ignored issues
show
Configuration introduced by
The import cleo 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
from cleo.styles import CleoStyle
0 ignored issues
show
Configuration introduced by
The import cleo.styles 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...
10
11
12
class KerapuStyle(CleoStyle):
13
    """
14
    Output style for Kerapu.
15
    """
16
17
    # ------------------------------------------------------------------------------------------------------------------
18
    def __init__(self, input, output):
1 ignored issue
show
Bug Best Practice introduced by
This seems to re-define the built-in input.

It is generally discouraged to redefine built-ins as this makes code very hard to read.

Loading history...
19
        """
20
        Object constructor.
21
22
        :param cleo.inputs.input.Input input: The input object.
23
        :param cleo.outputs.output.Output output: The output object.
24
        """
25
        CleoStyle.__init__(self, input, output)
26
27
        # Create style notes.
28
        style = OutputFormatterStyle('yellow', None, ['bold'])
29
        output.get_formatter().set_style('note', style)
30
31
        # Create style for file and directory names.
32
        style = OutputFormatterStyle('white', None, ['bold'])
33
        output.get_formatter().set_style('fso', style)
34
35
    # ------------------------------------------------------------------------------------------------------------------
36
    def text(self, message):
0 ignored issues
show
Coding Style introduced by
This method should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
37
        if isinstance(message, list):
38
            messages = message
39
        else:
40
            messages = [message]
41
42
        for line in messages:
43
            self.writeln(' {0}'.format(line))
0 ignored issues
show
Bug introduced by
The Instance of KerapuStyle does not seem to have a member named writeln.

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...
44
45
# ----------------------------------------------------------------------------------------------------------------------
46