Skip to content

Commit 1e6ede5

Browse files
committed
fix comments (per AI advice)
1 parent 172373c commit 1e6ede5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cpp-linter/src/common_fs/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ impl FileObj {
122122
/// Similar to [`FileObj::is_hunk_in_diff()`] but looks for a single line instead of
123123
/// an entire [`DiffHunk`].
124124
///
125-
/// This is a private function it is because only used in
125+
/// This is a private function because it is only used in
126126
/// [`FileObj::make_suggestions_from_patch()`].
127127
fn is_line_in_diff(&self, line: &u32) -> bool {
128128
for range in &self.diff_chunks {

cpp-linter/src/run.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ mod test {
222222
assert!(result.is_err());
223223
}
224224

225-
// just for completion. this test is not practical use case
225+
// Verifies that the system gracefully handles cases where all analysis is disabled.
226+
// This ensures no diagnostic comments are generated when analysis is explicitly skipped.
226227
#[tokio::test]
227228
async fn no_analysis() {
228229
env::remove_var("GITHUB_OUTPUT"); // avoid writing to GH_OUT in parallel-running tests

0 commit comments

Comments
 (0)