bandit icon indicating copy to clipboard operation
bandit copied to clipboard

Avoid calls to ast in plugins

Open ericwb opened this issue 2 years ago • 0 comments

If one day we do wish to have the capability to swap the builtin Python ast for another parser, it's best to abstract any direct calls to the ast parser in plugins.

This change addresses calls from plugins and other functions to isinstance with ast node types as arguments. Further work is needed for other ast calls in subsequent patches.

Related to #894

Signed-off-by: Eric Brown [email protected]

ericwb avatar Jun 28 '22 23:06 ericwb