Im musing on how to write some helpers for dealing...
# announcements
j
Im musing on how to write some helpers for dealing with sensitive data, and I’m taking some inspiration from rust’s
unsafe
blocks. Curious if there would be a way with lint in UAST to error if any property or method with some annotation is called outside of some block like
Copy code
data class Foo(@Secret val password: String)
Copy code
foo.someSecret
would error but the following is ok
Copy code
omgAuditThisPls {
 foo.someSecret
}
This is a contrived example, because foo.toString() could leak secrets but that can be handled by another abstraction