| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """ |
||
| 12 | class KerapuStyle(CleoStyle): |
||
| 13 | """ |
||
| 14 | Output style for Kerapu. |
||
| 15 | """ |
||
| 16 | |||
| 17 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 18 | def __init__(self, input, output): |
||
|
1 ignored issue
–
show
|
|||
| 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): |
||
| 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)) |
||
| 44 | |||
| 46 |
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.
2. Missing __init__.py files
This error could also result from missing
__init__.pyfiles in your module folders. Make sure that you place one file in each sub-folder.