Skip to content

Commit

Permalink
Fix rules not appearing in the sarif output (#3556)
Browse files Browse the repository at this point in the history
  • Loading branch information
chao2zhang committed Mar 16, 2021
1 parent b5aac52 commit dde5fae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import java.util.Locale
import java.util.ServiceLoader

fun ruleDescriptors(config: Config): HashMap<String, ReportingDescriptor> {
val sets = ServiceLoader.load(RuleSetProvider::class.java)
val sets = ServiceLoader.load(RuleSetProvider::class.java, SarifOutputReport::class.java.classLoader)
.map { it.instance(config.subConfig(it.ruleSetId)) }
val descriptors = HashMap<String, ReportingDescriptor>()
for (ruleSet in sets) {
Expand Down

0 comments on commit dde5fae

Please sign in to comment.