Skip to content

Commit 26ff442

Browse files
LarsEckartAmp
andcommitted
Add spotlessApply to test script
Co-authored-by: Amp <amp@sourcegraph.com>
1 parent 05a7a04 commit 26ff442

File tree

3 files changed

+29
-31
lines changed

3 files changed

+29
-31
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,35 @@ This application provides both CLI and web interfaces for interacting with AI mo
77

88
### Project Statistics
99

10-
- **Total Commits**: 62
11-
- **AI-Assisted Commits**: 43 (69.35%)
12-
- **Total Lines Added**: 9181
13-
- **AI-Assisted Lines Added**: 7511 (81.81%)
14-
- **Total Lines Changed**: 13591
15-
- **AI-Assisted Lines Changed**: 11188 (82.32%)
10+
- **Total Commits**: 64
11+
- **AI-Assisted Commits**: 44 (68.75%)
12+
- **Total Lines Added**: 9216
13+
- **AI-Assisted Lines Added**: 7545 (81.87%)
14+
- **Total Lines Changed**: 13659
15+
- **AI-Assisted Lines Changed**: 11254 (82.39%)
1616

1717
### Breakdown by AI Assistant
1818

1919
#### Claude Code
2020

21-
- **Commits**: 34 (54.84%)
21+
- **Commits**: 34 (53.12%)
2222
- **Lines Added**: 6182
2323
- **Lines Deleted**: 2794
24-
- **Lines Changed**: 8976 (66.04%)
24+
- **Lines Changed**: 8976 (65.71%)
2525

2626
#### Amp
2727

28-
- **Commits**: 7 (11.29%)
29-
- **Lines Added**: 1258
30-
- **Lines Deleted**: 809
31-
- **Lines Changed**: 2067 (15.21%)
28+
- **Commits**: 8 (12.50%)
29+
- **Lines Added**: 1292
30+
- **Lines Deleted**: 841
31+
- **Lines Changed**: 2133 (15.62%)
3232

3333
#### GitHub Copilot
3434

35-
- **Commits**: 2 (3.23%)
35+
- **Commits**: 2 (3.12%)
3636
- **Lines Added**: 71
3737
- **Lines Deleted**: 74
38-
- **Lines Changed**: 145 (1.07%)
38+
- **Lines Changed**: 145 (1.06%)
3939

4040

4141
*Statistics are automatically updated on each commit.*

app/src/main/java/com/larseckart/adapters/cli/ConsoleOutputAdapter.java

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,19 @@
44

55
public class ConsoleOutputAdapter implements OutputPort {
66

7-
@Override
8-
public void showWelcomeMessage() {
9-
System.out.println(
10-
"Chat with the Agent (use 'ctrl-c' to quit or press Enter on empty line)"
11-
);
12-
}
7+
@Override
8+
public void showWelcomeMessage() {
9+
System.out.println("Chat with the Agent (use 'ctrl-c' to quit or press Enter on empty line)");
10+
}
1311

14-
@Override
15-
public void promptForUserInput() {
16-
System.out.print("\u001b[94mYou\u001b[0m: ");
17-
}
12+
@Override
13+
public void promptForUserInput() {
14+
System.out.print("\u001b[94mYou\u001b[0m: ");
15+
}
1816

19-
@Override
20-
public void displayAssistantResponse(String response) {
21-
System.out.print("\u001b[95mTheAgent\u001b[0m: ");
22-
System.out.println("\u001b[92m" + response + "\u001b[0m");
23-
}
17+
@Override
18+
public void displayAssistantResponse(String response) {
19+
System.out.print("\u001b[95mTheAgent\u001b[0m: ");
20+
System.out.println("\u001b[92m" + response + "\u001b[0m");
21+
}
2422
}

run_tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ output_file=$(mktemp)
99
# Ensure the temporary file is deleted on script exit or interruption
1010
trap 'rm -f "$output_file"' EXIT INT TERM
1111

12-
# Run Gradle tests with info-level output, redirect all output (stdout and stderr) to the temp file
12+
# Run Gradle spotlessApply and tests with info-level output, redirect all output (stdout and stderr) to the temp file
1313
# The '|| true' ensures this script continues even if tests fail
1414
# --no-build-cache forces tests to run even if results are cached, but allows incremental compilation
15-
./gradlew test --no-build-cache -i >"$output_file" 2>&1 || true
15+
./gradlew spotlessApply test --no-build-cache -i >"$output_file" 2>&1 || true
1616

1717
# Check for compilation errors first
1818
compilation_errors=$(grep -E "error:|[0-9]+ errors?$|Compilation failed" "$output_file" || true)

0 commit comments

Comments
 (0)