News for hackers. Stuff that matters.
Re:Abstract Syntax Tree for Patching Code and Assessing Code... by stevekemp on Monday June 07, 2021 @10:03AM (#27422727)
Agreed. I've not used it much, but I've done some fun things with it - mostly relating to adding linting checks for pipelines.

For example we use troposphere to generate cloudformation templates, so I wrote a linter which would ensure that every time we tried to create an elastic container registry on AWS we explicitly setup "security scanning" to be "on".

That kind of thing is trivial to write when you have the AST to manipulate:

* Find all calls to function "foo(...)".

* Error out if there is is no parameter "scan_on_push = True".

There are no comments on this comment yet.