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

Specify codeql queries #173

Merged
merged 21 commits into from
Aug 8, 2022
Merged

Specify codeql queries #173

merged 21 commits into from
Aug 8, 2022

Conversation

rparini
Copy link
Owner

@rparini rparini commented Aug 7, 2022

No description provided.


integral_real, abserr_real = scipy.integrate.quad(integrand_real, *args, **kwargs)
integral_imag, abserr_imag = scipy.integrate.quad(integrand_imag, *args, **kwargs)
integral = integral_real + 1j * integral_imag

Check failure

Code scanning / CodeQL

Potentially uninitialized local variable

Local variable 'integral_real' may be used before it is initialized.

integral_real, abserr_real = scipy.integrate.quad(integrand_real, *args, **kwargs)
integral_imag, abserr_imag = scipy.integrate.quad(integrand_imag, *args, **kwargs)
integral = integral_real + 1j * integral_imag

Check failure

Code scanning / CodeQL

Potentially uninitialized local variable

Local variable 'integral_imag' may be used before it is initialized.
integral_real, abserr_real = scipy.integrate.quad(integrand_real, *args, **kwargs)
integral_imag, abserr_imag = scipy.integrate.quad(integrand_imag, *args, **kwargs)
integral = integral_real + 1j * integral_imag
err = abserr_real + 1j * abserr_imag

Check failure

Code scanning / CodeQL

Potentially uninitialized local variable

Local variable 'abserr_real' may be used before it is initialized.
integral_real, abserr_real = scipy.integrate.quad(integrand_real, *args, **kwargs)
integral_imag, abserr_imag = scipy.integrate.quad(integrand_imag, *args, **kwargs)
integral = integral_real + 1j * integral_imag
err = abserr_real + 1j * abserr_imag

Check failure

Code scanning / CodeQL

Potentially uninitialized local variable

Local variable 'abserr_imag' may be used before it is initialized.
cxroots/util.py Fixed Show fixed Hide fixed
cxroots/util.py Fixed Show fixed Hide fixed
cxroots/util.py Fixed Show fixed Hide fixed
cxroots/util.py Fixed Show fixed Hide fixed
@rparini
Copy link
Owner Author

rparini commented Aug 8, 2022

I can't see anything wrong with the lines that CodeQL is flagging as errors so I've reported this as a bug github/codeql#9987 and I will dismiss the alerts

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.

1 participant