diff --git a/app/detekt-baseline.xml b/app/detekt-baseline.xml index 3c941c851105b6a522a6f12748266eb03c1da7ea..c8f15598e727c2dd5142c078551d4c744e35ba8c 100644 --- a/app/detekt-baseline.xml +++ b/app/detekt-baseline.xml @@ -21,29 +21,23 @@ EmptyCatchBlock:NativeDeviceInfoProviderModule.kt$NativeDeviceInfoProviderModule${ } EmptyFunctionBlock:CleanApkAuthenticator.kt$CleanApkAuthenticator${} - ImplicitDefaultLocale:ApplicationFragment.kt$ApplicationFragment$String.format("%d%%", progressPercentage) - ImplicitDefaultLocale:ApplicationListFragment.kt$ApplicationListFragment$String.format("%d%%", progress) - ImplicitDefaultLocale:HomeFragment.kt$HomeFragment$String.format("%d%%", progress) - ImplicitDefaultLocale:SearchFragment.kt$SearchFragment$String.format("%d%%", progress) - ImplicitDefaultLocale:StorageComputer.kt$StorageComputer$String.format("%.1f %cB", bytes / 1000.0, ci.current()) - ImplicitDefaultLocale:UpdatesFragment.kt$UpdatesFragment$String.format("%d%%", progress) InstanceOfCheckForException:GPlayHttpClient.kt$GPlayHttpClient$e is SocketTimeoutException InvalidPackageDeclaration:Trackers.kt$package foundation.e.apps.data.exodus LargeClass:ApplicationFragment.kt$ApplicationFragment : TimeoutFragment - LongParameterList:AppManagerImpl.kt$AppManagerImpl$( @Named("cacheDir") private val cacheDir: String, private val downloadManager: DownloadManager, private val notificationManager: NotificationManager, private val appInstallRepository: AppInstallRepository, private val pwaManager: PWAManager, private val appLoungePackageManager: AppLoungePackageManager, @Named("download") private val downloadNotificationChannel: NotificationChannel, @Named("update") private val updateNotificationChannel: NotificationChannel, @ApplicationContext private val context: Context ) + LongParameterList:AppManagerImpl.kt$AppManagerImpl$( @Named("cacheDir") private val cacheDir: String, private val downloadManager: DownloadManager, private val notificationManager: NotificationManager, private val appInstallRepository: AppInstallRepository, private val pwaManager: PwaManager, private val appLoungePackageManager: AppLoungePackageManager, @Named("download") private val downloadNotificationChannel: NotificationChannel, @Named("update") private val updateNotificationChannel: NotificationChannel, @ApplicationContext private val context: Context ) LongParameterList:ApplicationDialogFragment.kt$ApplicationDialogFragment$( title: String, message: String, @DrawableRes drawableResId: Int = -1, drawable: Drawable? = null, positiveButtonText: String = "", positiveButtonAction: (() -> Unit)? = null, cancelButtonText: String = "", cancelButtonAction: (() -> Unit)? = null, cancelable: Boolean = true, onDismissListener: (() -> Unit)? = null, ) LongParameterList:ApplicationListRVAdapter.kt$ApplicationListRVAdapter$( private val applicationInstaller: ApplicationInstaller, private val privacyInfoViewModel: PrivacyInfoViewModel, private val appInfoFetchViewModel: AppInfoFetchViewModel, private val mainActivityViewModel: MainActivityViewModel, private val currentDestinationId: Int, private var lifecycleOwner: LifecycleOwner?, private var paidAppHandler: ((Application) -> Unit)? = null ) - LongParameterList:ApplicationViewModel.kt$ApplicationViewModel$( id: String, packageName: String, origin: Origin, isFdroidLink: Boolean, authObjectList: List<AuthObject>, retryBlock: (failedObjects: List<AuthObject>) -> Boolean, ) LongParameterList:CleanApkRetrofit.kt$CleanApkRetrofit$( @Query("keyword") keyword: String, @Query("source") source: String = APP_SOURCE_FOSS, @Query("type") type: String = APP_TYPE_ANY, @Query("nres") nres: Int = 20, @Query("page") page: Int = 1, @Query("by") by: String? = null, ) LongParameterList:EglExtensionProvider.kt$EglExtensionProvider$( egl10: EGL10, eglDisplay: EGLDisplay, eglConfig: EGLConfig?, ai: IntArray, ai1: IntArray?, set: MutableSet<String> ) - LongParameterList:MainActivityViewModel.kt$MainActivityViewModel$( private val appLoungeDataStore: AppLoungeDataStore, private val applicationRepository: ApplicationRepository, private val appManagerWrapper: AppManagerWrapper, private val appLoungePackageManager: AppLoungePackageManager, private val pwaManager: PWAManager, private val ecloudRepository: EcloudRepository, private val blockedAppRepository: BlockedAppRepository, private val contentRatingsRepository: ContentRatingsRepository, private val appInstallProcessor: AppInstallProcessor, ) - LongParameterList:UpdatesManagerImpl.kt$UpdatesManagerImpl$( @ApplicationContext private val context: Context, private val appLoungePackageManager: AppLoungePackageManager, private val applicationRepository: ApplicationRepository, private val faultyAppRepository: FaultyAppRepository, private val appLoungePreference: AppLoungePreference, private val fdroidRepository: FdroidRepository, private val blockedAppRepository: BlockedAppRepository, ) - LongParameterList:UpdatesWorker.kt$UpdatesWorker$( @Assisted private val context: Context, @Assisted private val params: WorkerParameters, private val updatesManagerRepository: UpdatesManagerRepository, private val dataStoreManager: DataStoreManager, private val authenticatorRepository: AuthenticatorRepository, private val appInstallProcessor: AppInstallProcessor, private val blockedAppRepository: BlockedAppRepository, ) + LongParameterList:MainActivityViewModel.kt$MainActivityViewModel$( private val appLoungeDataStore: AppLoungeDataStore, private val applicationRepository: ApplicationRepository, private val appManagerWrapper: AppManagerWrapper, private val appLoungePackageManager: AppLoungePackageManager, private val pwaManager: PwaManager, private val ecloudRepository: EcloudRepository, private val blockedAppRepository: BlockedAppRepository, private val gPlayContentRatingRepository: GPlayContentRatingRepository, private val fDroidAntiFeatureRepository: FDroidAntiFeatureRepository, private val appInstallProcessor: AppInstallProcessor, private val systemAppsUpdatesRepository: SystemAppsUpdatesRepository, ) + LongParameterList:UpdatesManagerImpl.kt$UpdatesManagerImpl$( @ApplicationContext private val context: Context, private val appLoungePackageManager: AppLoungePackageManager, private val applicationRepository: ApplicationRepository, private val faultyAppRepository: FaultyAppRepository, private val appLoungePreference: AppLoungePreference, private val fDroidRepository: FDroidRepository, private val blockedAppRepository: BlockedAppRepository, private val systemAppsUpdatesRepository: SystemAppsUpdatesRepository, ) + LongParameterList:UpdatesWorker.kt$UpdatesWorker$( @Assisted private val context: Context, @Assisted private val params: WorkerParameters, private val updatesManagerRepository: UpdatesManagerRepository, private val appLoungeDataStore: AppLoungeDataStore, private val authenticatorRepository: AuthenticatorRepository, private val appInstallProcessor: AppInstallProcessor, private val blockedAppRepository: BlockedAppRepository, private val systemAppsUpdatesRepository: SystemAppsUpdatesRepository, ) MagicNumber:AnonymousLoginManager.kt$AnonymousLoginManager$200 MagicNumber:ApkSignatureManager.kt$ApkSignatureManager$1024 MagicNumber:AppDatabase.kt$AppDatabase.Companion.<no name provided>$3 MagicNumber:AppDatabase.kt$AppDatabase.Companion.<no name provided>$4 MagicNumber:AppManagerWrapper.kt$AppManagerWrapper$100 + MagicNumber:AppPrivacyInfoRepositoryImpl.kt$AppPrivacyInfoRepositoryImpl$5 MagicNumber:ApplicationFragment.kt$ApplicationFragment$100f MagicNumber:ApplicationFragment.kt$ApplicationFragment$15 MagicNumber:ApplicationFragment.kt$ApplicationFragment$3 @@ -53,9 +47,8 @@ MagicNumber:ApplicationListRVAdapter.kt$ApplicationListRVAdapter$0.7f MagicNumber:ApplicationListRVAdapter.kt$ApplicationListRVAdapter$500 MagicNumber:AuthObject.kt$AuthObject.GPlayAuth$401 - MagicNumber:CleanApkPWARepository.kt$CleanApkPWARepository$20 - MagicNumber:CommonUtilsModule.kt$CommonUtilsModule$10 MagicNumber:CommonUtilsModule.kt$CommonUtilsModule$1024 + MagicNumber:CommonUtilsModule.kt$CommonUtilsModule$30 MagicNumber:DepthPageTransformer.kt$DepthPageTransformer$0.75f MagicNumber:DownloadManagerUtils.kt$DownloadManagerUtils$1500 MagicNumber:DownloadProgressLD.kt$DownloadProgressLD$20 @@ -70,7 +63,6 @@ MagicNumber:HomeChildRVAdapter.kt$HomeChildRVAdapter$500 MagicNumber:InstallerService.kt$InstallerService$69 MagicNumber:NativeDeviceInfoProviderModule.kt$NativeDeviceInfoProviderModule$15 - MagicNumber:PackageInstallerService.kt$PackageInstallerService$69 MagicNumber:PkgManagerBR.kt$PkgManagerBR$69 MagicNumber:PlayStoreLoginWrapper.kt$PlayStoreLoginWrapper$200 MagicNumber:ScreenshotRVAdapter.kt$ScreenshotRVAdapter$10f @@ -82,28 +74,32 @@ MagicNumber:TOSFragment.kt$TOSFragment$20 MaxLineLength:AppManagerImpl.kt$AppManagerImpl$. MaxLineLength:AppManagerImpl.kt$AppManagerImpl$return - MaxLineLength:AppManagerWrapper.kt$AppManagerWrapper$downloadList.find { it.origin == app.origin && (it.packageName == app.package_name || it.id == app.package_name) } - MaxLineLength:AppManagerWrapper.kt$AppManagerWrapper$return fdroidRepository.isFdroidApplicationSigned(context, appInstall.packageName, apkFilePath, appInstall.signature) + MaxLineLength:AppManagerWrapper.kt$AppManagerWrapper$return fDroidRepository.isFDroidApplicationSigned(context, appInstall.packageName, apkFilePath, appInstall.signature) MaxLineLength:AppManagerWrapper.kt$AppManagerWrapper$suspend - MaxLineLength:AppPrivacyInfo.kt$AppPrivacyInfo MaxLineLength:ApplicationFragment.kt$ApplicationFragment.Companion$"https://gitlab.e.foundation/e/os/apps/-/blob/main/app/src/main/java/foundation/e/apps/data/exodus/repositories/PrivacyScoreRepositoryImpl.kt" MaxLineLength:CommonUtilsModule.kt$CommonUtilsModule$* MaxLineLength:DownloadManager.kt$DownloadManager$Timber.e("Download Issue: $downloadId : DownloadManager returns status: $status but the failed because: reason: $reason") MaxLineLength:DownloadManagerUtils.kt$DownloadManagerUtils$Timber.d("===> updateDownloadStatus: ${appInstall.name}: $downloadId: $numberOfDownloadedItems/${appInstall.downloadIdMap.size}") MaxLineLength:DownloadManagerUtils.kt$DownloadManagerUtils$if MaxLineLength:DownloadManagerUtils.kt$DownloadManagerUtils$numberOfDownloadedItems == appInstall.downloadIdMap.size && numberOfDownloadedItems == appInstall.downloadURLList.size - MaxLineLength:FdroidRepository.kt$FdroidRepository$override suspend + MaxLineLength:FDroidRepository.kt$FDroidRepository$if + MaxLineLength:FDroidRepository.kt$FDroidRepository$override suspend + MaxLineLength:GoogleLoginManager.kt$GoogleLoginManager$authData = AuthHelper.build(email, aasToken, tokenType = AuthHelper.Token.AAS, properties = nativeDeviceProperty) MaxLineLength:MainActivity.kt$MainActivity$if - MaxLineLength:MainActivityViewModel.kt$MainActivityViewModel$fusedDownload.origin == it.origin && (fusedDownload.packageName == it.package_name || fusedDownload.id == it._id) - MaxLineLength:PlayStoreRepository.kt$PlayStoreRepository$suspend fun getSearchResult(query: String, subBundle: MutableSet<SearchBundle.SubBundle>?): Pair<List<App>, MutableSet<SearchBundle.SubBundle>> - MaxLineLength:PlayStoreRepositoryImpl.kt$PlayStoreRepositoryImpl$context.getString(R.string.movers_shakers_apps) to mapOf(Chart.MOVERS_SHAKERS to TopChartsHelper.Type.APPLICATION) - MaxLineLength:PlayStoreRepositoryImpl.kt$PlayStoreRepositoryImpl$context.getString(R.string.topselling_free_apps) to mapOf(Chart.TOP_SELLING_FREE to TopChartsHelper.Type.APPLICATION) + MaxLineLength:MainActivity.kt$MainActivity$is InternalException.AppNotPurchased -> showSnackbarMessage(getString(R.string.message_app_available_later)) + MaxLineLength:MainActivityViewModel.kt$MainActivityViewModel$fusedDownload.source == it.source && (fusedDownload.packageName == it.package_name || fusedDownload.id == it._id) MaxLineLength:PrivacyScoreRepositoryImpl.kt$PrivacyScoreRepositoryImpl$return if (numberOfTrackers > THRESHOLD_OF_NON_ZERO_TRACKER_SCORE) MIN_TRACKER_SCORE else MAX_TRACKER_SCORE - numberOfTrackers MaxLineLength:SettingsFragment.kt$SettingsFragment$showAllApplications?.isChecked == true || showFOSSApplications?.isChecked == true || showPWAApplications?.isChecked == true MaxLineLength:UpdatesNotifier.kt$UpdatesNotifier$notificationBuilder.setContentText(context.getString(R.string.automatically_install_updates_notification_text)) MaxLineLength:UpdatesViewModel.kt$UpdatesViewModel$return updatesList.value?.first?.any { it.status == Status.UPDATABLE || it.status == Status.INSTALLATION_ISSUE } == true MaxLineLength:UpdatesWorker.kt$UpdatesWorker$applicationContext.checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED MayBeConst:EcloudApiInterface.kt$EcloudApiInterface.Companion$val BASE_URL = "https://eu.gtoken.ecloud.global/" + MemberNameEqualsClassName:Stores.kt$Stores$private val stores = defaultStores.toMutableMap() + NewLineAtEndOfFile:ContentRatingValidity.kt$foundation.e.apps.domain.model.ContentRatingValidity.kt + NewLineAtEndOfFile:HomeConverter.kt$foundation.e.apps.data.cleanapk.repositories.HomeConverter.kt + NewLineAtEndOfFile:Stores.kt$foundation.e.apps.data.Stores.kt + NewLineAtEndOfFile:SystemAppsUpdatesRepository.kt$foundation.e.apps.data.gitlab.SystemAppsUpdatesRepository.kt + PrintStackTrace:AppPrivacyInfoRepositoryImpl.kt$AppPrivacyInfoRepositoryImpl$e PrintStackTrace:CommonUtilsModule.kt$CommonUtilsModule$e PrintStackTrace:EcloudRepository.kt$EcloudRepository$e PrintStackTrace:InstallWorkManager.kt$InstallWorkManager$e @@ -115,31 +111,39 @@ ProtectedMemberInFinalClass:SearchFragment.kt$SearchFragment$protected val searchViewModel: SearchViewModel by viewModels() ReturnCount:ApkSignatureManager.kt$ApkSignatureManager$private fun verifyAPKSignature( apkInputStream: BufferedInputStream, apkSignatureInputStream: InputStream, publicKeyInputStream: InputStream, packageName: String ): Boolean ReturnCount:AppInstallProcessor.kt$AppInstallProcessor$private suspend fun updateDownloadUrls(appInstall: AppInstall): Boolean - ReturnCount:AppInstallProcessor.kt$AppInstallProcessor$suspend fun enqueueFusedDownload( appInstall: AppInstall, isAnUpdate: Boolean = false ) + ReturnCount:AppInstallProcessor.kt$AppInstallProcessor$suspend fun enqueueFusedDownload( appInstall: AppInstall, isAnUpdate: Boolean = false, isSystemApp: Boolean = false ) ReturnCount:AppManagerWrapper.kt$AppManagerWrapper$suspend fun addDownload(appInstall: AppInstall): Boolean ReturnCount:AppManagerWrapper.kt$AppManagerWrapper$suspend fun calculateProgress( application: Application?, progress: DownloadProgress ): Int ReturnCount:AppPrivacyInfoRepositoryImpl.kt$AppPrivacyInfoRepositoryImpl$override suspend fun getAppPrivacyInfo( application: Application, appHandle: String ): Result<AppPrivacyInfo> - ReturnCount:AppPrivacyInfoRepositoryImpl.kt$AppPrivacyInfoRepositoryImpl$private fun getAppPrivacyInfo( application: Application, appTrackerData: List<Report>, ): AppPrivacyInfo + ReturnCount:CleanApkAppsRepository.kt$CleanApkAppsRepository$override suspend fun getAppDetails(packageName: String): Application + ReturnCount:CleanApkPwaRepository.kt$CleanApkPwaRepository$override suspend fun getAppDetails(packageName: String): Application ReturnCount:DownloadManager.kt$DownloadManager$fun getSizeRequired(downloadId: Long): Long ReturnCount:DownloadManager.kt$DownloadManager$private fun sanitizeStatus(downloadId: Long, status: Int, reason: Int): Int ReturnCount:Extensions.kt$fun Context.isNetworkAvailable(): Boolean ReturnCount:PlayStoreAuthenticator.kt$PlayStoreAuthenticator$override suspend fun validateAuthData(): ResultSupreme<AuthData?> ReturnCount:PlayStoreAuthenticator.kt$PlayStoreAuthenticator$private suspend fun getAuthDataWithGoogleAccount(): ResultSupreme<AuthData?> + ReturnCount:PrivacyInfoViewModel.kt$PrivacyInfoViewModel$fun shouldRequestExodusReport(application: Application?): Boolean + ReturnCount:SearchApiImpl.kt$SearchApiImpl$private suspend fun replaceWithFDroid(gPlayApps: List<Application>): List<Application> + ReturnCount:SplitInstallBinder.kt$SplitInstallBinder$private fun showErrorNotification(context: Context, packageName: String) ReturnCount:StorageNotificationManager.kt$StorageNotificationManager$private fun getSpaceMissing(appInstall: AppInstall, downloadId: Long? = null): Long + ReturnCount:SystemAppsUpdatesRepository.kt$SystemAppsUpdatesRepository$private suspend fun getApplication( packageName: String, releaseType: OsReleaseType, sdkLevel: Int, device: String, ): Application? + ReturnCount:SystemAppsUpdatesRepository.kt$SystemAppsUpdatesRepository$private suspend fun getReleaseDetailsUrl( systemAppProject: SystemAppProject, releaseType: OsReleaseType, ): String? ReturnCount:UpdatesManagerImpl.kt$UpdatesManagerImpl$private suspend fun calculateSignatureVersion(latestCleanapkApp: Application): String SpreadOperator:DownloadProgressLD.kt$DownloadProgressLD$(*downloadingIds.toLongArray()) SpreadOperator:EglExtensionProvider.kt$EglExtensionProvider$(*`as`) SpreadOperator:NativeDeviceInfoProviderModule.kt$NativeDeviceInfoProviderModule$(*context.assets.locales) SpreadOperator:NativeDeviceInfoProviderModule.kt$NativeDeviceInfoProviderModule$(*systemSharedLibraryNames) SwallowedException:AppInfoFetchViewModel.kt$AppInfoFetchViewModel$e: Exception - SwallowedException:AppInstallProcessor.kt$AppInstallProcessor$e: ApiException.AppNotPurchased + SwallowedException:AppInstallProcessor.kt$AppInstallProcessor$e: IllegalStateException + SwallowedException:AppInstallProcessor.kt$AppInstallProcessor$e: InternalException.AppNotPurchased SwallowedException:AppLoungePackageManager.kt$AppLoungePackageManager$e: PackageManager.NameNotFoundException - SwallowedException:ApplicationViewModel.kt$ApplicationViewModel$e: ApiException.AppNotFound SwallowedException:ApplicationViewModel.kt$ApplicationViewModel$e: Exception + SwallowedException:ApplicationViewModel.kt$ApplicationViewModel$e: InternalException.AppNotFound SwallowedException:GPlayHttpClient.kt$GPlayHttpClient$e: Exception SwallowedException:NativeDeviceInfoProviderModule.kt$NativeDeviceInfoProviderModule$e: Exception SwallowedException:NativeGsfVersionProvider.kt$NativeGsfVersionProvider$e: PackageManager.NameNotFoundException SwallowedException:UpdatesManagerImpl.kt$UpdatesManagerImpl$e: Exception + TooGenericExceptionCaught:AgeRatingProvider.kt$AgeRatingProvider$e: Exception TooGenericExceptionCaught:AnonymousLoginManager.kt$AnonymousLoginManager$e: Exception TooGenericExceptionCaught:ApiCaller.kt$e: Exception TooGenericExceptionCaught:ApkSignatureManager.kt$ApkSignatureManager$e: Exception @@ -147,6 +151,8 @@ TooGenericExceptionCaught:AppInstallProcessor.kt$AppInstallProcessor$e: Exception TooGenericExceptionCaught:AppLoungePackageManager.kt$AppLoungePackageManager$e: Exception TooGenericExceptionCaught:AppManagerImpl.kt$AppManagerImpl$e: Exception + TooGenericExceptionCaught:AppPrivacyInfoRepositoryImpl.kt$AppPrivacyInfoRepositoryImpl$e: Exception + TooGenericExceptionCaught:AppPrivacyInfoRepositoryImpl.kt$AppPrivacyInfoRepositoryImpl$exception: Exception TooGenericExceptionCaught:ApplicationViewModel.kt$ApplicationViewModel$e: Exception TooGenericExceptionCaught:BlockedAppRepository.kt$BlockedAppRepository$exception: Exception TooGenericExceptionCaught:CommonUtilsModule.kt$CommonUtilsModule$e: Exception @@ -162,9 +168,11 @@ TooGenericExceptionCaught:LocaleChangedBroadcastReceiver.kt$LocaleChangedBroadcastReceiver$ex: Exception TooGenericExceptionCaught:NativeDeviceInfoProviderModule.kt$NativeDeviceInfoProviderModule$e: Exception TooGenericExceptionCaught:NetworkHandler.kt$e: Exception - TooGenericExceptionCaught:PWAManager.kt$PWAManager$e: Exception - TooGenericExceptionCaught:PWAPlayerStatusReceiver.kt$PWAPlayerStatusReceiver$e: Exception TooGenericExceptionCaught:PlayStoreAuthenticator.kt$PlayStoreAuthenticator$e: Exception + TooGenericExceptionCaught:PlayStoreRepository.kt$PlayStoreRepository$exception: Exception + TooGenericExceptionCaught:PwaManager.kt$PwaManager$e: Exception + TooGenericExceptionCaught:PwaPlayerStatusReceiver.kt$PwaPlayerStatusReceiver$e: Exception + TooGenericExceptionCaught:SearchApiImpl.kt$SearchApiImpl$e: Exception TooGenericExceptionCaught:SystemInfoProvider.kt$SystemInfoProvider$e: Exception TooGenericExceptionCaught:UpdatesManagerImpl.kt$UpdatesManagerImpl$e: Exception TooGenericExceptionCaught:UpdatesWorker.kt$UpdatesWorker$e: Throwable @@ -182,6 +190,17 @@ TooManyFunctions:SearchFragment.kt$SearchFragment : TimeoutFragmentOnQueryTextListenerOnSuggestionListenerApplicationInstaller TooManyFunctions:TimeoutFragment.kt$TimeoutFragment : Fragment TooManyFunctions:UpdatesFragment.kt$UpdatesFragment : TimeoutFragmentApplicationInstaller - UnusedParameter:SearchViewModel.kt$SearchViewModel$lifecycleOwner: LifecycleOwner + UnusedParameter:PrivacyInfoViewModel.kt$PrivacyInfoViewModel$forced: Boolean = false + UnusedParameter:SearchViewModel.kt$SearchViewModel$gPlayAuth: AuthObject.GPlayAuth + UnusedPrivateProperty:SearchViewModel.kt$SearchViewModel.Companion$private const val DATA_LOAD_ERROR = "Data load error" + UseCheckOrError:AppsApiImpl.kt$AppsApiImpl$throw IllegalStateException("Could not get store") + UseCheckOrError:CleanApkAppsRepository.kt$CleanApkAppsRepository$throw IllegalStateException("No home data found") + UseCheckOrError:CleanApkPwaRepository.kt$CleanApkPwaRepository$throw IllegalStateException("No home data found") + UseCheckOrError:HomeApiImpl.kt$HomeApiImpl$throw IllegalStateException("Could not find store for $source") + UseCheckOrError:PlayStoreRepository.kt$PlayStoreRepository$throw IllegalStateException("App version code cannot be 0") + UseCheckOrError:PlayStoreRepository.kt$PlayStoreRepository$throw IllegalStateException("Could not get download details for $idOrPackageName") + UseCheckOrError:SearchApiImpl.kt$SearchApiImpl$throw IllegalStateException("Could not get store") + UseCheckOrError:Stores.kt$Stores$throw IllegalStateException("store not found") + WildcardImport:SystemAppsUpdatesRepository.kt$import foundation.e.apps.data.gitlab.UpdatableSystemAppsApi.* diff --git a/build.gradle b/build.gradle index 44178694e038d6dae189aaa6f0f9ad638eab0f9d..38e1beea71bc756a3ecd4f740b9c2d785667454b 100644 --- a/build.gradle +++ b/build.gradle @@ -22,19 +22,17 @@ allprojects { } } -subprojects { - detekt { - source.setFrom("src/main/java", "src/main/kotlin") - config.setFrom("detekt.yml") - baseline = file("detekt-baseline.xml") - parallel = false - buildUponDefaultConfig = true - allRules = false - disableDefaultRuleSets = false - debug = false - ignoreFailures = false - basePath = projectDir - } +detekt { + source.setFrom("app/src/main/java", "app/src/main/kotlin") + config.setFrom("detekt.yml") + baseline = file("app/detekt-baseline.xml") + parallel = false + buildUponDefaultConfig = true + allRules = false + disableDefaultRuleSets = false + debug = false + ignoreFailures = false + basePath = projectDir } tasks.register('clean', Delete) {