Skip to content

Commit

Permalink
Tweak linting setting in build.gradle to be closer to original
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuester committed Mar 13, 2024
1 parent 46fd0bc commit 6fc97af
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,28 @@ android {
}
}

buildFeatures {
buildConfig true
}

lint {
lintConfig = new File('config/lint.xml')

disable 'UnusedResources' // linter can't handle static imports, so just skip this test
disable 'MissingTranslation'
disable 'StringFormatCount'

warningsAsErrors true

xmlReport false

if (System.env.CI == 'true') {
abortOnError true
htmlReport false
textReport true
textOutput 'stdout'
}
}

testOptions {
unitTests {
Expand All @@ -177,6 +199,7 @@ android {

flavorDimensions 'brand'

namespace 'org.medicmobile.webapp.mobile'
productFlavors {
unbranded {
// we will not create project-specific src directories
Expand Down Expand Up @@ -407,15 +430,6 @@ android {
universalApk false
}
}
namespace 'org.medicmobile.webapp.mobile'
lint {
disable 'UnusedResources', 'MissingTranslation', 'StringFormatCount'
warningsAsErrors true
xmlReport false
}
buildFeatures {
buildConfig true
}
}

dependencies {
Expand Down

0 comments on commit 6fc97af

Please sign in to comment.