Skip to content

Commit

Permalink
fixup! plugins/semgrep: disble pylint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyw committed Mar 27, 2024
1 parent 66f0ce1 commit 2bb6a0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/plugins/semgrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"""
import os

from csmock.common.util import sanitize_opts_arg
from csmock.common.util import sanitize_opts_arg # pylint: disable=import-error


# disable metrics to be sent to semgrep cloud
Expand Down Expand Up @@ -100,7 +100,7 @@ def handle_args(self, parser, args, props): # pylint: disable=too-many-statemen
parser.error("'--semgrep-rules-repo' is required to run semgrep scan")

# sanitize options passed to --semgrep-scan-opts to avoid shell injection
self.semgrep_scan_opts = sanitize_opts_arg(parser, args, "--semgrep-scan-opts")
self.semgrep_scan_opts = sanitize_opts_arg(parser, args, "--semgrep-scan-opts") # pylint: disable=attribute-defined-outside-init

# install semgrep cli and download semgrep rules
def prepare_semgrep_runtime_hook(results, props):
Expand Down

0 comments on commit 2bb6a0c

Please sign in to comment.