-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathLLMProvider.java
More file actions
27 lines (24 loc) · 843 Bytes
/
LLMProvider.java
File metadata and controls
27 lines (24 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package io.codemodder.plugins.llm;
import com.google.inject.AbstractModule;
import io.codemodder.CodeChanger;
import io.codemodder.CodemodProvider;
import io.codemodder.RuleSarif;
import java.nio.file.Path;
import java.util.List;
import java.util.Set;
/** Provides LLM-related functionality to codemods. */
public final class LLMProvider implements CodemodProvider {
@Override
public Set<AbstractModule> getModules(
final Path repository,
final List<Path> includedFiles,
final List<String> includePaths,
final List<String> excludePaths,
final List<Class<? extends CodeChanger>> codemodTypes,
final List<RuleSarif> sarifs,
final List<Path> sonarJsonPaths,
final Path defectDojoFindingsJsonFile,
final Path contrastFindingsJsonPath) {
return Set.of(new LLMServiceModule());
}
}