Update samples with the latest changes. #123
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#Mon Mar 12 18:00:46 GMT 2018 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
autoCorrect: true | ||
failFast: false | ||
|
||
test-pattern: | ||
active: true | ||
|
@@ -19,16 +18,6 @@ test-pattern: | |
- 'SpreadOperator' | ||
- 'TooManyFunctions' | ||
|
||
build: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is wrong and already something we mention in the advanced docs |
||
warningThreshold: 5 | ||
failThreshold: 500 | ||
maxIssues: 500 | ||
weights: | ||
complexity: 2 | ||
LongParameterList: 1 | ||
style: 1 | ||
comments: 1 | ||
|
||
processors: | ||
active: true | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,4 @@ | |
</Or> | ||
</Match> | ||
|
||
<Match> | ||
<Source name="~.*\.kt" /> | ||
</Match> | ||
|
||
</FindBugsFilter> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
apply plugin: com.novoda.staticanalysis.StaticAnalysisPlugin | ||
apply plugin: 'io.gitlab.arturbosch.detekt' | ||
apply plugin: "org.jlleitschuh.gradle.ktlint" | ||
|
||
staticAnalysis { | ||
|
||
|
@@ -8,7 +9,6 @@ staticAnalysis { | |
checkstyle { | ||
toolVersion '8.8' | ||
exclude project.fileTree('src/test/java') | ||
exclude '**/*.kt' | ||
configFile rootProject.file('team-props/checkstyle-modules.xml') | ||
includeVariants { variant -> variant.name.contains('debug') } | ||
} | ||
|
@@ -41,4 +41,8 @@ staticAnalysis { | |
output = project.file("build/reports/detekt") | ||
} | ||
} | ||
|
||
ktlint { | ||
includeVariants { variant -> variant.name.contains('debug') } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How come? I understand this may be ok to speed up sample builds but I fear people will just copy-paste this into their own projects and end up not having coverage for release sourcesets There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Haha 🙂 just copy pasted from above. I do believe that people copy paste these. But keep in mind that this is the variant. So debug and main source folders are checked. I would say let's merge this and create a new issue overall to discuss what is the best practice here and update all of them. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah but that means |
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
plugins { | ||
id 'io.gitlab.arturbosch.detekt' version '1.0.0.RC6-3' | ||
id 'io.gitlab.arturbosch.detekt' version '1.0.0.RC8' | ||
id "org.jlleitschuh.gradle.ktlint" version "5.0.0" | ||
} | ||
|
||
apply plugin: 'com.android.application' | ||
|
@@ -9,7 +10,6 @@ apply plugin: com.novoda.staticanalysis.StaticAnalysisPlugin | |
|
||
android { | ||
compileSdkVersion 27 | ||
buildToolsVersion '27.0.3' | ||
|
||
defaultConfig { | ||
applicationId 'com.novoda.staticanalysis.sample' | ||
|
@@ -30,7 +30,7 @@ android { | |
} | ||
|
||
dependencies { | ||
implementation 'com.android.support:appcompat-v7:27.1.0' | ||
implementation 'com.android.support:appcompat-v7:27.1.1' | ||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | ||
testImplementation 'junit:junit:4.12' | ||
} | ||
|
@@ -42,7 +42,6 @@ staticAnalysis { | |
checkstyle { | ||
toolVersion '8.8' | ||
exclude project.fileTree('src/test/java') | ||
exclude '**/*.kt' | ||
configFile rootProject.file('team-props/checkstyle-modules.xml') | ||
includeVariants { variant -> variant.name.contains('debug') } | ||
} | ||
|
@@ -76,4 +75,8 @@ staticAnalysis { | |
} | ||
} | ||
|
||
ktlint { | ||
android true | ||
includeVariants { variant -> variant.name.contains('debug') } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto here |
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#Mon Mar 12 18:00:46 GMT 2018 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,4 @@ | |
</Or> | ||
</Match> | ||
|
||
<Match> | ||
<Source name="~.*\.kt" /> | ||
</Match> | ||
|
||
</FindBugsFilter> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯