Skip to content

Commit df4d38e

Browse files
committed
Version 0.2.0-SNAPSHOT
1 parent b4c909d commit df4d38e

File tree

75 files changed

+4096
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+4096
-0
lines changed

docs/comment-styles.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Output Style Guidelines
2+
3+
## FRIENDLY
4+
5+
- **Description**: Human-like, conversational style.
6+
- **Form**: Friendly, natural, and professional.
7+
- **Used In**: GitHub PRs, Markdown reports, and public CLI.
8+
- **Purpose**: Presentation and human interaction.
9+
- **Example**:
10+
> Human like, friendly, natural, and professional tone; ideal for PRs, reports, and communication.
11+
12+
---
13+
14+
## STRUCTURED
15+
16+
- **Description**: Formal, strictly structured, and machine-readable.
17+
- **Form**: Concise, explicit, and well-organized.
18+
- **Used In**: CI pipelines, JSON outputs, and integrations.
19+
- **Purpose**: Parsing by CI, analyzers, dashboards.
20+
- **Example**:
21+
> Strictly structured and concise, for machine consumption and integrations.
22+
23+
---
24+
25+
## COMPACT
26+
27+
- **Description**: Very brief, technical, and to-the-point.
28+
- **Form**: One-line, concise output.
29+
- **Used In**: Terminal, IDE, and log files.
30+
- **Purpose**: Compact display in console or logs.
31+
- **Example**:
32+
> Brief, technical, one-line output for terminals, IDEs, or logs.

pom.xml

Lines changed: 507 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"apiKey": "demo",
3+
"azureServiceVersion": null,
4+
"baseUrl": "http://127.0.0.1:1234/v1/",
5+
"checkJacksonVersionCompatibility": null,
6+
"headersMap": null,
7+
"maxRetries": null,
8+
"organization": null,
9+
"project": null,
10+
"proxy": null,
11+
"queryParamsMap": null,
12+
"responseValidation": null,
13+
"timeoutDuration": null
14+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"reviewName": "Find critical defects in code",
3+
"llmChatCompletionConfiguration": {
4+
"model": "qwen3-8b"
5+
},
6+
"systemPrompts": [
7+
"You are code review assistant."
8+
],
9+
"reviewPrompts": [
10+
"Please review all these Java files",
11+
"Comment style: Human like, friendly, natural, and professional tone; ideal for PRs, reports, and communication."
12+
],
13+
"targets": [
14+
{
15+
"fileGroups": [
16+
{
17+
"paths": [
18+
"src/**.java"
19+
],
20+
"rules": [
21+
{
22+
"code": "001",
23+
"description": "Find possible java.lang.ArrayIndexOutOfBoundsException",
24+
"severity": "critical"
25+
}
26+
]
27+
}
28+
]
29+
}
30+
]
31+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@echo off
2+
setlocal
3+
4+
set "JAVA_HOME=%~dp0jre"
5+
6+
"%JAVA_HOME%\bin\java.exe" ^
7+
-Dlogback.configurationFile="%~dp0logback.xml" ^
8+
--enable-native-access=ALL-UNNAMED ^
9+
-jar "%~dp0llm-code-review-cli-0.2.0-SNAPSHOT.jar" ^
10+
%*
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
call llm-code-review-cli.cmd ^
2+
--review-params-file conf/reviewParameter.json ^
3+
--llm-client-config-file conf/llmClientConfiguration.json ^
4+
--api-key-override demo ^
5+
--base-url-override http://127.0.0.1:1234/v1 ^
6+
--json-report-file-path reports/llm-code-review-report.json ^
7+
--markdown-report-file-path reports/llm-code-review-report.md ^
8+
--html-report-file-path reports/llm-code-review-report.html ^
9+
--csv-report-file-path reports/llm-code-review-report.csv

portable-launcher/logback.xml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<configuration>
3+
<!-- Install JUL to SLF4J bridge on startup -->
4+
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
5+
<resetJUL>true</resetJUL>
6+
</contextListener>
7+
8+
<!-- Console Appender - outputs only WARN and ERROR logs to console -->
9+
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
10+
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
11+
<level>WARN</level>
12+
</filter>
13+
<encoder>
14+
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
15+
</encoder>
16+
</appender>
17+
18+
<!-- Rolling File Appender - outputs DEBUG and above to file -->
19+
<appender name="ROLLING_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
20+
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
21+
<level>DEBUG</level>
22+
</filter>
23+
<file>llm-code-review.log</file>
24+
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
25+
<fileNamePattern>llm-code-review.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
26+
<maxFileSize>10MB</maxFileSize>
27+
<maxHistory>30</maxHistory>
28+
<totalSizeCap>300MB</totalSizeCap>
29+
</rollingPolicy>
30+
<encoder>
31+
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
32+
</encoder>
33+
</appender>
34+
35+
<!-- Logger settings for different packages -->
36+
<!-- Reduce verbosity for external libraries -->
37+
<logger name="com.fasterxml.jackson" level="INFO"/>
38+
39+
<!-- Your packages - more detailed logging -->
40+
<logger name="com.quasarbyte.llm.codereview" level="DEBUG"/>
41+
42+
<!-- Liquibase loggers - log only to file, not console -->
43+
<logger name="liquibase" level="INFO" additivity="false">
44+
<appender-ref ref="ROLLING_FILE"/>
45+
</logger>
46+
47+
<!-- Root logger - set to DEBUG to allow all levels to be processed -->
48+
<root level="DEBUG">
49+
<appender-ref ref="CONSOLE"/>
50+
<appender-ref ref="ROLLING_FILE"/>
51+
</root>
52+
</configuration>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
target/
2+
!.mvn/wrapper/maven-wrapper.jar
3+
!**/src/main/**/target/
4+
!**/src/test/**/target/
5+
6+
### IntelliJ IDEA ###
7+
.idea/modules.xml
8+
.idea/jarRepositories.xml
9+
.idea/compiler.xml
10+
.idea/libraries/
11+
*.iws
12+
*.iml
13+
*.ipr
14+
15+
### Eclipse ###
16+
.apt_generated
17+
.classpath
18+
.factorypath
19+
.project
20+
.settings
21+
.springBeans
22+
.sts4-cache
23+
24+
### NetBeans ###
25+
/nbproject/private/
26+
/nbbuild/
27+
/dist/
28+
/nbdist/
29+
/.nb-gradle/
30+
build/
31+
!**/src/main/**/build/
32+
!**/src/test/**/build/
33+
34+
### VS Code ###
35+
.vscode/
36+
37+
### Mac OS ###
38+
.DS_Store
39+
/.idea/
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.quasarbyte.llm.codereview.sdk.examples;
2+
public class ExampleOne {
3+
public static void main(String[] args) {
4+
// taking array of integers
5+
int a[] = {1, 2, 3, 4, 5};
6+
7+
for (int i = 0; i <= a.length; i++)
8+
System.out.println(a[i]);
9+
}
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.quasarbyte.llm.codereview.sdk.examples.a.aa.aaa;
2+
public class ExampleTwo {
3+
public static void main(String[] args) {
4+
// taking array of integers
5+
int a[] = {1, 2, 3, 4, 5};
6+
7+
for (int i = 0; i <= a.length; i++)
8+
System.out.println(a[i]);
9+
}
10+
}

0 commit comments

Comments
 (0)