Skip to content

Commit

Permalink
Actually use look for rules in the specified folder
Browse files Browse the repository at this point in the history
  • Loading branch information
FloBoJa committed Aug 7, 2024
1 parent 26bc1f6 commit 31544c1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ class ProjectSpecificRulesProxy implements Rule {
val configuredValue = config.getConfig(Rule).getConfig(RULE_ID, RULE_PATH_KEY)
if (configuredValue !== null && !configuredValue.blank) {
return new File(configuredValue)
} else if (config.getOutputFolder() !== null) {
val localURI = CommonPlugin.asLocalURI(config.getOutputFolder())
} else if (config.rulesFolder !== null) {
val localURI = CommonPlugin.asLocalURI(config.rulesFolder)
return new File(localURI.devicePath())
}
throw new IllegalArgumentException("No path for project-specific rules is specified");
Expand Down

0 comments on commit 31544c1

Please sign in to comment.