diff options
author | Mads Jensen <mje@inducks.org> | 2020-12-16 22:34:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-16 22:34:12 +0300 |
commit | 96a05d946c73a3f02dc03ed2f8ae0a73e261741c (patch) | |
tree | 8fcb031aac5d7de59642b98f4596aefd18048b33 /linter_plugin.py | |
parent | d38766e05c306a81d1bd7798187dfb8f96a66d5d (diff) |
Added certbot-ci to lint section. Silenced and fixed linting warnings. (#8450)
Diffstat (limited to 'linter_plugin.py')
-rw-r--r-- | linter_plugin.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/linter_plugin.py b/linter_plugin.py index 75879f73a..a19bf7df9 100644 --- a/linter_plugin.py +++ b/linter_plugin.py @@ -10,7 +10,9 @@ from pylint.checkers import BaseChecker from pylint.interfaces import IAstroidChecker # Modules in theses packages can import the os module. -WHITELIST_PACKAGES = ['acme', 'certbot_compatibility_test', 'lock_test'] +WHITELIST_PACKAGES = [ + 'acme', 'certbot_integration_tests', 'certbot_compatibility_test', 'lock_test' +] class ForbidStandardOsModule(BaseChecker): @@ -25,8 +27,8 @@ class ForbidStandardOsModule(BaseChecker): 'E5001': ( 'Forbidden use of os module, certbot.compat.os must be used instead', 'os-module-forbidden', - 'Some methods from the standard os module cannot be used for security reasons on Windows: ' - 'the safe wrapper certbot.compat.os must be used instead in Certbot.' + 'Some methods from the standard os module cannot be used for security reasons on ' + 'Windows: the safe wrapper certbot.compat.os must be used instead in Certbot.' ) } priority = -1 |