Skip to content

fix: label review suggestions that only clang-format changes as clang-format - #588

Merged
2bndy5 merged 1 commit into
mainfrom
claude/project-thread-kbgobw-label
Nov 17, 2026
Merged

2bndy5 merged 1 commit into
mainfrom
claude/project-thread-kbgobw-label

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Found while testing v2.0.0-rc.26 with cpp-linter-action v3 on a real PR (cpp-linter/test-cpp-linter-action#80).

A PR review suggestion comes from the combined clang-format + clang-tidy patch. When no clang-tidy note fixes a line of the hunk, the change is clang-format's, but the comment is headed ### clang-tidy suggestion. On that PR, re-indenting a comment line in cap/many.cpp (pure clang-format) was posted as:

### clang-tidy suggestion

```suggestion
// touched
```

When clang-tidy didn't run on the file at all (tidy_advice is None), the same kind of suggestion had no heading.

Changes

  • TidyAdvice::get_suggestion_help() returns ### clang-format suggestion when no note in the hunk has a fix (instead of ### clang-tidy suggestion).
  • FileObj::get_suggestions() uses the same heading when the file has no clang-tidy advice, instead of none.
  • Hunks with clang-tidy fixes keep ### clang-tidy diagnostic(s) and the list of notes (unchanged).

Tests

  • suggestion_help_with_and_without_fixes now checks the exact heading for a hunk without clang-tidy fixes.
  • cargo nextest run -p cpp-linter --features bin: 186 passed, 4 skipped. cargo clippy -p cpp-linter --features bin --all-targets -- -D warnings, cargo fmt --check and cspell are clean.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 44 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a8d45f2e-45aa-4a80-97eb-88980b5ded46
Commits

Reviewing files that changed from the base of the PR and between 4ec7603 and 1efa110.

Files selected for processing: 3

  • cpp-linter/src/clang_tools/clang_tidy/mod.rs
  • cpp-linter/src/clang_tools/clang_tidy/test.rs
  • cpp-linter/src/common_fs.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@shenxianpeng shenxianpeng added the bug Something isn't working label Nov 17, 2026 — with Claude
@shenxianpeng shenxianpeng self-assigned this Nov 17, 2026
@shenxianpeng
shenxianpeng requested a review from 2bndy5 November 17, 2026 07:13
@codecov

codecov Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.63%. Comparing base (4ec7603) to head (1efa110).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #588   +/-   ##
=======================================
  Coverage   99.63%   99.63%           
=======================================
  Files          29       29           
  Lines        8329     8329           
=======================================
  Hits         8299     8299           
  Misses         30       30           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@2bndy5 2bndy5 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uncaught since unifying clang tools' output.

@2bndy5
2bndy5 merged commit 5a8a752 into main Nov 17, 2026
77 checks passed
@2bndy5
2bndy5 deleted the claude/project-thread-kbgobw-label branch November 17, 2026 08:14
@shenxianpeng shenxianpeng mentioned this pull request Nov 18, 2026
3 of 9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants