forked from pocc/pre-commit-hooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
all_failed.txt
103 lines (73 loc) · 2.44 KB
/
all_failed.txt
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
clang-format.............................................................Failed
- hook id: clang-format
- exit code: 1
err.c
====================
--- original
+++ formatted
@@ -1,3 +1,6 @@
#include <stdio.h>
-int main(){int i;return;}
+int main() {
+ int i;
+ return;
+}
clang-tidy...............................................................Failed
- hook id: clang-tidy
- exit code: 1
/tmp/temp/err.c:2:18: error: non-void function 'main' should return a value [clang-diagnostic-return-type]
int main(){int i;return;}
^
1 error generated.
Error while processing /tmp/temp/err.c.
Found compiler error(s).
oclint...................................................................Failed
- hook id: oclint
- exit code: 6
Compiler Errors:
(please be aware that these errors will prevent OCLint from analyzing this source code)
/tmp/temp/err.c:2:18: non-void function 'main' should return a value
Clang Static Analyzer Results:
/tmp/temp/err.c:2:18: non-void function 'main' should return a value
OCLint Report
Summary: TotalFiles=0 FilesWithViolations=0 P1=0 P2=0 P3=0
[OCLint (https://oclint.org) v21.05]
uncrustify...............................................................Failed
- hook id: uncrustify
- exit code: 1
err.c
====================
--- original
+++ formatted
@@ -1,3 +1,5 @@
#include <stdio.h>
-int main(){int i;return;}
+int main(){
+ int i; return;
+}
cppcheck.................................................................Failed
- hook id: cppcheck
- exit code: 1
err.c:2:16: style: Unused variable: i [unusedVariable]
int main(){int i;return;}
^
cpplint..................................................................Failed
- hook id: cpplint
- exit code: 1
Done processing err.c
Total errors found: 4
err.c:0: No copyright message found. You should have a line: "Copyright [year] <Copyright Owner>" [legal/copyright] [5]
err.c:2: More than one command on the same line [whitespace/newline] [0]
err.c:2: Missing space after ; [whitespace/semicolon] [3]
err.c:2: Missing space before { [whitespace/braces] [5]
include-what-you-use.....................................................Failed
- hook id: include-what-you-use
- exit code: 3
err.c:2:18: error: non-void function 'main' should return a value [-Wreturn-type]
int main(){int i;return;}
^
err.c should add these lines:
err.c should remove these lines:
- #include <stdio.h> // lines 1-1
The full include-list for err.c:
---