-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
19 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
/** This is a very ugly test code (doomed to fail linting) */ | ||
Check notice on line 1 in src/demo.cpp GitHub Actions / cpp-linter (16, cpp-linter/cpp-linter, pr-review-suggestions)Run clang-format on src/demo.cpp
|
||
#include "demo.hpp" | ||
#include <cstdio> | ||
#include <cstddef> | ||
#include <stdio.h> | ||
Check warning on line 3 in src/demo.cpp GitHub Actions / cpp-linter (16, cpp-linter/cpp-linter, pr-review-suggestions)src/demo.cpp:3:10 [modernize-deprecated-headers]
|
||
|
||
// using size_t from cstddef | ||
size_t dummyFunc(size_t i) { return i; } | ||
|
||
int main() | ||
{ | ||
for (;;) | ||
break; | ||
|
||
|
||
int main(){ | ||
Check warning on line 8 in src/demo.cpp GitHub Actions / cpp-linter (16, cpp-linter/cpp-linter, pr-review-suggestions)src/demo.cpp:8:5 [modernize-use-trailing-return-type]
|
||
|
||
for (;;) break; | ||
Check warning on line 10 in src/demo.cpp GitHub Actions / cpp-linter (16, cpp-linter/cpp-linter, pr-review-suggestions)src/demo.cpp:10:13 [readability-braces-around-statements]
|
||
|
||
|
||
printf("Hello world!\n"); | ||
Check warning on line 13 in src/demo.cpp GitHub Actions / cpp-linter (16, cpp-linter/cpp-linter, pr-review-suggestions)src/demo.cpp:13:5 [cppcoreguidelines-pro-type-vararg]
|
||
|
||
return 0; | ||
} | ||
|
||
|
||
|
||
return 0;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ab58348
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.
Cpp-Linter Report⚠️
Some files did not pass the configured checks!
clang-format reports: 2 file(s) not formatted
clang-tidy reports: 7 concern(s)
src/demo.cpp
src/demo.cpp:3:10: warning: [modernize-deprecated-headers]
src/demo.cpp
src/demo.cpp:8:5: warning: [modernize-use-trailing-return-type]
src/demo.cpp
src/demo.cpp:10:13: warning: [readability-braces-around-statements]
src/demo.cpp
src/demo.cpp:13:5: warning: [cppcoreguidelines-pro-type-vararg]
src/demo.hpp
src/demo.hpp:6:11: warning: [modernize-use-default-member-init]
src/demo.hpp
src/demo.hpp:7:9: warning: [modernize-use-default-member-init]
src/demo.hpp
src/demo.hpp:11:11: warning: [modernize-use-trailing-return-type]
Have any feedback or feature suggestions? Share it here.