Skip to content

Commit 9b473a9

Browse files
committed
llm-code-review-plugin-test - Version 0.1.0-SNAPSHOT
1 parent 8273f9a commit 9b473a9

6 files changed

Lines changed: 144 additions & 19 deletions

File tree

.gitignore

Lines changed: 35 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,40 @@
1-
# Compiled class file
2-
*.class
1+
target/
2+
!.mvn/wrapper/maven-wrapper.jar
3+
!**/src/main/**/target/
4+
!**/src/test/**/target/
35

4-
# Log file
5-
*.log
6+
### IntelliJ IDEA ###
7+
.idea/modules.xml
8+
.idea/jarRepositories.xml
9+
.idea/compiler.xml
10+
.idea/libraries/
11+
*.iws
12+
*.iml
13+
*.ipr
614

7-
# BlueJ files
8-
*.ctxt
15+
### Eclipse ###
16+
.apt_generated
17+
.classpath
18+
.factorypath
19+
.project
20+
.settings
21+
.springBeans
22+
.sts4-cache
923

10-
# Mobile Tools for Java (J2ME)
11-
.mtj.tmp/
24+
### NetBeans ###
25+
/nbproject/private/
26+
/nbbuild/
27+
/dist/
28+
/nbdist/
29+
/.nb-gradle/
30+
build/
31+
!**/src/main/**/build/
32+
!**/src/test/**/build/
1233

13-
# Package Files #
14-
*.jar
15-
*.war
16-
*.nar
17-
*.ear
18-
*.zip
19-
*.tar.gz
20-
*.rar
34+
### VS Code ###
35+
.vscode/
2136

22-
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
23-
hs_err_pid*
24-
replay_pid*
37+
### Mac OS ###
38+
.DS_Store
39+
/.idea/
40+
/.gitignore

.mvn/.gitkeep

Whitespace-only changes.

pom.xml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<groupId>com.quasarbyte.llmcodereview</groupId>
7+
<artifactId>llm-code-review-plugin-test</artifactId>
8+
<version>1.0-SNAPSHOT</version>
9+
10+
<properties>
11+
<maven.compiler.source>8</maven.compiler.source>
12+
<maven.compiler.target>8</maven.compiler.target>
13+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14+
<!-- Default baseUrl value -->
15+
<baseUrl>http://127.0.0.1:1234/v1/</baseUrl>
16+
</properties>
17+
18+
<build>
19+
<plugins>
20+
<plugin>
21+
<groupId>com.quasarbyte.llm.codereview</groupId>
22+
<artifactId>llm-code-review-maven-plugin</artifactId>
23+
<version>0.1.0-SNAPSHOT</version>
24+
<configuration>
25+
<reviewParameter>
26+
<reviewName>Find critical defects in code</reviewName>
27+
<llmChatCompletionConfiguration>
28+
<model>qwen3-8b</model>
29+
</llmChatCompletionConfiguration>
30+
<systemPrompts>
31+
<systemPrompt>You are code review assistant.</systemPrompt>
32+
</systemPrompts>
33+
<reviewPrompts>
34+
<reviewPrompt>Please review all these Java files</reviewPrompt>
35+
<reviewPrompt>Comment style: Human like, friendly, natural, and professional tone; ideal for PRs, reports, and communication.</reviewPrompt>
36+
</reviewPrompts>
37+
<targets>
38+
<target>
39+
<fileGroups>
40+
<fileGroup>
41+
<paths>
42+
<path>src/main/**.java</path>
43+
</paths>
44+
<rules>
45+
<rule>
46+
<code>001</code>
47+
<description>Find possible java.lang.ArrayIndexOutOfBoundsException</description>
48+
<severity>critical</severity>
49+
</rule>
50+
</rules>
51+
</fileGroup>
52+
</fileGroups>
53+
</target>
54+
</targets>
55+
</reviewParameter>
56+
<llmClientConfiguration>
57+
<baseUrl>${baseUrl}</baseUrl>
58+
<apiKey>demo</apiKey>
59+
</llmClientConfiguration>
60+
<buildFailureConfiguration>
61+
<warningThreshold>10</warningThreshold>
62+
<criticalThreshold>1</criticalThreshold>
63+
</buildFailureConfiguration>
64+
</configuration>
65+
<executions>
66+
<execution>
67+
<goals>
68+
<goal>llm-code-review</goal>
69+
</goals>
70+
</execution>
71+
</executions>
72+
</plugin>
73+
</plugins>
74+
</build>
75+
76+
<profiles>
77+
<profile>
78+
<id>ollama</id>
79+
<properties>
80+
<baseUrl>http://127.0.0.1:11434/v1/</baseUrl>
81+
</properties>
82+
</profile>
83+
<profile>
84+
<id>lm-studio</id>
85+
<activation>
86+
<activeByDefault>true</activeByDefault>
87+
</activation>
88+
<properties>
89+
<baseUrl>http://127.0.0.1:1234/v1/</baseUrl>
90+
</properties>
91+
</profile>
92+
<profile>
93+
<id>lm-studio-docker</id>
94+
<properties>
95+
<baseUrl>http://host.docker.internal:1234/v1/</baseUrl>
96+
</properties>
97+
</profile>
98+
</profiles>
99+
</project>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.quasarbyte.llmcodereview;
2+
3+
public class Main {
4+
public static void main(String[] args) {
5+
int[] array = {0, 1, 2, 3, 4};
6+
for (int i = 0; i < 10; i++) {
7+
System.out.println("i = " + array[i]);
8+
}
9+
}
10+
}

src/main/resources/.gitkeep

Whitespace-only changes.

src/test/java/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)