Passed
Push — master ( cddcf6...1d3855 )
by Alexander
01:59
created

kiwi_lint.register()   A

Complexity

Conditions 1

Size

Total Lines 12
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 12
rs 9.8
c 0
b 0
f 0
cc 1
nop 1
1
# Copyright (c) 2018 Alexander Todorov <[email protected]>
0 ignored issues
show
Coding Style introduced by Mr. Senko
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
3
# Licensed under the GPL 2.0: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
4
5
# NOTE: import order matches the numeric ID of the checker
6
from .dunder_attributes import DunderClassAttributeChecker
7
from .list_comprehension import ListComprehensionChecker
8
from .docstring import DocstringChecker
9
from .raw_sql import RawSQLChecker
10
from .auth_user import AuthUserChecker
11
from .bulk_create import BulkCreateChecker
12
from .objects_update import ObjectsUpdateChecker
13
from .tags import TagsChecker
14
from .empty_module import EmptyModuleChecker
15
from .nested_definition import NestedDefinitionChecker
16
from .missing_permissions import MissingPermissionsChecker
17
18
19
def register(linter):
20
    linter.register_checker(DunderClassAttributeChecker(linter))
21
    linter.register_checker(ListComprehensionChecker(linter))
22
    linter.register_checker(DocstringChecker(linter))
23
    linter.register_checker(RawSQLChecker(linter))
24
    linter.register_checker(AuthUserChecker(linter))
25
    linter.register_checker(BulkCreateChecker(linter))
26
    linter.register_checker(ObjectsUpdateChecker(linter))
27
    linter.register_checker(TagsChecker(linter))
28
    linter.register_checker(EmptyModuleChecker(linter))
29
    linter.register_checker(NestedDefinitionChecker(linter))
30
    linter.register_checker(MissingPermissionsChecker(linter))
31