Skip to content

Commit

Permalink
feat: apply detecktFormat (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
MahmoudMabrok authored Oct 26, 2024
1 parent e4756ab commit da68cde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ 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 {
enabled = true
destination = file("build/reports/detekt-formatted.html")
}
}
}
}
15 changes: 0 additions & 15 deletions app/detekt-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<ID>EmptyFunctionBlock:TafseerDetails.kt$TafseerDetails.&lt;no name provided&gt;${}</ID>
<ID>EmptyFunctionBlock:TafseerDetails.kt$TafseerDetails.&lt;no name provided&gt;.&lt;no name provided&gt;${}</ID>
<ID>EmptyFunctionBlock:TestFragment.kt$TestFragment.&lt;no name provided&gt;${}</ID>
<ID>FinalNewline:education.mahmoud.quranyapp.feature.showSuraAyas.PageViewHolder.kt:1</ID>
<ID>ForbiddenComment:ListenFragment.kt$ListenFragment$// TODO: 6/30/2019 bind service with this.</ID>
<ID>ForbiddenComment:TestFragment.kt$TestFragment$// // TODO: 7/15/2019 make list</ID>
<ID>FunctionNaming:Splash.kt$Splash$private fun Store(surahs: List&lt;Surah&gt;)</ID>
Expand Down Expand Up @@ -44,11 +43,6 @@
<ID>NestedBlockDepth:ListenFragment.kt$ListenFragment$fun startListening()</ID>
<ID>NestedBlockDepth:Page.kt$Page$fun getText(): String</ID>
<ID>NestedBlockDepth:TestFragment.kt$TestFragment$ private fun checkInput()</ID>
<ID>NewLineAtEndOfFile:PageViewHolder.kt$education.mahmoud.quranyapp.feature.showSuraAyas.PageViewHolder.kt</ID>
<ID>NoBlankLineBeforeRbrace:education.mahmoud.quranyapp.feature.read_log.ReadLogFragment.kt:65</ID>
<ID>NoConsecutiveBlankLines:education.mahmoud.quranyapp.feature.setting.SettingActivity.kt:25</ID>
<ID>NoConsecutiveBlankLines:education.mahmoud.quranyapp.feature.showSuraAyas.PageAdapter.kt:44</ID>
<ID>NoConsecutiveBlankLines:education.mahmoud.quranyapp.utils.Extensions.kt:22</ID>
<ID>NoWildcardImports:education.mahmoud.quranyapp.datalayer.local.room.BookmarkDAO.kt:3</ID>
<ID>NoWildcardImports:education.mahmoud.quranyapp.datalayer.local.room.ReadLogDAO.kt:3</ID>
<ID>NoWildcardImports:education.mahmoud.quranyapp.feature.ayahs_search.SearchResultsAdapter.kt:13</ID>
Expand Down Expand Up @@ -83,17 +77,8 @@
<ID>PackageNaming:TafseerAdapter.kt$package education.mahmoud.quranyapp.feature.show_tafseer</ID>
<ID>PackageNaming:TafseerDetails.kt$package education.mahmoud.quranyapp.feature.show_tafseer</ID>
<ID>PackageNaming:TestFragment.kt$package education.mahmoud.quranyapp.feature.test_quran</ID>
<ID>ParameterListWrapping:education.mahmoud.quranyapp.feature.home_Activity.HomeActivity.kt:194</ID>
<ID>ParameterListWrapping:education.mahmoud.quranyapp.feature.home_Activity.HomeActivity.kt:195</ID>
<ID>ParameterListWrapping:education.mahmoud.quranyapp.feature.home_Activity.HomeActivity.kt:196</ID>
<ID>ParameterListWrapping:education.mahmoud.quranyapp.utils.Extensions.kt:24</ID>
<ID>ReturnCount:ListenFragment.kt$ListenFragment$fun startListening()</ID>
<ID>ReturnCount:TestFragment.kt$TestFragment$ private fun checkInput()</ID>
<ID>SpacingAroundColon:education.mahmoud.quranyapp.feature.showSuraAyas.PageViewHolder.kt:10</ID>
<ID>SpacingAroundComma:education.mahmoud.quranyapp.feature.showSuraAyas.PageAdapter.kt:22</ID>
<ID>SpacingAroundComma:education.mahmoud.quranyapp.feature.showSuraAyas.PageAdapter.kt:23</ID>
<ID>SpacingAroundParens:education.mahmoud.quranyapp.feature.read_log.ReadLogFragment.kt:26</ID>
<ID>SpacingAroundParens:education.mahmoud.quranyapp.feature.show_sura_list.SuraListFragment.kt:33</ID>
<ID>SpreadOperator:HomeActivity.kt$HomeActivity$(this, RC_STORAGE, *perms)</ID>
<ID>SwallowedException:ShowAyahsActivity.kt$ShowAyahsActivity$catch (e: Exception) { model.updateReadLog(it) }</ID>
<ID>SwallowedException:TafseerDetails.kt$TafseerDetails$catch (e: Exception) { }</ID>
Expand Down

0 comments on commit da68cde

Please sign in to comment.