| 1 |
--config=.cpplint src/* |
| 2 |
1 |
| 3 |
4 |
| 4 |
Done processing src/sillycode.cpp |
| 5 |
Done processing src/sillycode.w |
| 6 |
Total errors found: 21 |
| 7 |
|
| 8 |
src/sillycode.cpp:0: No copyright message found. You should have a line: "Copyright [year] <Copyright Owner>" [legal/copyright] [5] |
| 9 |
src/sillycode.cpp:2: <ratio> is an unapproved C++11 header. [build/c++11] [5] |
| 10 |
src/sillycode.cpp:3: Found C system header after other header. Should be: sillycode.h, c system, c++ system, other. [build/include_order] [4] |
| 11 |
src/sillycode.cpp:4: Found C system header after other header. Should be: sillycode.h, c system, c++ system, other. [build/include_order] [4] |
| 12 |
src/sillycode.cpp:40: If/else bodies with multiple statements require braces [readability/braces] [4] |
| 13 |
src/sillycode.cpp:66: Single-parameter constructors should be marked explicit. [runtime/explicit] [4] |
| 14 |
src/sillycode.cpp:76: Single-parameter constructors should be marked explicit. [runtime/explicit] [4] |
| 15 |
src/sillycode.cpp:85: Constructors callable with one argument should be marked explicit. [runtime/explicit] [4] |
| 16 |
src/sillycode.cpp:86: Lines should be <= 80 characters long [whitespace/line_length] [2] |
| 17 |
src/sillycode.cpp:171: Do not use variable-length arrays. Use an appropriately named ('k' followed by CamelCase) compile-time constant for the size. [runtime/arrays] [1] |
| 18 |
src/sillycode.cpp:178: Static/global string variables are not permitted. [runtime/string] [4] |
| 19 |
src/sillycode.cpp:199: If an else has a brace on one side, it should have it on both [readability/braces] [5] |
| 20 |
src/sillycode.cpp:208: Static/global string variables are not permitted. [runtime/string] [4] |
| 21 |
src/sillycode.cpp:227: Static/global string variables are not permitted. [runtime/string] [4] |
| 22 |
src/sillycode.cpp:228: Using C-style cast. Use reinterpret_cast<double*>(...) instead [readability/casting] [4] |
| 23 |
src/sillycode.cpp:243: Lines should be <= 80 characters long [whitespace/line_length] [2] |
| 24 |
src/sillycode.cpp:243: Using C-style cast. Use reinterpret_cast<derived2*>(...) instead [readability/casting] [4] |
| 25 |
src/sillycode.cpp:244: Lines should be <= 80 characters long [whitespace/line_length] [2] |
| 26 |
src/sillycode.cpp:249: Lines should be <= 80 characters long [whitespace/line_length] [2] |
| 27 |
src/sillycode.w:0: No copyright message found. You should have a line: "Copyright [year] <Copyright Owner>" [legal/copyright] [5] |
| 28 |
src/sillycode.w:0: No #ifndef header guard found, suggested CPP variable is: SAMPLES_SILLY_SAMPLE_SRC_SILLYCODE_W_ [build/header_guard] [5] |
| 29 |
|