1
0
Fork 0
* #3880. Update detekt to 1.9.1

* #3880. Use `AbsentOrWrongFileLicense` detekt rule

* #3880. Update detekt baseline

Co-authored-by: Denys M <dector9@gmail.com>
master
liuche 2020-07-20 15:09:58 -07:00 committed by GitHub
parent cd2532349d
commit 09d0688e64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 60 additions and 9 deletions

View File

@ -72,7 +72,7 @@ buildscript {
}
plugins {
id("io.gitlab.arturbosch.detekt").version("1.6.0")
id("io.gitlab.arturbosch.detekt").version("1.9.1")
}
allprojects {
@ -133,8 +133,7 @@ allprojects {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.allWarningsAsErrors = true
kotlinOptions.freeCompilerArgs += [
"-Xuse-experimental=kotlin.Experimental",
"-Xskip-runtime-version-check"
"-Xuse-experimental=kotlin.Experimental"
]
}
}
@ -145,9 +144,10 @@ task clean(type: Delete) {
detekt {
// The version number is duplicated, please refer to plugins block for more details
version = "1.6.0"
version = "1.9.1"
input = files("$projectDir/app/src")
config = files("$projectDir/config/detekt.yml")
baseline = file("$projectDir/config/detekt-baseline.xml")
reports {
html {

View File

@ -11,7 +11,7 @@ object Versions {
const val leanplum = "5.4.0"
const val osslicenses_plugin = "0.9.5"
const val osslicenses_library = "17.0.0"
const val detekt = "1.6.0"
const val detekt = "1.9.1"
const val androidx_appcompat = "1.2.0-rc01"
const val androidx_biometric = "1.1.0-alpha01"

File diff suppressed because one or more lines are too long

View File

@ -23,10 +23,6 @@ console-reports:
# - 'NotificationReport'
# - 'FindingsReport'
# - 'BuildFailureReport'
console-reports:
active: true
exclude:
# - 'HtmlOutputReport'
- 'PlainOutputReport'
- 'XmlOutputReport'
@ -34,6 +30,8 @@ console-reports:
comments:
active: true
excludes: "**/*Test.kt, **/*Spec.kt, **/test/**, **/androidTest/**"
AbsentOrWrongFileLicense:
active: true
CommentOverPrivateFunction:
active: false
CommentOverPrivateProperty:

View File

@ -0,0 +1,3 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */