diff options
| author | Jan Cholasta <jcholast@redhat.com> | 2017-02-14 09:58:44 +0100 |
|---|---|---|
| committer | Martin Basti <mbasti@redhat.com> | 2017-03-10 13:04:59 +0100 |
| commit | 5d489ac5604ca959cfe439c0594b8739073f3cea (patch) | |
| tree | c91df525969f3148ce300acb2912756fee385960 /ipapython/cookie.py | |
| parent | 6027a8111fa9ed7a058fb222f4f96b12039deb8b (diff) | |
| download | freeipa-5d489ac5604ca959cfe439c0594b8739073f3cea.tar.gz freeipa-5d489ac5604ca959cfe439c0594b8739073f3cea.tar.xz freeipa-5d489ac5604ca959cfe439c0594b8739073f3cea.zip | |
pylint_plugins: add forbidden import checker
Add new pylint AST checker plugin which implements a check for imports
forbidden in IPA. Which imports are forbidden is configurable in pylintrc.
Provide default forbidden import configuration and disable the check for
existing forbidden imports in our code base.
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipapython/cookie.py')
| -rw-r--r-- | ipapython/cookie.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipapython/cookie.py b/ipapython/cookie.py index 9797fc184..4d8ef2c1a 100644 --- a/ipapython/cookie.py +++ b/ipapython/cookie.py @@ -599,7 +599,9 @@ class Cookie(object): # FIXME: At the moment we can't import from ipalib at the # module level because of a dependency loop (cycle) in the # import. Our module layout needs to be refactored. + # pylint: disable=ipa-forbidden-import from ipalib.util import validate_domain_name + # pylint: enable=ipa-forbidden-import try: validate_domain_name(url_domain) except Exception: |
