-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
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 (17, cpp-linter/cpp-linter, fix-test-coverage)Run clang-format on src/demo.cpp
|
||
#include "demo.hpp" | ||
Check warning on line 2 in src/demo.cpp GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, fix-test-coverage)src/demo.cpp:2:1 [misc-include-cleaner]
|
||
#include <cstdio> | ||
#include <cstddef> | ||
#include <stdio.h> | ||
Check warning on line 3 in src/demo.cpp GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, fix-test-coverage)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 (17, cpp-linter/cpp-linter, fix-test-coverage)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 (17, cpp-linter/cpp-linter, fix-test-coverage)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 (17, cpp-linter/cpp-linter, fix-test-coverage)src/demo.cpp:13:5 [cppcoreguidelines-pro-type-vararg]
|
||
|
||
return 0; | ||
} | ||
|
||
|
||
|
||
return 0;} |