-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
105 lines (101 loc) · 4.67 KB
/
pom.xml
File metadata and controls
105 lines (101 loc) · 4.67 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.quasarbyte.llmcodereview</groupId>
<artifactId>llm-code-review-plugin-test</artifactId>
<version>0.2.1-SNAPSHOT</version>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Default baseUrl value -->
<baseUrl>http://127.0.0.1:1234/v1/</baseUrl>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.quasarbyte.llm.codereview</groupId>
<artifactId>llm-code-review-maven-plugin</artifactId>
<version>0.2.0-SNAPSHOT</version>
<configuration>
<reviewParameter>
<reviewName>Find critical defects in code</reviewName>
<llmChatCompletionConfiguration>
<model>qwen3-8b</model>
</llmChatCompletionConfiguration>
<systemPrompts>
<systemPrompt>You are code review assistant.</systemPrompt>
</systemPrompts>
<reviewPrompts>
<reviewPrompt>Please review all these Java files</reviewPrompt>
<reviewPrompt>Comment style: Human like, friendly, natural, and professional tone; ideal for PRs, reports, and communication.</reviewPrompt>
</reviewPrompts>
<targets>
<target>
<fileGroups>
<fileGroup>
<paths>
<path>src/main/**.java</path>
</paths>
<rules>
<rule>
<code>001</code>
<description>Find possible java.lang.ArrayIndexOutOfBoundsException</description>
<severity>critical</severity>
</rule>
</rules>
</fileGroup>
</fileGroups>
</target>
</targets>
</reviewParameter>
<llmClientConfiguration>
<baseUrl>${baseUrl}</baseUrl>
<apiKey>demo</apiKey>
</llmClientConfiguration>
<buildFailureConfiguration>
<warningThreshold>10</warningThreshold>
<criticalThreshold>1</criticalThreshold>
</buildFailureConfiguration>
<reportsConfiguration>
<jsonReportFilePath>target/llm-code-review-report/report.json</jsonReportFilePath>
<markdownReportFilePath>target/llm-code-review-report/report.md</markdownReportFilePath>
<htmlReportFilePath>target/llm-code-review-report/report.html</htmlReportFilePath>
<csvReportFilePath>target/llm-code-review-report/report.csv</csvReportFilePath>
</reportsConfiguration>
</configuration>
<executions>
<execution>
<goals>
<goal>llm-code-review</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>ollama</id>
<properties>
<baseUrl>http://127.0.0.1:11434/v1/</baseUrl>
</properties>
</profile>
<profile>
<id>lm-studio</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<baseUrl>http://127.0.0.1:1234/v1/</baseUrl>
</properties>
</profile>
<profile>
<id>lm-studio-docker</id>
<properties>
<baseUrl>http://host.docker.internal:1234/v1/</baseUrl>
</properties>
</profile>
</profiles>
</project>