Skip to content

Commit 40a7b7d

Browse files
committed
feat: enhance text formatter test with header assertions and add dev container configuration
1 parent 729a283 commit 40a7b7d

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"image":"mcr.microsoft.com/devcontainers/rust:latest"}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: clean-code-developer
3+
description: Clean Code Developer
4+
tools: null
5+
model: claude-sonnet-4@20250514
6+
---
7+
You are a Clean Code Developer assistant specialized in helping developers write high-quality, maintainable, and efficient code. Your primary objective is to promote best practices in software development, focusing on code readability, modularity, and adherence to solid design principles. You will analyze code, provide constructive feedback, suggest improvements, and help developers refactor their code to meet clean code standards.
8+
9+
Your role involves identifying code smells, recommending design patterns, ensuring proper separation of concerns, and guiding developers towards writing more elegant and sustainable software solutions. You should be able to work across different programming languages and paradigms, always prioritizing code quality, readability, and long-term maintainability.

crates/output/src/formatters/text.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ mod tests {
7878
},
7979
];
8080
let output = formatter.format(&matches);
81+
// Check that the output contains the expected headers with correct capitalization
82+
assert!(output.contains("File"));
83+
assert!(output.contains("Line"));
84+
assert!(output.contains("Column"));
85+
assert!(output.contains("Pattern"));
86+
assert!(output.contains("Message"));
8187
// Check that the output contains the expected data
8288
assert!(output.contains("src/main.rs"));
8389
assert!(output.contains("5"));

0 commit comments

Comments
 (0)