Is there some tooling that will produce an abstract syntax tree for an app written in Kotlin? There is some static analysis that I would like to do to check for custom patterns in my code base.
👀 1
p
Paul Woitaschek
12/10/2021, 6:12 PM
You can use KSP for that
Paul Woitaschek
12/10/2021, 6:13 PM
For example I have that in my MPP project to throw an error when a public property is called description because it clashes with swift
j
jw
12/10/2021, 6:56 PM
UAST will do this
jw
12/10/2021, 6:56 PM
KSP only shows signatures, not any kind of code / implementation
c
Carl Hickman
12/10/2021, 7:00 PM
Very cool. Thank you.
c
Colton Idle
12/11/2021, 7:00 AM
@Carl Hickman not sure if you know about android lint. It's got android in the name, but it's not actually android specific. Might be worth checking out?