Skip to content

Commit e37f77d

Browse files
authored
Use project instead of mainProject (#444)
1 parent 03ec05f commit e37f77d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static-analysis/autodispose-lint/src/main/kotlin/autodispose2/lint/AutoDisposeDetector.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class AutoDisposeDetector : Detector(), SourceCodeScanner {
114114

115115
// Add the custom scopes defined in configuration.
116116
val props = Properties()
117-
context.mainProject.propertyFiles.find { it.name == PROPERTY_FILE }?.apply {
117+
context.project.propertyFiles.find { it.name == PROPERTY_FILE }?.apply {
118118
val content = StringReader(context.client.readFile(this).toString())
119119
props.load(content)
120120
props.getProperty(CUSTOM_SCOPE_KEY)?.let { scopeProperty ->

0 commit comments

Comments
 (0)