Skip to content

Commit e5eec2f

Browse files
committed
style(analyzers): format curl suffix prefilter
Signed-off-by: yashrajbasav <[email protected]>
1 parent 24bed2f commit e5eec2f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎src/skillspector/nodes/analyzers/static_patterns_tool_misuse.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3162,9 +3162,10 @@ def _tm1_candidates(
31623162
# checking it first preserves the original matches, including Unicode
31633163
# IGNORECASE aliases and multiline command spans.
31643164
curl_prefix = r"curl\s+[^|]*"
3165-
if pattern.startswith(curl_prefix) and re.search(
3166-
pattern.removeprefix(curl_prefix), content, re.IGNORECASE
3167-
) is None:
3165+
if (
3166+
pattern.startswith(curl_prefix)
3167+
and re.search(pattern.removeprefix(curl_prefix), content, re.IGNORECASE) is None
3168+
):
31683169
continue
31693170
matches = (
31703171
static_runner.iter_paragraph_matches

0 commit comments

Comments
 (0)