PR#121 Fix codeAnalysis issues fix reporting for new module
This commit is contained in:
parent
00e7a806eb
commit
93facd1f1b
8 changed files with 22 additions and 12 deletions
8
.github/workflows/pull-request-jobs.yml
vendored
8
.github/workflows/pull-request-jobs.yml
vendored
|
|
@ -40,7 +40,9 @@ jobs:
|
|||
if: always()
|
||||
with:
|
||||
name: ktLint Results
|
||||
path: ./**/build/reports/ktlint/**/*ktlint*Check.txt
|
||||
path: |
|
||||
./**/build/reports/ktlint/**/*ktlint*Check.txt
|
||||
./**/**/build/reports/ktlint/**/*ktlint*Check.txt
|
||||
retention-days: 1
|
||||
- name: Run Lint
|
||||
run: ./gradlew lint
|
||||
|
|
@ -49,7 +51,9 @@ jobs:
|
|||
if: always()
|
||||
with:
|
||||
name: Lint Results
|
||||
path: ./**/build/reports/*lint-results*.html
|
||||
path: |
|
||||
./**/build/reports/*lint-results*.html
|
||||
./**/**/build/reports/*lint-results*.html
|
||||
retention-days: 1
|
||||
|
||||
run-tests:
|
||||
|
|
|
|||
|
|
@ -14,4 +14,4 @@ class DetailFragment : Fragment(R.layout.fragment_detail) {
|
|||
super.onViewCreated(view, savedInstanceState)
|
||||
(view as TextView).text = getString(R.string.home_item, args.position)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,4 +41,4 @@ class HomeFragment : Fragment(R.layout.fragment_home) {
|
|||
holder.itemView.setOnClickListener { onClick(position) }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,4 +12,4 @@ class NavControllerActivity : AppCompatActivity() {
|
|||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.activity_nav_controller)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -111,4 +111,4 @@ class HomeNavigationTest {
|
|||
onFragment { action() }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,8 +4,14 @@ detekt {
|
|||
|
||||
def projectPaths = subprojects.collect {
|
||||
def projectName = it.name
|
||||
"$projectDir/$projectName/src/main/java"
|
||||
}
|
||||
if (it.subprojects.isEmpty()) {
|
||||
"$projectDir/$projectName/src/main/java"
|
||||
} else {
|
||||
it.subprojects.collect { sub ->
|
||||
"$sub.projectDir//src/main/java"
|
||||
}
|
||||
}
|
||||
}.flatten()
|
||||
|
||||
source = files(*projectPaths)
|
||||
config = files("$projectDir/detekt/detekt.yml")
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ subprojects { module ->
|
|||
warningsAsErrors true
|
||||
abortOnError true
|
||||
textReport true
|
||||
ignore 'Overdraw'
|
||||
ignore 'Overdraw', 'NewerVersionAvailable', 'GradleDependency'
|
||||
textOutput "stdout"
|
||||
}
|
||||
}
|
||||
|
|
@ -17,7 +17,7 @@ subprojects { module ->
|
|||
warningsAsErrors true
|
||||
abortOnError true
|
||||
textReport true
|
||||
ignore 'Overdraw'
|
||||
ignore 'Overdraw', 'NewerVersionAvailable', 'GradleDependency'
|
||||
textOutput "stdout"
|
||||
}
|
||||
}
|
||||
|
|
@ -27,7 +27,7 @@ subprojects { module ->
|
|||
warningsAsErrors true
|
||||
abortOnError true
|
||||
textReport true
|
||||
ignore 'Overdraw'
|
||||
ignore 'Overdraw', 'NewerVersionAvailable', 'GradleDependency'
|
||||
textOutput "stdout"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ project.ext {
|
|||
androidx_constraintlayout_version = "2.1.3"
|
||||
androidx_livedata_version = "2.4.0"
|
||||
androidx_swiperefreshlayout_version = "1.1.0"
|
||||
room_version = "2.4.2"
|
||||
room_version = "2.4.3"
|
||||
activity_ktx_version = "1.4.0"
|
||||
androidx_navigation = "2.4.0"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue