Passed
Push — develop ( 29d60b...a27323 )
by Dean
02:35
created

GetUser   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 4
Duplicated Lines 0 %

Test Coverage

Coverage 66.67%
Metric Value
dl 0
loc 4
ccs 2
cts 3
cp 0.6667
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A all() 0 3 1
1 1
from plugin.managers.core.base import Manager, Get
0 ignored issues
show
Bug introduced by
The name base does not seem to exist in module plugin.managers.core.
Loading history...
Configuration introduced by
Unable to import 'plugin.managers.core.base' (invalid syntax (<string>, line 39))

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 1
from plugin.models import UserRule
3
4
5 1
class GetUser(Get):
0 ignored issues
show
Coding Style introduced by
This class has no __init__ method.
Loading history...
6 1
    def all(self):
7
        return super(GetUser, self).all() \
8
            .order_by(UserRule.priority.asc())
9
10
11 1
class UserRuleManager(Manager):
0 ignored issues
show
Coding Style introduced by
This class has no __init__ method.
Loading history...
12 1
    get = GetUser
13
14
    model = UserRule
15