https://github.com/googlesamples/android-custom-lint-rules
UAST Tree 검사
-
Help | Edit Custom Properties
- idea.is.internal=true
- Restart IDE
-
Tools | Internal Actions | UAST | Dump UAST Tree (By Each PsiElement)
Enabling Internal Mode : https://plugins.jetbrains.com/docs/intellij/enabling-internal.html
Inspecting UAST Tree : https://plugins.jetbrains.com/docs/intellij/uast.html#inspecting-uast-tree
- Java/Kotlin 파일에 존재하는 Local Property/Field를 Detect
- 필드 정의보다 앞에 존재하는 Document, Comment는 제외
Detector Source : PropertyWithExcludeFirstCommentDetector
Kotlin | Java |
---|---|
Java 클래스 내에서 선언한 필드 중 동일한 클래스 내의 Inner 타입 필드를 Detect
Java |
---|
특정 함수 & 특정 파라미터 값을 사용하는 케이스를 Detect
Kotlin | Java |
---|---|
TypedArray 사용시 AutoCloseable use 사용시 이슈
Kotlin |
---|
XML |
---|
Kotlin |
---|