Skip to content
This repository has been archived by the owner on Nov 12, 2020. It is now read-only.

Commit

Permalink
Fix and enable code quality checks
Browse files Browse the repository at this point in the history
  • Loading branch information
alantai-zuhlke committed Sep 7, 2019
1 parent 14cd970 commit 23fc519
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 13 deletions.
9 changes: 3 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,20 +117,17 @@ jobs:
- *decode_gservices_key
- run:
name: Check code quality
command: ./gradlew check
command: ./gradlew check lint checkstyle dependencyCheckAnalyze
- *save_cache
- store_artifacts:
path: app/build/reports/checkstyle
destination: /check/
- store_artifacts:
path: app/build/reports/lint-results.html
destination: /check/
- store_artifacts:
path: app/build/reports/lint-results.xml
destination: /check/
destination: /check/lint-results.html
- store_artifacts:
path: app/build/reports/dependency-check-report.html
destination: /check/
destination: /check/dependency-check-report.html

distribute:
<<: *config
Expand Down
5 changes: 1 addition & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,6 @@ dependencies {
implementation ("androidx.lifecycle:lifecycle-extensions:$lifecycleVersion") {
exclude group : 'com.android.support'
}
annotationProcessor ("androidx.lifecycle:lifecycle-compiler:$lifecycleVersion") {
exclude group : 'com.android.support'
}
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion"

// Android Support libraries
Expand Down Expand Up @@ -267,7 +264,7 @@ configurations.all {
//region Checkstyle configurations

checkstyle {
toolVersion '8.23'
toolVersion '8.24'
configFile rootProject.file('./checkstyle.xml')
ignoreFailures true
showViolations true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ protected ListViewModel getListViewModel() {
break;

case Constants.SEARCH_TYPE_UNDEFINED:
default:
throw new IllegalArgumentException("Unrecognized search type");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import android.widget.TextView;

import androidx.annotation.DrawableRes;
import androidx.annotation.IdRes;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.databinding.BindingAdapter;
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,5 @@
<color name="cardBackground">@color/white</color>
<color name="barBackground">@color/gray_50</color>
<color name="placeholderTextColor">#40000000</color>
<color name="shadowStart">#00121212</color>
<color name="shadowEnd">#ff121212</color>
<color name="menuItemBackground">#60000000</color>
</resources>

0 comments on commit 23fc519

Please sign in to comment.