Skip to content

test: rc.27 e2e (new action) - #84

Open
shenxianpeng wants to merge 2 commits into
claude/project-thread-u751ea-rc27from
e2e/rc27-new-44998611247
Open

shenxianpeng wants to merge 2 commits into
claude/project-thread-u751ea-rc27from
e2e/rc27-new-44998611247

Conversation

@shenxianpeng

Copy link
Copy Markdown
Member

Temporary e2e PR for cpp-linter-rs rc.27 (new action ref). Close after the test.


Generated by Claude Code

github-actions[bot]

This comment was marked as outdated.

@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

⚠ cpp-linter found 9 issues in 5 files

Tool Result
✔ clang-format 21.1.8 all files formatted
⚠ clang-tidy 21.1.8 9 warnings
clang-tidy: 9 warnings

-top.cpp

Line Finding
1 function 'top_dash' declared 'static', move to anonymous namespace instead
misc-use-anonymous-namespace

src/fixits.cpp

Line Finding
1 function 'fixits' declared 'static', move to anonymous namespace instead
misc-use-anonymous-namespace
1 parameter name 'x' is too short, expected at least 3 characters
readability-identifier-length
1 parameter name 'p' is too short, expected at least 3 characters
readability-identifier-length

src/no_final_newline.cpp

Line Finding
2 function 'added' declared 'static', move to anonymous namespace instead
misc-use-anonymous-namespace
3 variable name 'x' is too short, expected at least 3 characters
readability-identifier-length
4 do not call c-style vararg functions
cppcoreguidelines-pro-type-vararg

stress/latin1.cpp

Line Finding
7 function 'edited_latin1' declared 'static', move to anonymous namespace instead
misc-use-anonymous-namespace

stress/with space.cpp

Line Finding
6 function 'edited_space' declared 'static', move to anonymous namespace instead
misc-use-anonymous-namespace
How to fix

For the clang-tidy findings, give this to your coding agent:

Fix these clang-tidy findings:
- -top.cpp:1:13: warning: function 'top_dash' declared 'static', move to anonymous namespace instead [misc-use-anonymous-namespace]
- src/fixits.cpp:1:13: warning: function 'fixits' declared 'static', move to anonymous namespace instead [misc-use-anonymous-namespace]
- src/fixits.cpp:1:24: warning: parameter name 'x' is too short, expected at least 3 characters [readability-identifier-length]
- src/fixits.cpp:1:38: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
- src/no_final_newline.cpp:2:13: warning: function 'added' declared 'static', move to anonymous namespace instead [misc-use-anonymous-namespace]
- src/no_final_newline.cpp:3:13: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
- src/no_final_newline.cpp:4:3: warning: do not call c-style vararg functions [cppcoreguidelines-pro-type-vararg]
- stress/latin1.cpp:7:13: warning: function 'edited_latin1' declared 'static', move to anonymous namespace instead [misc-use-anonymous-namespace]
- stress/with space.cpp:6:13: warning: function 'edited_space' declared 'static', move to anonymous namespace instead [misc-use-anonymous-namespace]

Powered by cpp-linter | Feedback

@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

7 comments (clang-format 21.1.8, clang-tidy 21.1.8)

Powered by cpp-linter | Feedback

Comment thread -top.cpp
@@ -0,0 +1 @@
static auto top_dash() -> int { return 1; }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠ Warning: misc-use-anonymous-namespace

function 'top_dash' declared 'static', move to anonymous namespace instead

Comment thread src/fixits.cpp
@@ -0,0 +1,9 @@
static auto fixits(int x, const int *p) -> int {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠ Warning: misc-use-anonymous-namespace

function 'fixits' declared 'static', move to anonymous namespace instead

⚠ Warning: readability-identifier-length

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

⚠ Warning: readability-identifier-length

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

Comment thread src/no_final_newline.cpp
@@ -0,0 +1,6 @@
#include <cstdio>
static auto added() -> int {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠ Warning: misc-use-anonymous-namespace

function 'added' declared 'static', move to anonymous namespace instead

Comment thread src/no_final_newline.cpp
@@ -0,0 +1,6 @@
#include <cstdio>
static auto added() -> int {
int const x = 1;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠ Warning: readability-identifier-length

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

Comment thread src/no_final_newline.cpp
#include <cstdio>
static auto added() -> int {
int const x = 1;
printf("%d", x);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠ Warning: cppcoreguidelines-pro-type-vararg

do not call c-style vararg functions

Comment thread stress/latin1.cpp
int main(){
char* p = NULL;
printf("%d\n",f(3)); return 0;}
static auto edited_latin1() -> int { return 3; }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠ Warning: misc-use-anonymous-namespace

function 'edited_latin1' declared 'static', move to anonymous namespace instead

Comment thread stress/with space.cpp
int main(){
char* p = NULL;
printf("%d\n",f(3)); return 0;}
static auto edited_space() -> int { return 1; }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠ Warning: misc-use-anonymous-namespace

function 'edited_space' declared 'static', move to anonymous namespace instead

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