-
Notifications
You must be signed in to change notification settings - Fork 4
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
WIP: Add lint restriction for Binder #65
base: develop
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,27 @@ | |||
plugins { | |||
id("java-library") | |||
id("kotlin") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Добавь сюда еще ktlint плагин
import com.intellij.psi.PsiMethod | ||
import org.jetbrains.uast.UCallExpression | ||
|
||
class WrongGenimiUsageDetector : Detector(), SourceCodeScanner { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вот тут есть подозрение, что используется старое API посмотри как сделано на нашем рабочем проекте (название не называю из-за NDA)
import com.android.tools.lint.checks.infrastructure.LintDetectorTest | ||
|
||
@Suppress("UnstableApiUsage") | ||
class WrongGenimiUsageDetectorTest : LintDetectorTest() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут у тестов тоже старое апи, желательно поднять версию, так как может тупить
Add android lint rules to restrict usage of
Binder
'sbind
method outside ofonCreate