Repository navigation
test: rc.29 e2e (old: cpp-linter 2.0.0rc27) #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: claude/project-thread-eigt2f
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| static int top_dash() { return 1; } | ||
|
Check warning on line 1 in -top.cpp
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,3 +33,4 @@ int many(int x) { | |
| total += 14; | ||
| return total; | ||
| } | ||
| // touched | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| #include "missing_lib.h" | ||
|
Check failure on line 1 in incdemo/use2.cpp
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| static int use_two() { return lib_value(); } | ||
|
Check warning on line 2 in incdemo/use2.cpp
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
function 'use_two' declared 'static', move to anonymous namespace instead |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| static int fixits(int x, const int const* p) | ||
|
Check warning on line 1 in src/fixits.cpp
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
function 'fixits' declared 'static', move to anonymous namespace instead
parameter name 'x' is too short, expected at least 3 characters
parameter name 'p' is too short, expected at least 3 characters |
||
| { | ||
| if (p == 0) { | ||
| return 0; | ||
| } | ||
| if (x > 1) { | ||
| return 1; | ||
| } | ||
| { | ||
| return 2; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #include <cstdio> | ||
| static int added() | ||
|
Check warning on line 2 in src/no_final_newline.cpp
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
function 'added' declared 'static', move to anonymous namespace instead |
||
| { | ||
| int const x = 1; | ||
|
Check warning on line 4 in src/no_final_newline.cpp
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
variable name 'x' is too short, expected at least 3 characters |
||
| printf("%d", x); | ||
| return x; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,3 +4,4 @@ | |
| int main(){ | ||
| char* p = NULL; | ||
| printf("%d\n",f(3)); return 0;} | ||
| static int edited_latin1() { return 3; } | ||
|
Check warning on line 7 in stress/latin1.cpp
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
function 'edited_latin1' declared 'static', move to anonymous namespace instead |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,3 +3,4 @@ | |
| int main(){ | ||
| char* p = NULL; | ||
| printf("%d\n",f(3)); return 0;} | ||
| static int edited_space() { return 1; } | ||
|
Check warning on line 6 in stress/with space.cpp
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
function 'edited_space' declared 'static', move to anonymous namespace instead |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function 'top_dash' declared 'static', move to anonymous namespace instead