Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to detect "Convert to 'data object'" in lint #95

Open
theapache64 opened this issue Sep 4, 2024 · 0 comments
Open

How to detect "Convert to 'data object'" in lint #95

theapache64 opened this issue Sep 4, 2024 · 0 comments

Comments

@theapache64
Copy link

image

Hi,

Currently, I’ve allWarningsAsErrors set to true in my project, but for some reason the Convert to 'data object' warning is not failing the build (unlike other warnings). I got to know that this is an IDE warning and can’t be caught with lint. So I thought of writing a custom lint doing the same.

I was trying to do that and am not able to figure out how to detect even an object keyword.
I tried playing with a custom Detector(), SourceCodeScanner with getApplicableUastTypes and getApplicablePsiTypes but am not able to understand what exact param i need to pass or which exact method i need to observe in the createPsiVisitor / createUastHandler

Any help would be highly appreciated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant