You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The assert rule shows lots of results if it happens to scan a directory designed for unit tests, especially if using PyTest.
Describe the solution you'd like
Add more intelligence to the assert rule such that it inspects the scope to know if the assert is within a class of pattern "Test" or "Test", or alternatively in a function "test_".
And ideally there should be a way to configure these default settings. So a parent feature might be to implement an extensive configuration mechanism.
Describe alternatives you've considered
n/a
Additional context
n/a
Love this idea? Give it a 👍. We prioritize fulfilling features with the most 👍.
The text was updated successfully, but these errors were encountered:
For several Python test frameworks, the assert builtin is
required to validate the test. Precli should avoid showing
results for this condition since this isn't the use case
the rule is trying to find.
Fixes: securesauce#638
Signed-off-by: Eric Brown <eric.brown@securesauce.dev>
Is your feature request related to a problem? Please describe.
The assert rule shows lots of results if it happens to scan a directory designed for unit tests, especially if using PyTest.
Describe the solution you'd like
Add more intelligence to the assert rule such that it inspects the scope to know if the assert is within a class of pattern "Test" or "Test", or alternatively in a function "test_".
And ideally there should be a way to configure these default settings. So a parent feature might be to implement an extensive configuration mechanism.
Describe alternatives you've considered
n/a
Additional context
n/a
Love this idea? Give it a 👍. We prioritize fulfilling features with the most 👍.
The text was updated successfully, but these errors were encountered: