1- src/*.cpp
1+ --config=.cpplint src/*
221
3- 3
3+ 4
44Done processing src/sillycode.cpp
5- Total errors found: 18
5+ Done processing src/sillycode.w
6+ Total errors found: 26
67
78src/sillycode.cpp:0: No copyright message found. You should have a line: "Copyright [year] <Copyright Owner>" [legal/copyright] [5]
8- src/sillycode.cpp:3: Found C system header after C++ system header. Should be: sillycode.h, c system, c++ system, other. [build/include_order] [4]
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]
912src/sillycode.cpp:14: Is this a non-const reference? If so, make const or use a pointer: vector<string>& v [runtime/references] [2]
1013src/sillycode.cpp:40: If/else bodies with multiple statements require braces [readability/braces] [4]
1114src/sillycode.cpp:66: Single-parameter constructors should be marked explicit. [runtime/explicit] [4]
1215src/sillycode.cpp:76: Single-parameter constructors should be marked explicit. [runtime/explicit] [4]
1316src/sillycode.cpp:85: Constructors callable with one argument should be marked explicit. [runtime/explicit] [4]
17+ src/sillycode.cpp:86: Lines should be <= 80 characters long [whitespace/line_length] [2]
1418src/sillycode.cpp:118: Is this a non-const reference? If so, make const or use a pointer: N::X& a [runtime/references] [2]
1519src/sillycode.cpp:118: Is this a non-const reference? If so, make const or use a pointer: N::X& b [runtime/references] [2]
1620src/sillycode.cpp:123: Is this a non-const reference? If so, make const or use a pointer: N::X& a [runtime/references] [2]
@@ -21,5 +25,10 @@ src/sillycode.cpp:199: If an else has a brace on one side, it should have it on
2125src/sillycode.cpp:208: Static/global string variables are not permitted. [runtime/string] [4]
2226src/sillycode.cpp:227: Static/global string variables are not permitted. [runtime/string] [4]
2327src/sillycode.cpp:228: Using C-style cast. Use reinterpret_cast<double*>(...) instead [readability/casting] [4]
28+ src/sillycode.cpp:243: Lines should be <= 80 characters long [whitespace/line_length] [2]
2429src/sillycode.cpp:243: Using C-style cast. Use reinterpret_cast<derived2*>(...) instead [readability/casting] [4]
30+ src/sillycode.cpp:244: Lines should be <= 80 characters long [whitespace/line_length] [2]
31+ src/sillycode.cpp:249: Lines should be <= 80 characters long [whitespace/line_length] [2]
32+ src/sillycode.w:0: No copyright message found. You should have a line: "Copyright [year] <Copyright Owner>" [legal/copyright] [5]
33+ src/sillycode.w:0: No #ifndef header guard found, suggested CPP variable is: SAMPLES_SILLY_SAMPLE_SRC_SILLYCODE_W_ [build/header_guard] [5]
2534
0 commit comments