The following issues were found
certbot/certbot/plugins/util.py
1 issues
Line: 45
Column: 9
"""
path = os.environ["PATH"]
added = []
for d in STANDARD_BINARY_DIRS:
if d not in path:
path += os.pathsep + d
added.append(d)
if any(added):
Reported by Pylint.
certbot-nginx/certbot_nginx/_internal/parser_obj.py
1 issues
Line: 10
Column: 1
import logging
from typing import List
from certbot import errors
logger = logging.getLogger(__name__)
COMMENT = " managed by Certbot"
COMMENT_BLOCK = ["#", COMMENT]
Reported by Pylint.
certbot-nginx/certbot_nginx/_internal/display_ops.py
1 issues
Line: 4
Column: 1
"""Contains UI methods for Nginx operations."""
import logging
from certbot.display import util as display_util
logger = logging.getLogger(__name__)
def select_vhost_multiple(vhosts):
Reported by Pylint.
certbot/certbot/plugins/enhancements.py
1 issues
Line: 92
Column: 1
help=enh["cli_help"])
class AutoHSTSEnhancement(object, metaclass=abc.ABCMeta):
"""
Enhancement interface that installer plugins can implement in order to
provide functionality that configures the software to have a
'Strict-Transport-Security' with initially low max-age value that will
increase over time.
Reported by Pylint.
certbot/certbot/errors.py
1 issues
Line: 54
Suggestion:
https://bandit.readthedocs.io/en/latest/plugins/b101_assert_used.html
"""
def __init__(self, failed_achalls):
assert failed_achalls
self.failed_achalls = failed_achalls
super().__init__()
def __str__(self):
return "Failed authorization procedure. {0}".format(
Reported by Bandit.
certbot-ci/certbot_integration_tests/certbot_tests/context.py
1 issues
Line: 10
Column: 1
from certbot_integration_tests.utils import certbot_call
class IntegrationTestsContext:
"""General fixture describing a certbot integration tests context"""
def __init__(self, request):
self.request = request
if hasattr(request.config, 'workerinput'): # Worker node
Reported by Pylint.