Skip to content

Samples/add improvements #119

Samples/add improvements

Samples/add improvements #119

Triggered via pull request January 22, 2024 07:55
Status Success
Total duration 8m 37s
Artifacts

qodana_code_quality.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

39 warnings and 4 notices
JUnit malformed declaration: core/android/src/test/java/CacaoTestJvmTest.java#L16
Test class `CacaoTestJvmTest` is not constructable because it is not 'public'
Constant conditions: sample/wallet/src/main/kotlin/com/walletconnect/sample/wallet/domain/EthAccountDelegate.kt#L21
Condition 'sharedPreferences.getString(ACCOUNT_TAG, null) != null' is always true
Constant conditions: core/modal/src/main/kotlin/com/walletconnect/modal/utils/DeviceUtils.kt#L9
Condition 'LocalConfiguration.current.orientation == Configuration.ORIENTATION_LANDSCAPE' is always false
Constant conditions: sample/wallet/src/main/kotlin/com/walletconnect/sample/wallet/domain/EthAccountDelegate.kt#L21
Condition '(sharedPreferences.getString(ACCOUNT_TAG, null) != null) \&\& (sharedPreferences.getString(PRIVATE_KEY_TAG, null) != null) \&\& (sharedPreferences.getString(PUBLIC_KEY_TAG, null) != null)' is always true
Constant conditions: sample/wallet/src/main/kotlin/com/walletconnect/sample/wallet/domain/EthAccountDelegate.kt#L21
Condition '(sharedPreferences.getString(ACCOUNT_TAG, null) != null) \&\& (sharedPreferences.getString(PRIVATE_KEY_TAG, null) != null)' is always true
Constant conditions: core/android/src/main/kotlin/com/walletconnect/android/internal/common/storage/pairing/PairingStorageRepository.kt#L35
Condition 'pairingQueries.hasTopic(topic = topic.value).executeAsOneOrNull() != null' is always true
Constant conditions: core/android/src/main/kotlin/com/walletconnect/android/internal/common/storage/rpc/JsonRpcHistory.kt#L67
Condition 'record != null \&\& record.response == null' is always false
Constant conditions: protocol/sign/src/main/kotlin/com/walletconnect/sign/storage/sequence/SessionStorageRepository.kt#L37
Condition 'sessionDaoQueries.hasTopic(topic.value).executeAsOneOrNull() != null' is always true
Constant conditions: sample/wallet/src/main/kotlin/com/walletconnect/sample/wallet/domain/EthAccountDelegate.kt#L21
Condition 'sharedPreferences.getString(PRIVATE_KEY_TAG, null) != null' is always true when reached
Constant conditions: sample/wallet/src/main/kotlin/com/walletconnect/sample/wallet/domain/EthAccountDelegate.kt#L21
Condition 'sharedPreferences.getString(PUBLIC_KEY_TAG, null) != null' is always true when reached
Constant conditions: core/android/src/main/kotlin/com/walletconnect/android/internal/common/storage/metadata/MetadataStorageRepository.kt#L41
Condition 'metaDataQueries.getIdByTopicAndType(topic.value, type).executeAsOneOrNull() != null' is always true
Constant conditions: sample/wallet/src/main/kotlin/com/walletconnect/sample/wallet/ui/Web3WalletActivity.kt#L139
Condition 'ContextCompat.checkSelfPermission(this, android.Manifest.permission.POST_NOTIFICATIONS) == PackageManager.PERMISSION_GRANTED' is always false
Constant conditions: core/android/src/main/kotlin/com/walletconnect/android/internal/common/storage/rpc/JsonRpcHistory.kt#L67
Condition 'record.response == null' is always false when reached
Constant conditions: product/web3modal/src/main/kotlin/com/walletconnect/web3/modal/ui/Web3ModalSheet.kt#L81
Value of '(this as? ComponentDialog)?.onBackPressedDispatcher' is always null
Constant conditions: product/walletconnectmodal/src/main/kotlin/com/walletconnect/wcmodal/ui/WalletConnectModalSheet.kt#L53
Value of '(dialog as? ComponentDialog)?.onBackPressedDispatcher' is always null