File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
sonar-kotlin-checks/src/main/java/org/sonarsource/kotlin/checks Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 16
16
*/
17
17
package org.sonarsource.kotlin.checks
18
18
19
+ import org.jetbrains.kotlin.analysis.api.resolution.KaFunctionCall
19
20
import org.jetbrains.kotlin.psi.KtCallExpression
20
21
import org.jetbrains.kotlin.psi.psiUtil.getCallNameExpression
21
22
import org.jetbrains.kotlin.psi.psiUtil.isNull
22
- import org.jetbrains.kotlin.resolve.calls.model.ResolvedCall
23
23
import org.sonar.check.Rule
24
24
import org.sonarsource.kotlin.api.checks.CallAbstractCheck
25
25
import org.sonarsource.kotlin.api.checks.FunMatcher
@@ -33,14 +33,13 @@ private val ANDROIDX_AUTH = FunMatcher(qualifier = "androidx.biometric.Biometric
33
33
34
34
private const val MESSAGE = """ Make sure performing a biometric authentication without a "CryptoObject" is safe here."""
35
35
36
- @org.sonarsource.kotlin.api.frontend.K1only
37
36
@Rule(key = " S6293" )
38
37
class BiometricAuthWithoutCryptoCheck : CallAbstractCheck () {
39
38
override val functionsToVisit = setOf (ANDROID_HARDWARE_AUTH , ANDROIDX_AUTH )
40
39
41
40
override fun visitFunctionCall (
42
41
callExpression : KtCallExpression ,
43
- resolvedCall : ResolvedCall <* >,
42
+ resolvedCall : KaFunctionCall <* >,
44
43
matchedFun : FunMatcherImpl ,
45
44
kotlinFileContext : KotlinFileContext ,
46
45
) {
You can’t perform that action at this time.
0 commit comments