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 ( 7d14f7...4afba2 )
by P.R.
41s
created

EnarkshStyle.__init__()   B

Complexity

Conditions 1

Size

Total Lines 24

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 24
ccs 0
cts 10
cp 0
crap 2
rs 8.9713
1
from cleo import OutputFormatterStyle
0 ignored issues
show
Coding Style introduced by
This module 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...
2
from cleo.styles import CleoStyle
3
4
5
class EnarkshStyle(CleoStyle):
0 ignored issues
show
Bug introduced by
The method do_write which was declared abstract in the super-class Output
was not overridden.

Methods which raise NotImplementedError should be overridden in concrete child classes.

Loading history...
Bug introduced by
The method text which was declared abstract in the super-class OutputStyle
was not overridden.

Methods which raise NotImplementedError should be overridden in concrete child classes.

Loading history...
6
    """
7
    Output style for Enarksh.
8
    """
9
10
    # ------------------------------------------------------------------------------------------------------------------
11
    def __init__(self, input, output):
0 ignored issues
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...
12
        """
13
        Object constructor.
14
15
        :param cleo.inputs.input.Input input: The input object.
16
        :param cleo.outputs.output.Output output: The output object.
17
        """
18
        CleoStyle.__init__(self, input, output)
19
20
        # Style for file system objects (e.g. file and directory names).
21
        style = OutputFormatterStyle('green', None, ['bold'])
22
        output.get_formatter().set_style('fso', style)
23
24
        # Style for errors.
25
        style = OutputFormatterStyle('red', None, ['bold'])
26
        output.get_formatter().set_style('err', style)
27
28
        # Style for warnings.
29
        style = OutputFormatterStyle('yellow', None, ['bold'])
30
        output.get_formatter().set_style('warn', style)
31
32
        # Style for Enarksh notices.
33
        style = OutputFormatterStyle('yellow')
34
        output.get_formatter().set_style('notice', style)
35
36
# ----------------------------------------------------------------------------------------------------------------------
37