-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
60 lines (48 loc) · 1.73 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.2.30'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id "io.gitlab.arturbosch.detekt" version "1.0.0.RC7"
}
detekt {
version = "1.0.0.RC7"
defaultProfile {
// Which part of your project should be analyzed?
input = file("app/src/main/java/com/tux/sampelogin/")
// detekt config file
// Use $project.projectDir or to navigate inside your project
config = file("detekt-config.yml")
// What paths to exclude? Use comma or semicolon to separate.
filters = ".*/build/.*, .*/resources/.*, .*/libs/.*"
// Directory where output reports are stored (if present).
output = file("build/reports")
// This parameter is used to derive the output report name
outputName = "deteck-report"
// If present all current findings are saved in a baseline.xml to only consider new code smells for further runs.
//baseline = file("reports/baseline.xml")
// Use this flag if your project has more than ~200 files.
// This will create a parallel stream to parse all kotlin files.
// The analysis is always in parallel.
parallel = true
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}