Skip to content

test: e2e cpp-linter-action v3.0.0-rc0 with cpp-linter rc.25 - #69

Open
shenxianpeng wants to merge 2 commits into
masterfrom
claude/project-thread-1yllzi
Open

shenxianpeng wants to merge 2 commits into
masterfrom
claude/project-thread-1yllzi

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Temporary test PR, do not merge. Runs cpp-linter-action v3.0.0-rc0 (34d5522, cpp-linter py rc24 = rc.25) end to end: PR review (and the tidy-review alias), thread comment, step summary, summary output file, auto-fix, empty path inputs, and Linux/macOS/Windows vs v2. Results go to cpp-linter/cpp-linter-action#283.

@shenxianpeng shenxianpeng self-assigned this Nov 5, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cpp-linter Review

Used clang-format v21.1.8

Used clang-tidy v21.1.8


✨ Powered by cpp-linter -- ⭐ Star • ❤️ Sponsor • 💬 Feedback

Comment thread src/demo.cpp
return 0;
}

int addedForV3Test(int x){return x*2;}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

clang-tidy diagnostic(s)

Suggested change
int addedForV3Test(int x){return x*2;}
static auto addedForV3Test(int x) -> int { return x * 2; }

clang-tidy diagnostic

src/demo.cpp:19:25 warning: [readability-identifier-length]

parameter name 'x' is too short, expected at least 3 characters

   19 | int  addedForV3Test(int x){return x*2;}
      |                         ^

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

Cpp-Linter Report ⚠️

Some files did not pass the configured checks!

clang-format (v21.1.8) reports: 1 file(s) not formatted
  • src/demo.cpp (1 line)
clang-tidy (v21.1.8) reports: 3 concern(s)
  • src/demo.cpp

    src/demo.cpp:19:6: warning: [misc-use-internal-linkage]
    ⚡ auto-fix included in generated patch1

    function 'addedForV3Test' can be made static or moved into an anonymous namespace to enforce internal linkage

       19 | int  addedForV3Test(int x){return x*2;}
          |      ^
          | static 
  • src/demo.cpp

    src/demo.cpp:19:6: warning: [modernize-use-trailing-return-type]
    ⚡ auto-fix included in generated patch1

    use a trailing return type for this function

       19 | int  addedForV3Test(int x){return x*2;}
          | ~~~  ^                    
          | auto                       -> int
  • src/demo.cpp

    src/demo.cpp:19:25: warning: [readability-identifier-length]

    parameter name 'x' is too short, expected at least 3 characters

       19 | int  addedForV3Test(int x){return x*2;}
          |                         ^

✨ Powered by cpp-linter -- ⭐ Star • ❤️ Sponsor • 💬 Feedback

Footnotes

  1. Cpp-linter generates a patch with fixes from both clang-tidy and clang-format. In the CI workflow, the patch can be found using cpp-linter's output fix-patch-path. ↩ ↩2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant