Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(python): update analyzer #1589

Merged
merged 3 commits into from
May 13, 2024
Merged

fix(python): update analyzer #1589

merged 3 commits into from
May 13, 2024

Conversation

elsapet
Copy link
Contributor

@elsapet elsapet commented May 13, 2024

Description

Add parenthesized_expression and a few more cases to the analyzer

We now catch the following sorts of things:

# args list with parenthesized expression
with fileinput.input(files=(filepath), encoding="utf-8") as f:

# args as arrays
subprocess.run([unsafe, "exit 0"], shell=True, capture_output=True)

Checklist

If this is your first time contributing please sign the CLA

  • I've added test coverage that shows my fix or feature works as expected.
  • I've updated or added documentation if required.

internal/languages/python/analyzer/analyzer.go Outdated Show resolved Hide resolved
internal/languages/python/analyzer/analyzer.go Outdated Show resolved Hide resolved
elsapet and others added 2 commits May 13, 2024 15:26
Co-authored-by: David Roe <dave.roe@bearer.sh>
Co-authored-by: David Roe <dave.roe@bearer.sh>
@elsapet elsapet merged commit bd3a9d9 into main May 13, 2024
8 checks passed
@elsapet elsapet deleted the fix/python/update-analyzer branch May 13, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants