| Conditions | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| 1 | 1 | from collections import OrderedDict |
|
| 32 | 1 | def _get_aliases(name=""): |
|
| 33 | 1 | items = OrderedDict() |
|
| 34 | |||
| 35 | 1 | for alias in sorted(app.template_service.aliases(name)): |
|
| 36 | 1 | template = app.template_service.find(alias) |
|
| 37 | |||
| 38 | 1 | data = OrderedDict() |
|
| 39 | 1 | data['styles'] = sorted(template.styles) |
|
| 40 | 1 | data['template'] = \ |
|
| 41 | route('templates.create', key=template.key, _external=True) |
||
| 42 | |||
| 43 | 1 | items[alias] = data |
|
| 44 | |||
| 45 | return items |
||
| 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.