-
Notifications
You must be signed in to change notification settings - Fork 316
Expand file tree
/
Copy pathjunit.def
More file actions
127 lines (126 loc) · 9.85 KB
/
Copy pathjunit.def
File metadata and controls
127 lines (126 loc) · 9.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
--output=junit src/*
1
1
<?xml version="1.0" encoding="UTF-8" ?>
<testsuite errors="0" failures="123" name="cpplint" tests="123"><testcase name="src/sillycode.cpp"><failure>0: No copyright message found. You should have a line: "Copyright [year] <Copyright Owner>" [legal/copyright] [5]
1: Include the directory when naming header files [build/include_subdir] [4]
3: At least two spaces is best between code and comments [whitespace/comments] [2]
3: Should have a space between // and comment [whitespace/comments] [4]
3: <ratio> is an unapproved C++11 header. [build/c++11] [5]
4: Found C system header after other header. Should be: sillycode.h, c system, c++ system, other. [build/include_order] [4]
5: Found C system header after other header. Should be: sillycode.h, c system, c++ system, other. [build/include_order] [4]
6: Do not use namespace using-directives. Use using-declarations instead. [build/namespaces/source/namespace/nonliterals] [5]
9: public: should be indented +1 space inside class Date [whitespace/indent] [3]
16: { should almost always be at the end of the previous line [whitespace/braces] [4]
40: { should almost always be at the end of the previous line [whitespace/braces] [4]
41: Tab found; better to use spaces [whitespace/tab] [1]
41: If/else bodies with multiple statements require braces [readability/braces] [4]
50: Almost always, snprintf is better than strcpy [runtime/printf] [4]
56: { should almost always be at the end of the previous line [whitespace/braces] [4]
61: Tab found; better to use spaces [whitespace/tab] [1]
61: At least two spaces is best between code and comments [whitespace/comments] [2]
65: public: should be indented +1 space inside class X [whitespace/indent] [3]
66: Tab found; better to use spaces [whitespace/tab] [1]
66: At least two spaces is best between code and comments [whitespace/comments] [2]
67: Tab found; better to use spaces [whitespace/tab] [1]
67: Single-parameter constructors should be marked explicit. [runtime/explicit] [4]
75: public: should be indented +1 space inside class X2 [whitespace/indent] [3]
76: Tab found; better to use spaces [whitespace/tab] [1]
77: Tab found; better to use spaces [whitespace/tab] [1]
77: Single-parameter constructors should be marked explicit. [runtime/explicit] [4]
81: Tab found; better to use spaces [whitespace/tab] [1]
81: At least two spaces is best between code and comments [whitespace/comments] [2]
85: public: should be indented +1 space inside class X3 [whitespace/indent] [3]
86: Constructors callable with one argument should be marked explicit. [runtime/explicit] [4]
87: Tab found; better to use spaces [whitespace/tab] [1]
95: public: should be indented +1 space inside class Foo [whitespace/indent] [3]
102: { should almost always be at the end of the previous line [whitespace/braces] [4]
112: Tab found; better to use spaces [whitespace/tab] [1]
113: Tab found; better to use spaces [whitespace/tab] [1]
113: At least two spaces is best between code and comments [whitespace/comments] [2]
115: public: should be indented +1 space inside class Vector2 [whitespace/indent] [3]
121: { should almost always be at the end of the previous line [whitespace/braces] [4]
122: Tab found; better to use spaces [whitespace/tab] [1]
122: Missing space after , [whitespace/comma] [3]
124: Weird number of spaces at line-start. Are you using a 2-space indent? [whitespace/indent] [3]
124: Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
126: { should almost always be at the end of the previous line [whitespace/braces] [4]
127: Tab found; better to use spaces [whitespace/tab] [1]
127: At least two spaces is best between code and comments [whitespace/comments] [2]
128: Tab found; better to use spaces [whitespace/tab] [1]
128: Missing space after , [whitespace/comma] [3]
145: Missing spaces around = [whitespace/operators] [4]
146: Missing spaces around = [whitespace/operators] [4]
151: Missing spaces around = [whitespace/operators] [4]
152: Missing spaces around = [whitespace/operators] [4]
157: Missing spaces around = [whitespace/operators] [4]
158: Missing spaces around = [whitespace/operators] [4]
164: At least two spaces is best between code and comments [whitespace/comments] [2]
166: Tab found; better to use spaces [whitespace/tab] [1]
168: At least two spaces is best between code and comments [whitespace/comments] [2]
170: At least two spaces is best between code and comments [whitespace/comments] [2]
173: Tab found; better to use spaces [whitespace/tab] [1]
173: Do not use variable-length arrays. Use an appropriately named ('k' followed by CamelCase) compile-time constant for the size. [runtime/arrays] [1]
177: Tab found; better to use spaces [whitespace/tab] [1]
180: Tab found; better to use spaces [whitespace/tab] [1]
180: At least two spaces is best between code and comments [whitespace/comments] [2]
180: Static/global string variables are not permitted. [runtime/string] [4]
181: Tab found; better to use spaces [whitespace/tab] [1]
181: At least two spaces is best between code and comments [whitespace/comments] [2]
186: Tab found; better to use spaces [whitespace/tab] [1]
186: At least two spaces is best between code and comments [whitespace/comments] [2]
192: Tab found; better to use spaces [whitespace/tab] [1]
192: At least two spaces is best between code and comments [whitespace/comments] [2]
197: Tab found; better to use spaces [whitespace/tab] [1]
197: At least two spaces is best between code and comments [whitespace/comments] [2]
199: Tab found; better to use spaces [whitespace/tab] [1]
199: At least two spaces is best between code and comments [whitespace/comments] [2]
201: If an else has a brace on one side, it should have it on both [readability/braces] [5]
204: An else should appear on the same line as the preceding } [whitespace/newline] [4]
210: Missing space before { [whitespace/braces] [5]
210: Static/global string variables are not permitted. [runtime/string] [4]
211: Tab found; better to use spaces [whitespace/tab] [1]
211: At least two spaces is best between code and comments [whitespace/comments] [2]
216: At least two spaces is best between code and comments [whitespace/comments] [2]
219: { should almost always be at the end of the previous line [whitespace/braces] [4]
220: Tab found; better to use spaces [whitespace/tab] [1]
220: At least two spaces is best between code and comments [whitespace/comments] [2]
221: Tab found; better to use spaces [whitespace/tab] [1]
221: At least two spaces is best between code and comments [whitespace/comments] [2]
222: Tab found; better to use spaces [whitespace/tab] [1]
222: At least two spaces is best between code and comments [whitespace/comments] [2]
227: Tab found; better to use spaces [whitespace/tab] [1]
227: At least two spaces is best between code and comments [whitespace/comments] [2]
229: Static/global string variables are not permitted. [runtime/string] [4]
230: At least two spaces is best between code and comments [whitespace/comments] [2]
230: Using C-style cast. Use reinterpret_cast<double*>(...) instead [readability/casting] [4]
238: public: should be indented +1 space inside class derived2 [whitespace/indent] [3]
243: At least two spaces is best between code and comments [whitespace/comments] [2]
245: Lines should be <= 84 characters long [whitespace/line_length] [2]
245: At least two spaces is best between code and comments [whitespace/comments] [2]
245: Using C-style cast. Use reinterpret_cast<derived2*>(...) instead [readability/casting] [4]
246: Lines should be <= 84 characters long [whitespace/line_length] [2]
246: At least two spaces is best between code and comments [whitespace/comments] [2]
251: Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
251: Lines should be <= 84 characters long [whitespace/line_length] [2]
251: At least two spaces is best between code and comments [whitespace/comments] [2]
251: Missing space before { [whitespace/braces] [5]
255: At least two spaces is best between code and comments [whitespace/comments] [2]
256: At least two spaces is best between code and comments [whitespace/comments] [2]
259: Tab found; better to use spaces [whitespace/tab] [1]
259: At least two spaces is best between code and comments [whitespace/comments] [2]
262: Empty loop bodies should use {} or continue [whitespace/empty_loop_body] [5]
262: At least two spaces is best between code and comments [whitespace/comments] [2]
265: Redundant blank line at the end of a code block should be deleted. [whitespace/blank_line] [3]
105: Add #include <vector> for vector<> [build/include_what_you_use] [4]
128: Add #include <utility> for swap [build/include_what_you_use] [4]
170: Add #include <memory> for unique_ptr<> [build/include_what_you_use] [4]
181: Add #include <iostream> for cin [build/include_what_you_use] [4]
226: Add #include <limits> for numeric_limits<> [build/include_what_you_use] [4]
239: Add #include <string> for string [build/include_what_you_use] [4]
269: Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]</failure></testcase><testcase name="src/sillycode.w"><failure>0: No copyright message found. You should have a line: "Copyright [year] <Copyright Owner>" [legal/copyright] [5]
2: #ifndef header guard has wrong style, please use: SAMPLES_SILLY_SAMPLE_SRC_SILLYCODE_W_ [build/header_guard] [5]
12: #endif line should be "#endif // SAMPLES_SILLY_SAMPLE_SRC_SILLYCODE_W_" [build/header_guard] [5]
5: Complex multi-line /*...*/-style comment found. Lint may give bogus warnings. Consider replacing these with //-style comments, with #if 0...#endif, or with more clearly structured multi-line comments. [readability/multiline_comment] [5]
8: Should have a space between // and comment [whitespace/comments] [4]
12: Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]</failure></testcase></testsuite>