securesauce / precli

Precaution CLI - command line static application security testing tool
https://precli.readthedocs.io/
Other
21 stars 3 forks source link

augmented_assignment node not handled #510

Closed ericwb closed 1 month ago

ericwb commented 3 months ago

Describe the bug An augmented_assignment node, like "a += 1" should be handled similar to assignment node.

To Reproduce

  1. Create test code with an augmented_assignment
  2. Run precli and notice it is ignored

Expected behavior New visit_augmented_assignment() function to handle this. Might get complicated since the augmentation can be +, -, /, &, |, %, etc.

Version

precli 0.5.6
Copyright 2024 Secure Sauce LLC
License BUSL-1.1: Business Source License 1.1 <https://spdx.org/licenses/BUSL-1.1.html>
  Python 3.12.4 (main, Jun 25 2024, 11:01:48) [Clang 15.0.0 (clang-1500.3.9.4)]

Additional context