Repository navigation
test: rc.27 e2e (new action) - #84
shenxianpeng wants to merge 2 commits into
Conversation
|
| Tool | Result |
|---|---|
| all files formatted | |
| 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
There was a problem hiding this comment.
cpp-linter review
7 comments (clang-format 21.1.8, clang-tidy 21.1.8)
Powered by cpp-linter | Feedback
| @@ -0,0 +1 @@ | |||
| static auto top_dash() -> int { return 1; } | |||
There was a problem hiding this comment.
Warning: misc-use-anonymous-namespace
function 'top_dash' declared 'static', move to anonymous namespace instead
| @@ -0,0 +1,9 @@ | |||
| static auto fixits(int x, const int *p) -> int { | |||
There was a problem hiding this comment.
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
| @@ -0,0 +1,6 @@ | |||
| #include <cstdio> | |||
| static auto added() -> int { | |||
There was a problem hiding this comment.
Warning: misc-use-anonymous-namespace
function 'added' declared 'static', move to anonymous namespace instead
| @@ -0,0 +1,6 @@ | |||
| #include <cstdio> | |||
| static auto added() -> int { | |||
| int const x = 1; | |||
There was a problem hiding this comment.
Warning: readability-identifier-length
variable name 'x' is too short, expected at least 3 characters
| #include <cstdio> | ||
| static auto added() -> int { | ||
| int const x = 1; | ||
| printf("%d", x); |
There was a problem hiding this comment.
Warning: cppcoreguidelines-pro-type-vararg
do not call c-style vararg functions
| int main(){ | ||
| char* p = NULL; | ||
| printf("%d\n",f(3)); return 0;} | ||
| static auto edited_latin1() -> int { return 3; } |
There was a problem hiding this comment.
Warning: misc-use-anonymous-namespace
function 'edited_latin1' declared 'static', move to anonymous namespace instead
| int main(){ | ||
| char* p = NULL; | ||
| printf("%d\n",f(3)); return 0;} | ||
| static auto edited_space() -> int { return 1; } |
There was a problem hiding this comment.
Warning: misc-use-anonymous-namespace
function 'edited_space' declared 'static', move to anonymous namespace instead
Temporary e2e PR for cpp-linter-rs rc.27 (new action ref). Close after the test.
Generated by Claude Code