diff --git a/app/build.gradle b/app/build.gradle
index cab949b..fa0e68b 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -132,7 +132,7 @@ apply plugin: "org.jlleitschuh.gradle.ktlint"
tasks.register('detektFormat', Detekt) {
description = "Runs autocorrect enabled detekt build."
source = files("src/main/java")
- config.from(files("$rootDir/Scripts/detekt-config.yml"))
+ baseline = file("detekt-baseline.xml")
autoCorrect = true
reports {
html {
@@ -140,4 +140,4 @@ tasks.register('detektFormat', Detekt) {
destination = file("build/reports/detekt-formatted.html")
}
}
-}
\ No newline at end of file
+}
diff --git a/app/detekt-baseline.xml b/app/detekt-baseline.xml
index 764cf5b..41b5fb8 100644
--- a/app/detekt-baseline.xml
+++ b/app/detekt-baseline.xml
@@ -10,7 +10,6 @@
EmptyFunctionBlock:TafseerDetails.kt$TafseerDetails.<no name provided>${}
EmptyFunctionBlock:TafseerDetails.kt$TafseerDetails.<no name provided>.<no name provided>${}
EmptyFunctionBlock:TestFragment.kt$TestFragment.<no name provided>${}
- FinalNewline:education.mahmoud.quranyapp.feature.showSuraAyas.PageViewHolder.kt:1
ForbiddenComment:ListenFragment.kt$ListenFragment$// TODO: 6/30/2019 bind service with this.
ForbiddenComment:TestFragment.kt$TestFragment$// // TODO: 7/15/2019 make list
FunctionNaming:Splash.kt$Splash$private fun Store(surahs: List<Surah>)
@@ -44,11 +43,6 @@
NestedBlockDepth:ListenFragment.kt$ListenFragment$fun startListening()
NestedBlockDepth:Page.kt$Page$fun getText(): String
NestedBlockDepth:TestFragment.kt$TestFragment$ private fun checkInput()
- NewLineAtEndOfFile:PageViewHolder.kt$education.mahmoud.quranyapp.feature.showSuraAyas.PageViewHolder.kt
- NoBlankLineBeforeRbrace:education.mahmoud.quranyapp.feature.read_log.ReadLogFragment.kt:65
- NoConsecutiveBlankLines:education.mahmoud.quranyapp.feature.setting.SettingActivity.kt:25
- NoConsecutiveBlankLines:education.mahmoud.quranyapp.feature.showSuraAyas.PageAdapter.kt:44
- NoConsecutiveBlankLines:education.mahmoud.quranyapp.utils.Extensions.kt:22
NoWildcardImports:education.mahmoud.quranyapp.datalayer.local.room.BookmarkDAO.kt:3
NoWildcardImports:education.mahmoud.quranyapp.datalayer.local.room.ReadLogDAO.kt:3
NoWildcardImports:education.mahmoud.quranyapp.feature.ayahs_search.SearchResultsAdapter.kt:13
@@ -83,17 +77,8 @@
PackageNaming:TafseerAdapter.kt$package education.mahmoud.quranyapp.feature.show_tafseer
PackageNaming:TafseerDetails.kt$package education.mahmoud.quranyapp.feature.show_tafseer
PackageNaming:TestFragment.kt$package education.mahmoud.quranyapp.feature.test_quran
- ParameterListWrapping:education.mahmoud.quranyapp.feature.home_Activity.HomeActivity.kt:194
- ParameterListWrapping:education.mahmoud.quranyapp.feature.home_Activity.HomeActivity.kt:195
- ParameterListWrapping:education.mahmoud.quranyapp.feature.home_Activity.HomeActivity.kt:196
- ParameterListWrapping:education.mahmoud.quranyapp.utils.Extensions.kt:24
ReturnCount:ListenFragment.kt$ListenFragment$fun startListening()
ReturnCount:TestFragment.kt$TestFragment$ private fun checkInput()
- SpacingAroundColon:education.mahmoud.quranyapp.feature.showSuraAyas.PageViewHolder.kt:10
- SpacingAroundComma:education.mahmoud.quranyapp.feature.showSuraAyas.PageAdapter.kt:22
- SpacingAroundComma:education.mahmoud.quranyapp.feature.showSuraAyas.PageAdapter.kt:23
- SpacingAroundParens:education.mahmoud.quranyapp.feature.read_log.ReadLogFragment.kt:26
- SpacingAroundParens:education.mahmoud.quranyapp.feature.show_sura_list.SuraListFragment.kt:33
SpreadOperator:HomeActivity.kt$HomeActivity$(this, RC_STORAGE, *perms)
SwallowedException:ShowAyahsActivity.kt$ShowAyahsActivity$catch (e: Exception) { model.updateReadLog(it) }
SwallowedException:TafseerDetails.kt$TafseerDetails$catch (e: Exception) { }