Use positive booleans to improve readability (#190)

This allows us to use lgtm.com to scan for vulnerabilities.
This commit is contained in:
Lai Jiang 2019-07-23 22:30:46 -04:00 committed by GitHub
parent 35f4dfec1f
commit 161dfa6a0c
4 changed files with 6 additions and 6 deletions

View file

@ -13,7 +13,7 @@
// limitations under the License. // limitations under the License.
buildscript { buildscript {
if (project.disableDependencyLocking.toBoolean() == false) { if (rootProject.enableDependencyLocking.toBoolean()) {
// Lock buildscript dependencies. // Lock buildscript dependencies.
configurations.classpath { configurations.classpath {
resolutionStrategy.activateDependencyLocking() resolutionStrategy.activateDependencyLocking()
@ -169,7 +169,7 @@ subprojects {
} }
} }
if (rootProject.disableDependencyLocking.toBoolean() == false) { if (rootProject.enableDependencyLocking.toBoolean()) {
buildscript { buildscript {
// Lock buildscript dependencies. // Lock buildscript dependencies.
configurations.classpath { configurations.classpath {

View file

@ -13,7 +13,7 @@
// limitations under the License. // limitations under the License.
buildscript { buildscript {
if (rootProject.disableDependencyLocking.toBoolean() == false) { if (project.enableDependencyLocking.toBoolean()) {
// Lock buildscript dependencies. // Lock buildscript dependencies.
configurations.classpath { configurations.classpath {
resolutionStrategy.activateDependencyLocking() resolutionStrategy.activateDependencyLocking()
@ -32,7 +32,7 @@ plugins {
id 'com.diffplug.gradle.spotless' version '3.18.0' id 'com.diffplug.gradle.spotless' version '3.18.0'
} }
if (rootProject.disableDependencyLocking.toBoolean() == false) { if (rootProject.enableDependencyLocking.toBoolean()) {
// Lock application dependencies. // Lock application dependencies.
dependencyLocking { dependencyLocking {
lockAllConfigurations() lockAllConfigurations()

View file

@ -1 +1 @@
disableDependencyLocking=false enableDependencyLocking=false

View file

@ -4,4 +4,4 @@ uploaderDestination=
uploaderCredentialsFile= uploaderCredentialsFile=
uploaderMultithreadedUpload= uploaderMultithreadedUpload=
flowDocsFile= flowDocsFile=
disableDependencyLocking=false enableDependencyLocking=true